{"action":"created","comment":{"url":"https://api.github.com/repos/getsentry/sentry/pulls/comments/224605317","pull_request_review_id":164016614,"id":224605317,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNDYwNTMxNw==","diff_hunk":"@@ -392,7 +392,9 @@ def build_integration(self, state):\n                 'id': subscription_id,\n                 'secret': subscription_secret,\n             }\n-\n+        else:\n+            # preserve previously created subscription information\n+            integration['metadata']['subscription'] = integration_model.metadata['subscription']","path":"src/sentry/integrations/vsts/integration.py","position":7,"original_position":7,"commit_id":"555d06d08cd9d4da9a4b25f602245a1d35f3d96a","original_commit_id":"555d06d08cd9d4da9a4b25f602245a1d35f3d96a","user":{"login":"mnoble","id":36059,"node_id":"MDQ6VXNlcjM2MDU5","avatar_url":"https://avatars2.githubusercontent.com/u/36059?v=4","gravatar_id":"","url":"https://api.github.com/users/mnoble","html_url":"https://github.com/mnoble","followers_url":"https://api.github.com/users/mnoble/followers","following_url":"https://api.github.com/users/mnoble/following{/other_user}","gists_url":"https://api.github.com/users/mnoble/gists{/gist_id}","starred_url":"https://api.github.com/users/mnoble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnoble/subscriptions","organizations_url":"https://api.github.com/users/mnoble/orgs","repos_url":"https://api.github.com/users/mnoble/repos","events_url":"https://api.github.com/users/mnoble/events{/privacy}","received_events_url":"https://api.github.com/users/mnoble/received_events","type":"User","site_admin":false},"body":"Isn't this going to overwrite what gets set in the `except` block every time?","created_at":"2018-10-11T21:09:51Z","updated_at":"2018-10-11T21:09:58Z","html_url":"https://github.com/getsentry/sentry/pull/10094#discussion_r224605317","pull_request_url":"https://api.github.com/repos/getsentry/sentry/pulls/10094","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/getsentry/sentry/pulls/comments/224605317"},"html":{"href":"https://github.com/getsentry/sentry/pull/10094#discussion_r224605317"},"pull_request":{"href":"https://api.github.com/repos/getsentry/sentry/pulls/10094"}}},"pull_request":{"url":"https://api.github.com/repos/getsentry/sentry/pulls/10094","id":222278390,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIyMjc4Mzkw","html_url":"https://github.com/getsentry/sentry/pull/10094","diff_url":"https://github.com/getsentry/sentry/pull/10094.diff","patch_url":"https://github.com/getsentry/sentry/pull/10094.patch","issue_url":"https://api.github.com/repos/getsentry/sentry/issues/10094","number":10094,"state":"open","locked":false,"title":"fix(integrations): Azure DevOps Subscription creation problem","user":{"login":"lauryndbrown","id":12959365,"node_id":"MDQ6VXNlcjEyOTU5MzY1","avatar_url":"https://avatars0.githubusercontent.com/u/12959365?v=4","gravatar_id":"","url":"https://api.github.com/users/lauryndbrown","html_url":"https://github.com/lauryndbrown","followers_url":"https://api.github.com/users/lauryndbrown/followers","following_url":"https://api.github.com/users/lauryndbrown/following{/other_user}","gists_url":"https://api.github.com/users/lauryndbrown/gists{/gist_id}","starred_url":"https://api.github.com/users/lauryndbrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lauryndbrown/subscriptions","organizations_url":"https://api.github.com/users/lauryndbrown/orgs","repos_url":"https://api.github.com/users/lauryndbrown/repos","events_url":"https://api.github.com/users/lauryndbrown/events{/privacy}","received_events_url":"https://api.github.com/users/lauryndbrown/received_events","type":"User","site_admin":false},"body":"The subscription information in the Azure DevOps integrations was being overwritten if installed to multiple organizations. There is at least one user stuck in this state. This fixes the problem in the logic, but does not address those users for whom inbound sync is not working.\r\n\r\nFixes SENTRY-768","created_at":"2018-10-11T21:01:53Z","updated_at":"2018-10-11T21:09:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3ca674780966655e313a8814fa41c657ecc6a7e4","assignee":{"login":"lauryndbrown","id":12959365,"node_id":"MDQ6VXNlcjEyOTU5MzY1","avatar_url":"https://avatars0.githubusercontent.com/u/12959365?v=4","gravatar_id":"","url":"https://api.github.com/users/lauryndbrown","html_url":"https://github.com/lauryndbrown","followers_url":"https://api.github.com/users/lauryndbrown/followers","following_url":"https://api.github.com/users/lauryndbrown/following{/other_user}","gists_url":"https://api.github.com/users/lauryndbrown/gists{/gist_id}","starred_url":"https://api.github.com/users/lauryndbrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lauryndbrown/subscriptions","organizations_url":"https://api.github.com/users/lauryndbrown/orgs","repos_url":"https://api.github.com/users/lauryndbrown/repos","events_url":"https://api.github.com/users/lauryndbrown/events{/privacy}","received_events_url":"https://api.github.com/users/lauryndbrown/received_events","type":"User","site_admin":false},"assignees":[{"login":"lauryndbrown","id":12959365,"node_id":"MDQ6VXNlcjEyOTU5MzY1","avatar_url":"https://avatars0.githubusercontent.com/u/12959365?v=4","gravatar_id":"","url":"https://api.github.com/users/lauryndbrown","html_url":"https://github.com/lauryndbrown","followers_url":"https://api.github.com/users/lauryndbrown/followers","following_url":"https://api.github.com/users/lauryndbrown/following{/other_user}","gists_url":"https://api.github.com/users/lauryndbrown/gists{/gist_id}","starred_url":"https://api.github.com/users/lauryndbrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lauryndbrown/subscriptions","organizations_url":"https://api.github.com/users/lauryndbrown/orgs","repos_url":"https://api.github.com/users/lauryndbrown/repos","events_url":"https://api.github.com/users/lauryndbrown/events{/privacy}","received_events_url":"https://api.github.com/users/lauryndbrown/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"markstory","id":24086,"node_id":"MDQ6VXNlcjI0MDg2","avatar_url":"https://avatars3.githubusercontent.com/u/24086?v=4","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":675115108,"node_id":"MDU6TGFiZWw2NzUxMTUxMDg=","url":"https://api.github.com/repos/getsentry/sentry/labels/Component:%20Integrations","name":"Component: Integrations","color":"c2e0c6","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/getsentry/sentry/pulls/10094/commits","review_comments_url":"https://api.github.com/repos/getsentry/sentry/pulls/10094/comments","review_comment_url":"https://api.github.com/repos/getsentry/sentry/pulls/comments{/number}","comments_url":"https://api.github.com/repos/getsentry/sentry/issues/10094/comments","statuses_url":"https://api.github.com/repos/getsentry/sentry/statuses/555d06d08cd9d4da9a4b25f602245a1d35f3d96a","head":{"label":"getsentry:fix/vsts-subscription-creation","ref":"fix/vsts-subscription-creation","sha":"555d06d08cd9d4da9a4b25f602245a1d35f3d96a","user":{"login":"getsentry","id":1396951,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzOTY5NTE=","avatar_url":"https://avatars0.githubusercontent.com/u/1396951?v=4","gravatar_id":"","url":"https://api.github.com/users/getsentry","html_url":"https://github.com/getsentry","followers_url":"https://api.github.com/users/getsentry/followers","following_url":"https://api.github.com/users/getsentry/following{/other_user}","gists_url":"https://api.github.com/users/getsentry/gists{/gist_id}","starred_url":"https://api.github.com/users/getsentry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getsentry/subscriptions","organizations_url":"https://api.github.com/users/getsentry/orgs","repos_url":"https://api.github.com/users/getsentry/repos","events_url":"https://api.github.com/users/getsentry/events{/privacy}","received_events_url":"https://api.github.com/users/getsentry/received_events","type":"Organization","site_admin":false},"repo":{"id":873328,"node_id":"MDEwOlJlcG9zaXRvcnk4NzMzMjg=","name":"sentry","full_name":"getsentry/sentry","private":false,"owner":{"login":"getsentry","id":1396951,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzOTY5NTE=","avatar_url":"https://avatars0.githubusercontent.com/u/1396951?v=4","gravatar_id":"","url":"https://api.github.com/users/getsentry","html_url":"https://github.com/getsentry","followers_url":"https://api.github.com/users/getsentry/followers","following_url":"https://api.github.com/users/getsentry/following{/other_user}","gists_url":"https://api.github.com/users/getsentry/gists{/gist_id}","starred_url":"https://api.github.com/users/getsentry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getsentry/subscriptions","organizations_url":"https://api.github.com/users/getsentry/orgs","repos_url":"https://api.github.com/users/getsentry/repos","events_url":"https://api.github.com/users/getsentry/events{/privacy}","received_events_url":"https://api.github.com/users/getsentry/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/getsentry/sentry","description":"Sentry is cross-platform application monitoring, with a focus on error reporting.","fork":false,"url":"https://api.github.com/repos/getsentry/sentry","forks_url":"https://api.github.com/repos/getsentry/sentry/forks","keys_url":"https://api.github.com/repos/getsentry/sentry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/getsentry/sentry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/getsentry/sentry/teams","hooks_url":"https://api.github.com/repos/getsentry/sentry/hooks","issue_events_url":"https://api.github.com/repos/getsentry/sentry/issues/events{/number}","events_url":"https://api.github.com/repos/getsentry/sentry/events","assignees_url":"https://api.github.com/repos/getsentry/sentry/assignees{/user}","branches_url":"https://api.github.com/repos/getsentry/sentry/branches{/branch}","tags_url":"https://api.github.com/repos/getsentry/sentry/tags","blobs_url":"https://api.github.com/repos/getsentry/sentry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/getsentry/sentry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/getsentry/sentry/git/refs{/sha}","trees_url":"https://api.github.com/repos/getsentry/sentry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/getsentry/sentry/statuses/{sha}","languages_url":"https://api.github.com/repos/getsentry/sentry/languages","stargazers_url":"https://api.github.com/repos/getsentry/sentry/stargazers","contributors_url":"https://api.github.com/repos/getsentry/sentry/contributors","subscribers_url":"https://api.github.com/repos/getsentry/sentry/subscribers","subscription_url":"https://api.github.com/repos/getsentry/sentry/subscription","commits_url":"https://api.github.com/repos/getsentry/sentry/commits{/sha}","git_commits_url":"https://api.github.com/repos/getsentry/sentry/git/commits{/sha}","comments_url":"https://api.github.com/repos/getsentry/sentry/comments{/number}","issue_comment_url":"https://api.github.com/repos/getsentry/sentry/issues/comments{/number}","contents_url":"https://api.github.com/repos/getsentry/sentry/contents/{+path}","compare_url":"https://api.github.com/repos/getsentry/sentry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/getsentry/sentry/merges","archive_url":"https://api.github.com/repos/getsentry/sentry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/getsentry/sentry/downloads","issues_url":"https://api.github.com/repos/getsentry/sentry/issues{/number}","pulls_url":"https://api.github.com/repos/getsentry/sentry/pulls{/number}","milestones_url":"https://api.github.com/repos/getsentry/sentry/milestones{/number}","notifications_url":"https://api.github.com/repos/getsentry/sentry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/getsentry/sentry/labels{/name}","releases_url":"https://api.github.com/repos/getsentry/sentry/releases{/id}","deployments_url":"https://api.github.com/repos/getsentry/sentry/deployments","created_at":"2010-08-30T22:06:41Z","updated_at":"2018-10-11T20:28:37Z","pushed_at":"2018-10-11T21:01:53Z","git_url":"git://github.com/getsentry/sentry.git","ssh_url":"git@github.com:getsentry/sentry.git","clone_url":"https://github.com/getsentry/sentry.git","svn_url":"https://github.com/getsentry/sentry","homepage":"https://sentry.io","size":89269,"stargazers_count":18375,"watchers_count":18375,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2117,"mirror_url":null,"archived":false,"open_issues_count":760,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":2117,"open_issues":760,"watchers":18375,"default_branch":"master"}},"base":{"label":"getsentry:master","ref":"master","sha":"4ad83428795f8b5652152dbe7814abf4c5d66cbb","user":{"login":"getsentry","id":1396951,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzOTY5NTE=","avatar_url":"https://avatars0.githubusercontent.com/u/1396951?v=4","gravatar_id":"","url":"https://api.github.com/users/getsentry","html_url":"https://github.com/getsentry","followers_url":"https://api.github.com/users/getsentry/followers","following_url":"https://api.github.com/users/getsentry/following{/other_user}","gists_url":"https://api.github.com/users/getsentry/gists{/gist_id}","starred_url":"https://api.github.com/users/getsentry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getsentry/subscriptions","organizations_url":"https://api.github.com/users/getsentry/orgs","repos_url":"https://api.github.com/users/getsentry/repos","events_url":"https://api.github.com/users/getsentry/events{/privacy}","received_events_url":"https://api.github.com/users/getsentry/received_events","type":"Organization","site_admin":false},"repo":{"id":873328,"node_id":"MDEwOlJlcG9zaXRvcnk4NzMzMjg=","name":"sentry","full_name":"getsentry/sentry","private":false,"owner":{"login":"getsentry","id":1396951,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzOTY5NTE=","avatar_url":"https://avatars0.githubusercontent.com/u/1396951?v=4","gravatar_id":"","url":"https://api.github.com/users/getsentry","html_url":"https://github.com/getsentry","followers_url":"https://api.github.com/users/getsentry/followers","following_url":"https://api.github.com/users/getsentry/following{/other_user}","gists_url":"https://api.github.com/users/getsentry/gists{/gist_id}","starred_url":"https://api.github.com/users/getsentry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getsentry/subscriptions","organizations_url":"https://api.github.com/users/getsentry/orgs","repos_url":"https://api.github.com/users/getsentry/repos","events_url":"https://api.github.com/users/getsentry/events{/privacy}","received_events_url":"https://api.github.com/users/getsentry/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/getsentry/sentry","description":"Sentry is cross-platform application monitoring, with a focus on error reporting.","fork":false,"url":"https://api.github.com/repos/getsentry/sentry","forks_url":"https://api.github.com/repos/getsentry/sentry/forks","keys_url":"https://api.github.com/repos/getsentry/sentry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/getsentry/sentry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/getsentry/sentry/teams","hooks_url":"https://api.github.com/repos/getsentry/sentry/hooks","issue_events_url":"https://api.github.com/repos/getsentry/sentry/issues/events{/number}","events_url":"https://api.github.com/repos/getsentry/sentry/events","assignees_url":"https://api.github.com/repos/getsentry/sentry/assignees{/user}","branches_url":"https://api.github.com/repos/getsentry/sentry/branches{/branch}","tags_url":"https://api.github.com/repos/getsentry/sentry/tags","blobs_url":"https://api.github.com/repos/getsentry/sentry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/getsentry/sentry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/getsentry/sentry/git/refs{/sha}","trees_url":"https://api.github.com/repos/getsentry/sentry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/getsentry/sentry/statuses/{sha}","languages_url":"https://api.github.com/repos/getsentry/sentry/languages","stargazers_url":"https://api.github.com/repos/getsentry/sentry/stargazers","contributors_url":"https://api.github.com/repos/getsentry/sentry/contributors","subscribers_url":"https://api.github.com/repos/getsentry/sentry/subscribers","subscription_url":"https://api.github.com/repos/getsentry/sentry/subscription","commits_url":"https://api.github.com/repos/getsentry/sentry/commits{/sha}","git_commits_url":"https://api.github.com/repos/getsentry/sentry/git/commits{/sha}","comments_url":"https://api.github.com/repos/getsentry/sentry/comments{/number}","issue_comment_url":"https://api.github.com/repos/getsentry/sentry/issues/comments{/number}","contents_url":"https://api.github.com/repos/getsentry/sentry/contents/{+path}","compare_url":"https://api.github.com/repos/getsentry/sentry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/getsentry/sentry/merges","archive_url":"https://api.github.com/repos/getsentry/sentry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/getsentry/sentry/downloads","issues_url":"https://api.github.com/repos/getsentry/sentry/issues{/number}","pulls_url":"https://api.github.com/repos/getsentry/sentry/pulls{/number}","milestones_url":"https://api.github.com/repos/getsentry/sentry/milestones{/number}","notifications_url":"https://api.github.com/repos/getsentry/sentry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/getsentry/sentry/labels{/name}","releases_url":"https://api.github.com/repos/getsentry/sentry/releases{/id}","deployments_url":"https://api.github.com/repos/getsentry/sentry/deployments","created_at":"2010-08-30T22:06:41Z","updated_at":"2018-10-11T20:28:37Z","pushed_at":"2018-10-11T21:01:53Z","git_url":"git://github.com/getsentry/sentry.git","ssh_url":"git@github.com:getsentry/sentry.git","clone_url":"https://github.com/getsentry/sentry.git","svn_url":"https://github.com/getsentry/sentry","homepage":"https://sentry.io","size":89269,"stargazers_count":18375,"watchers_count":18375,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2117,"mirror_url":null,"archived":false,"open_issues_count":760,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":2117,"open_issues":760,"watchers":18375,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/getsentry/sentry/pulls/10094"},"html":{"href":"https://github.com/getsentry/sentry/pull/10094"},"issue":{"href":"https://api.github.com/repos/getsentry/sentry/issues/10094"},"comments":{"href":"https://api.github.com/repos/getsentry/sentry/issues/10094/comments"},"review_comments":{"href":"https://api.github.com/repos/getsentry/sentry/pulls/10094/comments"},"review_comment":{"href":"https://api.github.com/repos/getsentry/sentry/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/getsentry/sentry/pulls/10094/commits"},"statuses":{"href":"https://api.github.com/repos/getsentry/sentry/statuses/555d06d08cd9d4da9a4b25f602245a1d35f3d96a"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"mnoble"}}