{"action":"created","comment":{"url":"https://api.github.com/repos/getsentry/sentry/pulls/comments/207398825","pull_request_review_id":143005871,"id":207398825,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNzM5ODgyNQ==","diff_hunk":"@@ -109,5 +130,63 @@ describe('OrganizationIntegrations', function() {\n         expect(wrapper.instance().state.integrations[0]).toBe(updatedIntegration);\n       });\n     });\n+\n+    describe('with matching plugins installed', function() {\n+      Client.addMockResponse({\n+        url: `/organizations/${org.slug}/integrations/`,\n+        body: [githubIntegration, jiraIntegration],\n+      });\n+      Client.addMockResponse({\n+        url: `/organizations/${org.slug}/config/integrations/`,\n+        body: {providers: [githubProvider, jiraProvider]},\n+      });\n+      Client.addMockResponse({\n+        url: `/organizations/${org.slug}/plugins/`,\n+        body: [\n+          {\n+            slug: 'github',\n+            enabled: true,\n+          },\n+        ],\n+      });\n+      Client.addMockResponse({\n+        url: `/organizations/${org.slug}/repos/?status=unmigratable`,\n+        body: [\n+          {\n+            provider: {\n+              id: 'github',\n+              name: 'GitHub',\n+            },\n+            name: 'Test-Org/foo',\n+          },\n+        ],\n+      });\n+\n+      const wrapper = mount(<OrganizationIntegrations params={params} />, routerContext);\n+\n+      it('fetches unmigratable repositories', function() {\n+        expect(wrapper.instance().state.unmigratableRepos).toHaveLength(1);\n+        expect(wrapper.instance().state.unmigratableRepos[0].name).toBe('Test-Org/foo');\n+      });\n+\n+      it('displays a warning for each Org with unmigratable repos', () => {\n+        // Use a regex because React/Enzyme/Jest/Whatever turns single quotes into\n+        // apostrophes, so you can't match it explicitly.\n+        expect(\n+          wrapper\n+            .find('AlertLink')\n+            .first()\n+            .text()\n+        ).toMatch(/Your Test-Org repositories can.t send commit data to Sentry/);\n+      });\n+\n+      it('opens the new Integration dialog when the warning it clicked', () => {","path":"tests/js/spec/views/settings/organizationIntegrations/index.spec.jsx","position":105,"original_position":105,"commit_id":"062af0bf459e925b1fde7928a1af32cec4a1bc9a","original_commit_id":"062af0bf459e925b1fde7928a1af32cec4a1bc9a","user":{"login":"EvanPurkhiser","id":1421724,"node_id":"MDQ6VXNlcjE0MjE3MjQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1421724?v=4","gravatar_id":"","url":"https://api.github.com/users/EvanPurkhiser","html_url":"https://github.com/EvanPurkhiser","followers_url":"https://api.github.com/users/EvanPurkhiser/followers","following_url":"https://api.github.com/users/EvanPurkhiser/following{/other_user}","gists_url":"https://api.github.com/users/EvanPurkhiser/gists{/gist_id}","starred_url":"https://api.github.com/users/EvanPurkhiser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvanPurkhiser/subscriptions","organizations_url":"https://api.github.com/users/EvanPurkhiser/orgs","repos_url":"https://api.github.com/users/EvanPurkhiser/repos","events_url":"https://api.github.com/users/EvanPurkhiser/events{/privacy}","received_events_url":"https://api.github.com/users/EvanPurkhiser/received_events","type":"User","site_admin":false},"body":"> when the warning s/it/is clicked","created_at":"2018-08-02T22:55:44Z","updated_at":"2018-08-02T22:55:44Z","html_url":"https://github.com/getsentry/sentry/pull/9226#discussion_r207398825","pull_request_url":"https://api.github.com/repos/getsentry/sentry/pulls/9226","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/getsentry/sentry/pulls/comments/207398825"},"html":{"href":"https://github.com/getsentry/sentry/pull/9226#discussion_r207398825"},"pull_request":{"href":"https://api.github.com/repos/getsentry/sentry/pulls/9226"}}},"pull_request":{"url":"https://api.github.com/repos/getsentry/sentry/pulls/9226","id":204299453,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0Mjk5NDUz","html_url":"https://github.com/getsentry/sentry/pull/9226","diff_url":"https://github.com/getsentry/sentry/pull/9226.diff","patch_url":"https://github.com/getsentry/sentry/pull/9226.patch","issue_url":"https://api.github.com/repos/getsentry/sentry/issues/9226","number":9226,"state":"open","locked":false,"title":"feat(integrations): Display unmigratable repos","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":"Changes the \"Install\" button next to an Integration, to \"Upgrade\" if the Org has the old plugin installed.\r\n\r\nAlso adds a warning when there are repositories currently configured, that are inaccessible by the new Integration. This is usually because they're in a different [GitHub|VSTS|Bitbucket] org that our integration is not installed on.\r\n\r\n<img width=\"966\" alt=\"screen shot 2018-07-30 at 9 52 12 am\" src=\"https://user-images.githubusercontent.com/36059/43411196-557e6182-93de-11e8-9bf7-83aeb01f4b6f.png\">\r\n","created_at":"2018-07-27T00:15:49Z","updated_at":"2018-08-02T22:55:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7ffe891716f9adb169a5394fd185a5711ee0b993","assignee":null,"assignees":[],"requested_reviewers":[{"login":"macqueen","id":5026776,"node_id":"MDQ6VXNlcjUwMjY3NzY=","avatar_url":"https://avatars2.githubusercontent.com/u/5026776?v=4","gravatar_id":"","url":"https://api.github.com/users/macqueen","html_url":"https://github.com/macqueen","followers_url":"https://api.github.com/users/macqueen/followers","following_url":"https://api.github.com/users/macqueen/following{/other_user}","gists_url":"https://api.github.com/users/macqueen/gists{/gist_id}","starred_url":"https://api.github.com/users/macqueen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macqueen/subscriptions","organizations_url":"https://api.github.com/users/macqueen/orgs","repos_url":"https://api.github.com/users/macqueen/repos","events_url":"https://api.github.com/users/macqueen/events{/privacy}","received_events_url":"https://api.github.com/users/macqueen/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/getsentry/sentry/pulls/9226/commits","review_comments_url":"https://api.github.com/repos/getsentry/sentry/pulls/9226/comments","review_comment_url":"https://api.github.com/repos/getsentry/sentry/pulls/comments{/number}","comments_url":"https://api.github.com/repos/getsentry/sentry/issues/9226/comments","statuses_url":"https://api.github.com/repos/getsentry/sentry/statuses/062af0bf459e925b1fde7928a1af32cec4a1bc9a","head":{"label":"mnoble:integration-migration-ui","ref":"integration-migration-ui","sha":"062af0bf459e925b1fde7928a1af32cec4a1bc9a","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},"repo":{"id":127824198,"node_id":"MDEwOlJlcG9zaXRvcnkxMjc4MjQxOTg=","name":"sentry","full_name":"mnoble/sentry","owner":{"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},"private":false,"html_url":"https://github.com/mnoble/sentry","description":"Sentry is a cross-platform crash reporting and aggregation platform.","fork":true,"url":"https://api.github.com/repos/mnoble/sentry","forks_url":"https://api.github.com/repos/mnoble/sentry/forks","keys_url":"https://api.github.com/repos/mnoble/sentry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mnoble/sentry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mnoble/sentry/teams","hooks_url":"https://api.github.com/repos/mnoble/sentry/hooks","issue_events_url":"https://api.github.com/repos/mnoble/sentry/issues/events{/number}","events_url":"https://api.github.com/repos/mnoble/sentry/events","assignees_url":"https://api.github.com/repos/mnoble/sentry/assignees{/user}","branches_url":"https://api.github.com/repos/mnoble/sentry/branches{/branch}","tags_url":"https://api.github.com/repos/mnoble/sentry/tags","blobs_url":"https://api.github.com/repos/mnoble/sentry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mnoble/sentry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mnoble/sentry/git/refs{/sha}","trees_url":"https://api.github.com/repos/mnoble/sentry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mnoble/sentry/statuses/{sha}","languages_url":"https://api.github.com/repos/mnoble/sentry/languages","stargazers_url":"https://api.github.com/repos/mnoble/sentry/stargazers","contributors_url":"https://api.github.com/repos/mnoble/sentry/contributors","subscribers_url":"https://api.github.com/repos/mnoble/sentry/subscribers","subscription_url":"https://api.github.com/repos/mnoble/sentry/subscription","commits_url":"https://api.github.com/repos/mnoble/sentry/commits{/sha}","git_commits_url":"https://api.github.com/repos/mnoble/sentry/git/commits{/sha}","comments_url":"https://api.github.com/repos/mnoble/sentry/comments{/number}","issue_comment_url":"https://api.github.com/repos/mnoble/sentry/issues/comments{/number}","contents_url":"https://api.github.com/repos/mnoble/sentry/contents/{+path}","compare_url":"https://api.github.com/repos/mnoble/sentry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mnoble/sentry/merges","archive_url":"https://api.github.com/repos/mnoble/sentry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mnoble/sentry/downloads","issues_url":"https://api.github.com/repos/mnoble/sentry/issues{/number}","pulls_url":"https://api.github.com/repos/mnoble/sentry/pulls{/number}","milestones_url":"https://api.github.com/repos/mnoble/sentry/milestones{/number}","notifications_url":"https://api.github.com/repos/mnoble/sentry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mnoble/sentry/labels{/name}","releases_url":"https://api.github.com/repos/mnoble/sentry/releases{/id}","deployments_url":"https://api.github.com/repos/mnoble/sentry/deployments","created_at":"2018-04-02T23:32:38Z","updated_at":"2018-08-01T21:45:09Z","pushed_at":"2018-08-02T20:26:10Z","git_url":"git://github.com/mnoble/sentry.git","ssh_url":"git@github.com:mnoble/sentry.git","clone_url":"https://github.com/mnoble/sentry.git","svn_url":"https://github.com/mnoble/sentry","homepage":"https://sentry.io","size":89214,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"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":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"getsentry:master","ref":"master","sha":"d645562aa42b16d43dcb4be9a9b3a5b368bfd98e","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","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},"private":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-08-02T22:34:26Z","pushed_at":"2018-08-02T22:46:07Z","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":90787,"stargazers_count":17557,"watchers_count":17557,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2053,"mirror_url":null,"archived":false,"open_issues_count":867,"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":2053,"open_issues":867,"watchers":17557,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/getsentry/sentry/pulls/9226"},"html":{"href":"https://github.com/getsentry/sentry/pull/9226"},"issue":{"href":"https://api.github.com/repos/getsentry/sentry/issues/9226"},"comments":{"href":"https://api.github.com/repos/getsentry/sentry/issues/9226/comments"},"review_comments":{"href":"https://api.github.com/repos/getsentry/sentry/pulls/9226/comments"},"review_comment":{"href":"https://api.github.com/repos/getsentry/sentry/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/getsentry/sentry/pulls/9226/commits"},"statuses":{"href":"https://api.github.com/repos/getsentry/sentry/statuses/062af0bf459e925b1fde7928a1af32cec4a1bc9a"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"EvanPurkhiser"}}