{"action":"closed","issue":{"url":"https://api.github.com/repos/Azure/azure-cli/issues/710","repository_url":"https://api.github.com/repos/Azure/azure-cli","labels_url":"https://api.github.com/repos/Azure/azure-cli/issues/710/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-cli/issues/710/comments","events_url":"https://api.github.com/repos/Azure/azure-cli/issues/710/events","html_url":"https://github.com/Azure/azure-cli/issues/710","id":171538578,"number":710,"title":"Existing update commands should expose generic update fields","user":{"login":"tjprescott","id":5723682,"avatar_url":"https://avatars.githubusercontent.com/u/5723682?v=3","gravatar_id":"","url":"https://api.github.com/users/tjprescott","html_url":"https://github.com/tjprescott","followers_url":"https://api.github.com/users/tjprescott/followers","following_url":"https://api.github.com/users/tjprescott/following{/other_user}","gists_url":"https://api.github.com/users/tjprescott/gists{/gist_id}","starred_url":"https://api.github.com/users/tjprescott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjprescott/subscriptions","organizations_url":"https://api.github.com/users/tjprescott/orgs","repos_url":"https://api.github.com/users/tjprescott/repos","events_url":"https://api.github.com/users/tjprescott/events{/privacy}","received_events_url":"https://api.github.com/users/tjprescott/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Azure/azure-cli/labels/Discussion","name":"Discussion","color":"5319e7"},{"url":"https://api.github.com/repos/Azure/azure-cli/labels/Feature","name":"Feature","color":"006b75"}],"state":"closed","locked":false,"assignee":{"login":"tjprescott","id":5723682,"avatar_url":"https://avatars.githubusercontent.com/u/5723682?v=3","gravatar_id":"","url":"https://api.github.com/users/tjprescott","html_url":"https://github.com/tjprescott","followers_url":"https://api.github.com/users/tjprescott/followers","following_url":"https://api.github.com/users/tjprescott/following{/other_user}","gists_url":"https://api.github.com/users/tjprescott/gists{/gist_id}","starred_url":"https://api.github.com/users/tjprescott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjprescott/subscriptions","organizations_url":"https://api.github.com/users/tjprescott/orgs","repos_url":"https://api.github.com/users/tjprescott/repos","events_url":"https://api.github.com/users/tjprescott/events{/privacy}","received_events_url":"https://api.github.com/users/tjprescott/received_events","type":"User","site_admin":false},"assignees":[{"login":"tjprescott","id":5723682,"avatar_url":"https://avatars.githubusercontent.com/u/5723682?v=3","gravatar_id":"","url":"https://api.github.com/users/tjprescott","html_url":"https://github.com/tjprescott","followers_url":"https://api.github.com/users/tjprescott/followers","following_url":"https://api.github.com/users/tjprescott/following{/other_user}","gists_url":"https://api.github.com/users/tjprescott/gists{/gist_id}","starred_url":"https://api.github.com/users/tjprescott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjprescott/subscriptions","organizations_url":"https://api.github.com/users/tjprescott/orgs","repos_url":"https://api.github.com/users/tjprescott/repos","events_url":"https://api.github.com/users/tjprescott/events{/privacy}","received_events_url":"https://api.github.com/users/tjprescott/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Azure/azure-cli/milestones/2","html_url":"https://github.com/Azure/azure-cli/milestones/Sprint%202","labels_url":"https://api.github.com/repos/Azure/azure-cli/milestones/2/labels","id":1921449,"number":2,"title":"Sprint 2","description":"","creator":{"login":"JasonRShaver","id":10146011,"avatar_url":"https://avatars.githubusercontent.com/u/10146011?v=3","gravatar_id":"","url":"https://api.github.com/users/JasonRShaver","html_url":"https://github.com/JasonRShaver","followers_url":"https://api.github.com/users/JasonRShaver/followers","following_url":"https://api.github.com/users/JasonRShaver/following{/other_user}","gists_url":"https://api.github.com/users/JasonRShaver/gists{/gist_id}","starred_url":"https://api.github.com/users/JasonRShaver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JasonRShaver/subscriptions","organizations_url":"https://api.github.com/users/JasonRShaver/orgs","repos_url":"https://api.github.com/users/JasonRShaver/repos","events_url":"https://api.github.com/users/JasonRShaver/events{/privacy}","received_events_url":"https://api.github.com/users/JasonRShaver/received_events","type":"User","site_admin":false},"open_issues":30,"closed_issues":2,"state":"open","created_at":"2016-08-03T17:04:00Z","updated_at":"2016-08-24T22:40:15Z","due_on":"2016-09-02T07:00:00Z","closed_at":null},"comments":1,"created_at":"2016-08-16T23:05:29Z","updated_at":"2016-08-24T22:40:15Z","closed_at":"2016-08-24T22:40:15Z","body":"For consistency across commands, and to fill any gaps that may occur when a service exposes new functionality before a CLI rev, we should expose the generic update parameters (`--add --set --remove`) on each of our existing update commands.\r\n\r\nThe generic update is currently assembled from a setter and a getter, with common code to handle the generic parameters. We should be able to relatively easily insert our existing custom commands into that flow.\r\n\r\nThe recommended execution order would be:\r\n\r\n1. Call the getter to retrieve the object.\r\n2. Pass the object into the custom command (this will require removing the getter and setter statements from the existing custom command and adding a parameter for the object)\r\n3. Pass the object on to the standard generic update code.\r\n4. Pass the object to the setter."}}
{"actor":{"display_login":"tjprescott"}}