{"action":"created","comment":{"url":"https://api.github.com/repos/juju/juju/pulls/comments/82884071","pull_request_review_id":3760372,"id":82884071,"diff_hunk":"@@ -66,7 +66,8 @@ type configCommand struct {\n \tapplicationName string\n \tconfigFile      cmd.FileVar\n \tkeys            []string\n-\treset           bool\n+\treset           []string // Holds the keys to be reset until parsed.","path":"cmd/juju/application/config.go","position":14,"original_position":14,"commit_id":"3f3857be1e9a7d62a2785161026aafc3b0ea3829","original_commit_id":"3f3857be1e9a7d62a2785161026aafc3b0ea3829","user":{"login":"perrito666","id":716111,"avatar_url":"https://avatars.githubusercontent.com/u/716111?v=3","gravatar_id":"","url":"https://api.github.com/users/perrito666","html_url":"https://github.com/perrito666","followers_url":"https://api.github.com/users/perrito666/followers","following_url":"https://api.github.com/users/perrito666/following{/other_user}","gists_url":"https://api.github.com/users/perrito666/gists{/gist_id}","starred_url":"https://api.github.com/users/perrito666/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perrito666/subscriptions","organizations_url":"https://api.github.com/users/perrito666/orgs","repos_url":"https://api.github.com/users/perrito666/repos","events_url":"https://api.github.com/users/perrito666/events{/privacy}","received_events_url":"https://api.github.com/users/perrito666/received_events","type":"User","site_admin":false},"body":"that comment is a doc, just put it on top of the field\r\n```golang\r\n// reset holds the keys..\r\nreset []string\r\n```","created_at":"2016-10-11T20:42:08Z","updated_at":"2016-10-11T20:56:41Z","html_url":"https://github.com/juju/juju/pull/6429#discussion_r82884071","pull_request_url":"https://api.github.com/repos/juju/juju/pulls/6429","_links":{"self":{"href":"https://api.github.com/repos/juju/juju/pulls/comments/82884071"},"html":{"href":"https://github.com/juju/juju/pull/6429#discussion_r82884071"},"pull_request":{"href":"https://api.github.com/repos/juju/juju/pulls/6429"}}},"pull_request":{"url":"https://api.github.com/repos/juju/juju/pulls/6429","id":88904658,"html_url":"https://github.com/juju/juju/pull/6429","diff_url":"https://github.com/juju/juju/pull/6429.diff","patch_url":"https://github.com/juju/juju/pull/6429.patch","issue_url":"https://api.github.com/repos/juju/juju/issues/6429","number":6429,"state":"open","locked":false,"title":"Update app config to use --reset as string var","user":{"login":"reedobrien","id":45174,"avatar_url":"https://avatars.githubusercontent.com/u/45174?v=3","gravatar_id":"","url":"https://api.github.com/users/reedobrien","html_url":"https://github.com/reedobrien","followers_url":"https://api.github.com/users/reedobrien/followers","following_url":"https://api.github.com/users/reedobrien/following{/other_user}","gists_url":"https://api.github.com/users/reedobrien/gists{/gist_id}","starred_url":"https://api.github.com/users/reedobrien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reedobrien/subscriptions","organizations_url":"https://api.github.com/users/reedobrien/orgs","repos_url":"https://api.github.com/users/reedobrien/repos","events_url":"https://api.github.com/users/reedobrien/events{/privacy}","received_events_url":"https://api.github.com/users/reedobrien/received_events","type":"User","site_admin":false},"body":"This also allows simultaneous set/reset as with model-defaults and\r\nmodel-config.\r\n\r\nRefs: config command collapse spec https://goo.gl/yqrrPI\r\n\r\nQA:\r\n1. Run all unit tests and they pass\r\n2. With an [lxd cloud like](http://pastebin.ubuntu.com/23309877/) (see [Faster LXD](https://github.com/juju/juju/wiki/Faster-LXD) for details on apt-http proxy and other items, or don't use them)\r\n3. juju bootstrap reed/lxd-app-config lxdtest \r\n4. juju deploy haproxy && juju deploy wordpress && juju deploy mysql && juju add-relation haproxy wordpress && juju add-relation wordpress mysql && juju expose haproxy\r\n5. juju config wordpress \r\n\r\n    verify output is [like this](http://paste.ubuntu.com/23156363/)\r\n   \r\n6. juju config wordpress debug=yes \r\n7. juju config wordpress debug\r\n\r\n    \"yes\"\r\n\r\n8. juju config wordpress --reset debug\r\n9. juju config wordpress debug\r\n\r\n    \"no\"\r\n\r\n10. save the contents of the mysql settings to a file with `juju config mysql --format=yaml > mysql.yaml. It should look [like this](http://paste.ubuntu.com/23156375/).\r\n11 Edit the file [like this](http://paste.ubuntu.com/23156406/)\r\n11.  juju config mysql --file mysql.yaml \r\n12. for v in size type; do juju config mysql query-cache-$v;done\r\n\r\n    1.2345679e+08\r\n    \"ON\"\r\n        \r\n13. juju config mysql --reset query-cache-size,query-cache-type\r\n14. for v in size type; do juju config mysql query-cache-$v;done\r\n\r\n    0\r\n    \"OFF\"\r\n\r\n15. juju config mysql query-cache-size=123456789 query-cache-type=DEMAND\r\n16. for v in size type; do juju config mysql query-cache-$v;done\r\n\r\n    1.2345679e+08\r\n    \"ON\"\r\n \r\n15. juju config mysql query-cache-size \r\n\r\n    1.2345679e+08 \r\n\r\n16. juju config mysql --reset query-cache-size \r\n17. juju config mysql query-cache-size \r\n    \r\n    0\r\n    \r\n18.  juju config mysql query-cache-type \r\n    \r\n    DEMAND\r\n    \r\n19. juju config mysql --reset query-cache-type\r\n20. juju config mysql query-cache-type\r\n\r\n    \"OFF\"\r\n\r\n20. juju config mysql --reset \r\n\r\n    error: flag needs an argument: --reset\r\n\r\n21. juju config mysql foo bar \r\n\r\n    error: can only retrieve a single value, or all values\r\n    \r\n22. juju kill-controller reed/lxd-app-config -y \r\n","created_at":"2016-10-11T20:27:21Z","updated_at":"2016-10-11T20:56:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dda54d41e8826dd4c59626adaf74a56315630f44","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/juju/juju/pulls/6429/commits","review_comments_url":"https://api.github.com/repos/juju/juju/pulls/6429/comments","review_comment_url":"https://api.github.com/repos/juju/juju/pulls/comments{/number}","comments_url":"https://api.github.com/repos/juju/juju/issues/6429/comments","statuses_url":"https://api.github.com/repos/juju/juju/statuses/3f3857be1e9a7d62a2785161026aafc3b0ea3829","head":{"label":"reedobrien:feature/app-config-reset-as-string","ref":"feature/app-config-reset-as-string","sha":"3f3857be1e9a7d62a2785161026aafc3b0ea3829","user":{"login":"reedobrien","id":45174,"avatar_url":"https://avatars.githubusercontent.com/u/45174?v=3","gravatar_id":"","url":"https://api.github.com/users/reedobrien","html_url":"https://github.com/reedobrien","followers_url":"https://api.github.com/users/reedobrien/followers","following_url":"https://api.github.com/users/reedobrien/following{/other_user}","gists_url":"https://api.github.com/users/reedobrien/gists{/gist_id}","starred_url":"https://api.github.com/users/reedobrien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reedobrien/subscriptions","organizations_url":"https://api.github.com/users/reedobrien/orgs","repos_url":"https://api.github.com/users/reedobrien/repos","events_url":"https://api.github.com/users/reedobrien/events{/privacy}","received_events_url":"https://api.github.com/users/reedobrien/received_events","type":"User","site_admin":false},"repo":{"id":20457597,"name":"juju","full_name":"reedobrien/juju","owner":{"login":"reedobrien","id":45174,"avatar_url":"https://avatars.githubusercontent.com/u/45174?v=3","gravatar_id":"","url":"https://api.github.com/users/reedobrien","html_url":"https://github.com/reedobrien","followers_url":"https://api.github.com/users/reedobrien/followers","following_url":"https://api.github.com/users/reedobrien/following{/other_user}","gists_url":"https://api.github.com/users/reedobrien/gists{/gist_id}","starred_url":"https://api.github.com/users/reedobrien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reedobrien/subscriptions","organizations_url":"https://api.github.com/users/reedobrien/orgs","repos_url":"https://api.github.com/users/reedobrien/repos","events_url":"https://api.github.com/users/reedobrien/events{/privacy}","received_events_url":"https://api.github.com/users/reedobrien/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/reedobrien/juju","description":"juju is devops distilled","fork":true,"url":"https://api.github.com/repos/reedobrien/juju","forks_url":"https://api.github.com/repos/reedobrien/juju/forks","keys_url":"https://api.github.com/repos/reedobrien/juju/keys{/key_id}","collaborators_url":"https://api.github.com/repos/reedobrien/juju/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/reedobrien/juju/teams","hooks_url":"https://api.github.com/repos/reedobrien/juju/hooks","issue_events_url":"https://api.github.com/repos/reedobrien/juju/issues/events{/number}","events_url":"https://api.github.com/repos/reedobrien/juju/events","assignees_url":"https://api.github.com/repos/reedobrien/juju/assignees{/user}","branches_url":"https://api.github.com/repos/reedobrien/juju/branches{/branch}","tags_url":"https://api.github.com/repos/reedobrien/juju/tags","blobs_url":"https://api.github.com/repos/reedobrien/juju/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/reedobrien/juju/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/reedobrien/juju/git/refs{/sha}","trees_url":"https://api.github.com/repos/reedobrien/juju/git/trees{/sha}","statuses_url":"https://api.github.com/repos/reedobrien/juju/statuses/{sha}","languages_url":"https://api.github.com/repos/reedobrien/juju/languages","stargazers_url":"https://api.github.com/repos/reedobrien/juju/stargazers","contributors_url":"https://api.github.com/repos/reedobrien/juju/contributors","subscribers_url":"https://api.github.com/repos/reedobrien/juju/subscribers","subscription_url":"https://api.github.com/repos/reedobrien/juju/subscription","commits_url":"https://api.github.com/repos/reedobrien/juju/commits{/sha}","git_commits_url":"https://api.github.com/repos/reedobrien/juju/git/commits{/sha}","comments_url":"https://api.github.com/repos/reedobrien/juju/comments{/number}","issue_comment_url":"https://api.github.com/repos/reedobrien/juju/issues/comments{/number}","contents_url":"https://api.github.com/repos/reedobrien/juju/contents/{+path}","compare_url":"https://api.github.com/repos/reedobrien/juju/compare/{base}...{head}","merges_url":"https://api.github.com/repos/reedobrien/juju/merges","archive_url":"https://api.github.com/repos/reedobrien/juju/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/reedobrien/juju/downloads","issues_url":"https://api.github.com/repos/reedobrien/juju/issues{/number}","pulls_url":"https://api.github.com/repos/reedobrien/juju/pulls{/number}","milestones_url":"https://api.github.com/repos/reedobrien/juju/milestones{/number}","notifications_url":"https://api.github.com/repos/reedobrien/juju/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/reedobrien/juju/labels{/name}","releases_url":"https://api.github.com/repos/reedobrien/juju/releases{/id}","deployments_url":"https://api.github.com/repos/reedobrien/juju/deployments","created_at":"2014-06-03T20:04:45Z","updated_at":"2016-03-22T18:14:09Z","pushed_at":"2016-10-11T20:04:52Z","git_url":"git://github.com/reedobrien/juju.git","ssh_url":"git@github.com:reedobrien/juju.git","clone_url":"https://github.com/reedobrien/juju.git","svn_url":"https://github.com/reedobrien/juju","homepage":null,"size":92152,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"juju:master","ref":"master","sha":"4fcc64220991371f7913110857659df6414c0db6","user":{"login":"juju","id":4604548,"avatar_url":"https://avatars.githubusercontent.com/u/4604548?v=3","gravatar_id":"","url":"https://api.github.com/users/juju","html_url":"https://github.com/juju","followers_url":"https://api.github.com/users/juju/followers","following_url":"https://api.github.com/users/juju/following{/other_user}","gists_url":"https://api.github.com/users/juju/gists{/gist_id}","starred_url":"https://api.github.com/users/juju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juju/subscriptions","organizations_url":"https://api.github.com/users/juju/orgs","repos_url":"https://api.github.com/users/juju/repos","events_url":"https://api.github.com/users/juju/events{/privacy}","received_events_url":"https://api.github.com/users/juju/received_events","type":"Organization","site_admin":false},"repo":{"id":20445947,"name":"juju","full_name":"juju/juju","owner":{"login":"juju","id":4604548,"avatar_url":"https://avatars.githubusercontent.com/u/4604548?v=3","gravatar_id":"","url":"https://api.github.com/users/juju","html_url":"https://github.com/juju","followers_url":"https://api.github.com/users/juju/followers","following_url":"https://api.github.com/users/juju/following{/other_user}","gists_url":"https://api.github.com/users/juju/gists{/gist_id}","starred_url":"https://api.github.com/users/juju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juju/subscriptions","organizations_url":"https://api.github.com/users/juju/orgs","repos_url":"https://api.github.com/users/juju/repos","events_url":"https://api.github.com/users/juju/events{/privacy}","received_events_url":"https://api.github.com/users/juju/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/juju/juju","description":"juju is devops distilled","fork":false,"url":"https://api.github.com/repos/juju/juju","forks_url":"https://api.github.com/repos/juju/juju/forks","keys_url":"https://api.github.com/repos/juju/juju/keys{/key_id}","collaborators_url":"https://api.github.com/repos/juju/juju/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/juju/juju/teams","hooks_url":"https://api.github.com/repos/juju/juju/hooks","issue_events_url":"https://api.github.com/repos/juju/juju/issues/events{/number}","events_url":"https://api.github.com/repos/juju/juju/events","assignees_url":"https://api.github.com/repos/juju/juju/assignees{/user}","branches_url":"https://api.github.com/repos/juju/juju/branches{/branch}","tags_url":"https://api.github.com/repos/juju/juju/tags","blobs_url":"https://api.github.com/repos/juju/juju/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/juju/juju/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/juju/juju/git/refs{/sha}","trees_url":"https://api.github.com/repos/juju/juju/git/trees{/sha}","statuses_url":"https://api.github.com/repos/juju/juju/statuses/{sha}","languages_url":"https://api.github.com/repos/juju/juju/languages","stargazers_url":"https://api.github.com/repos/juju/juju/stargazers","contributors_url":"https://api.github.com/repos/juju/juju/contributors","subscribers_url":"https://api.github.com/repos/juju/juju/subscribers","subscription_url":"https://api.github.com/repos/juju/juju/subscription","commits_url":"https://api.github.com/repos/juju/juju/commits{/sha}","git_commits_url":"https://api.github.com/repos/juju/juju/git/commits{/sha}","comments_url":"https://api.github.com/repos/juju/juju/comments{/number}","issue_comment_url":"https://api.github.com/repos/juju/juju/issues/comments{/number}","contents_url":"https://api.github.com/repos/juju/juju/contents/{+path}","compare_url":"https://api.github.com/repos/juju/juju/compare/{base}...{head}","merges_url":"https://api.github.com/repos/juju/juju/merges","archive_url":"https://api.github.com/repos/juju/juju/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/juju/juju/downloads","issues_url":"https://api.github.com/repos/juju/juju/issues{/number}","pulls_url":"https://api.github.com/repos/juju/juju/pulls{/number}","milestones_url":"https://api.github.com/repos/juju/juju/milestones{/number}","notifications_url":"https://api.github.com/repos/juju/juju/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/juju/juju/labels{/name}","releases_url":"https://api.github.com/repos/juju/juju/releases{/id}","deployments_url":"https://api.github.com/repos/juju/juju/deployments","created_at":"2014-06-03T14:28:10Z","updated_at":"2016-10-07T01:19:13Z","pushed_at":"2016-10-11T20:38:01Z","git_url":"git://github.com/juju/juju.git","ssh_url":"git@github.com:juju/juju.git","clone_url":"https://github.com/juju/juju.git","svn_url":"https://github.com/juju/juju","homepage":"juju.ubuntu.com","size":126840,"stargazers_count":516,"watchers_count":516,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":158,"mirror_url":null,"open_issues_count":20,"forks":158,"open_issues":20,"watchers":516,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/juju/juju/pulls/6429"},"html":{"href":"https://github.com/juju/juju/pull/6429"},"issue":{"href":"https://api.github.com/repos/juju/juju/issues/6429"},"comments":{"href":"https://api.github.com/repos/juju/juju/issues/6429/comments"},"review_comments":{"href":"https://api.github.com/repos/juju/juju/pulls/6429/comments"},"review_comment":{"href":"https://api.github.com/repos/juju/juju/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/juju/juju/pulls/6429/commits"},"statuses":{"href":"https://api.github.com/repos/juju/juju/statuses/3f3857be1e9a7d62a2785161026aafc3b0ea3829"}}}}
{"actor":{"display_login":"perrito666"}}