{"action":"created","issue":{"url":"https://api.github.com/repos/fedora-infra/bodhi/issues/186","labels_url":"https://api.github.com/repos/fedora-infra/bodhi/issues/186/labels{/name}","comments_url":"https://api.github.com/repos/fedora-infra/bodhi/issues/186/comments","events_url":"https://api.github.com/repos/fedora-infra/bodhi/issues/186/events","html_url":"https://github.com/fedora-infra/bodhi/issues/186","id":101891642,"number":186,"title":"RFE: use update alias/updateid instead of update title in methods","user":{"login":"kparal","id":755451,"avatar_url":"https://avatars.githubusercontent.com/u/755451?v=3","gravatar_id":"","url":"https://api.github.com/users/kparal","html_url":"https://github.com/kparal","followers_url":"https://api.github.com/users/kparal/followers","following_url":"https://api.github.com/users/kparal/following{/other_user}","gists_url":"https://api.github.com/users/kparal/gists{/gist_id}","starred_url":"https://api.github.com/users/kparal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kparal/subscriptions","organizations_url":"https://api.github.com/users/kparal/orgs","repos_url":"https://api.github.com/users/kparal/repos","events_url":"https://api.github.com/users/kparal/events{/privacy}","received_events_url":"https://api.github.com/users/kparal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"ralphbean","id":331338,"avatar_url":"https://avatars.githubusercontent.com/u/331338?v=3","gravatar_id":"","url":"https://api.github.com/users/ralphbean","html_url":"https://github.com/ralphbean","followers_url":"https://api.github.com/users/ralphbean/followers","following_url":"https://api.github.com/users/ralphbean/following{/other_user}","gists_url":"https://api.github.com/users/ralphbean/gists{/gist_id}","starred_url":"https://api.github.com/users/ralphbean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ralphbean/subscriptions","organizations_url":"https://api.github.com/users/ralphbean/orgs","repos_url":"https://api.github.com/users/ralphbean/repos","events_url":"https://api.github.com/users/ralphbean/events{/privacy}","received_events_url":"https://api.github.com/users/ralphbean/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-08-19T13:20:43Z","updated_at":"2015-08-20T09:30:16Z","closed_at":null,"body":"If it's not too late to change the API (haha, now or never!), I suggest `Bodhi2Client` methods should identify updates based on their alias/updateid instead of update title. This has the advantage of moving to an universal update identifier to be used everywhere, and having the identifier stable (update titles change in time).\r\n\r\nSo instead of something like this:\r\n```\r\nbodhi.request('foo-1.0.fc22,bar-1.0.fc22', 'stable')\r\n```\r\nit would be this:\r\n```\r\nbodhi.request('FEDORA-2015-123456', 'stable')\r\n```\r\n\r\nThis involves the following methods (I hope I found them all):\r\n```\r\nsave(edited=)\r\nrequest(update=)\r\ncomment(update=)\r\n```\r\n\r\nI wouldn't worry about backwards compatibility, it would affect only `Bodhi2Client`, which is quite different API-wise already, so a further change doesn't really matter.\r\n\r\npython-fedora-0.5.4-1.fc22.noarch"},"comment":{"url":"https://api.github.com/repos/fedora-infra/bodhi/issues/comments/132952268","html_url":"https://github.com/fedora-infra/bodhi/issues/186#issuecomment-132952268","issue_url":"https://api.github.com/repos/fedora-infra/bodhi/issues/186","id":132952268,"user":{"login":"jwakely","id":1254480,"avatar_url":"https://avatars.githubusercontent.com/u/1254480?v=3","gravatar_id":"","url":"https://api.github.com/users/jwakely","html_url":"https://github.com/jwakely","followers_url":"https://api.github.com/users/jwakely/followers","following_url":"https://api.github.com/users/jwakely/following{/other_user}","gists_url":"https://api.github.com/users/jwakely/gists{/gist_id}","starred_url":"https://api.github.com/users/jwakely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwakely/subscriptions","organizations_url":"https://api.github.com/users/jwakely/orgs","repos_url":"https://api.github.com/users/jwakely/repos","events_url":"https://api.github.com/users/jwakely/events{/privacy}","received_events_url":"https://api.github.com/users/jwakely/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T09:30:16Z","updated_at":"2015-08-20T09:30:16Z","body":"Using the stable updateid as the key is definitely better than using the concatenation of an arbitrary number of strings, as I discovered recently when the URLs got too long and I could no longer edit an update."}}