{"action":"created","issue":{"url":"https://api.github.com/repos/YunoHost-Apps/Experimental_helpers/issues/23","repository_url":"https://api.github.com/repos/YunoHost-Apps/Experimental_helpers","labels_url":"https://api.github.com/repos/YunoHost-Apps/Experimental_helpers/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/YunoHost-Apps/Experimental_helpers/issues/23/comments","events_url":"https://api.github.com/repos/YunoHost-Apps/Experimental_helpers/issues/23/events","html_url":"https://github.com/YunoHost-Apps/Experimental_helpers/pull/23","id":324730050,"node_id":"MDExOlB1bGxSZXF1ZXN0MTg5MjQ1Nzg3","number":23,"title":"Add ynh_redis_get_free_db ynh_redis_remove_db","user":{"login":"Jibec","id":474883,"node_id":"MDQ6VXNlcjQ3NDg4Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/474883?v=4","gravatar_id":"","url":"https://api.github.com/users/Jibec","html_url":"https://github.com/Jibec","followers_url":"https://api.github.com/users/Jibec/followers","following_url":"https://api.github.com/users/Jibec/following{/other_user}","gists_url":"https://api.github.com/users/Jibec/gists{/gist_id}","starred_url":"https://api.github.com/users/Jibec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jibec/subscriptions","organizations_url":"https://api.github.com/users/Jibec/orgs","repos_url":"https://api.github.com/users/Jibec/repos","events_url":"https://api.github.com/users/Jibec/events{/privacy}","received_events_url":"https://api.github.com/users/Jibec/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-05-20T18:23:16Z","updated_at":"2018-06-05T18:03:13Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/YunoHost-Apps/Experimental_helpers/pulls/23","html_url":"https://github.com/YunoHost-Apps/Experimental_helpers/pull/23","diff_url":"https://github.com/YunoHost-Apps/Experimental_helpers/pull/23.diff","patch_url":"https://github.com/YunoHost-Apps/Experimental_helpers/pull/23.patch"},"body":"I noticed no helper existed for redis to select the database.\r\nIt also removes previous data.\r\n\r\nI assume if I remove the database shared with another app, it may lead to nefast side-effects.\r\n\r\nHere is an example with discourse:\r\nhttps://github.com/discourse/discourse/blob/master/config/discourse_defaults.conf#L115\r\nhttps://github.com/YunoHost-Apps/discourse_ynh/blob/master/scripts/install#L130"},"comment":{"url":"https://api.github.com/repos/YunoHost-Apps/Experimental_helpers/issues/comments/394805071","html_url":"https://github.com/YunoHost-Apps/Experimental_helpers/pull/23#issuecomment-394805071","issue_url":"https://api.github.com/repos/YunoHost-Apps/Experimental_helpers/issues/23","id":394805071,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDgwNTA3MQ==","user":{"login":"JimboJoe","id":423472,"node_id":"MDQ6VXNlcjQyMzQ3Mg==","avatar_url":"https://avatars3.githubusercontent.com/u/423472?v=4","gravatar_id":"","url":"https://api.github.com/users/JimboJoe","html_url":"https://github.com/JimboJoe","followers_url":"https://api.github.com/users/JimboJoe/followers","following_url":"https://api.github.com/users/JimboJoe/following{/other_user}","gists_url":"https://api.github.com/users/JimboJoe/gists{/gist_id}","starred_url":"https://api.github.com/users/JimboJoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JimboJoe/subscriptions","organizations_url":"https://api.github.com/users/JimboJoe/orgs","repos_url":"https://api.github.com/users/JimboJoe/repos","events_url":"https://api.github.com/users/JimboJoe/events{/privacy}","received_events_url":"https://api.github.com/users/JimboJoe/received_events","type":"User","site_admin":false},"created_at":"2018-06-05T18:03:13Z","updated_at":"2018-06-05T18:03:13Z","author_association":"CONTRIBUTOR","body":"Well, sorry for my dumb remarks on database removal: I was naively considering there was a DROP kind of command... whereas FLUSHALL seems to somewhat \"free\" the database in the `INFO keyspace`command.\r\nI should have tested it first... :innocent: \r\n\r\nI'm just wondering if we should use quotes when assigning the value to `result`, as it's a multi-line result...\r\n \r\nFor the database backup/restore, I think it should be done as well. It will just be tricky because we'll have to look for a free database (the one used priory could be used by another application), and thus modify the application configuration file... What do you think?"}}
{"actor":{"display_login":"JimboJoe"}}