{"action":"created","comment":{"url":"https://api.github.com/repos/getsentry/sentry/pulls/comments/172507373","pull_request_review_id":101533022,"id":172507373,"diff_hunk":"@@ -179,44 +181,36 @@ class ProjectTeams extends AsyncView {\n     else body = this.renderEmpty();\n \n     let projectTeams = new Set(this.state.projectTeams.map(team => team.slug));\n-    let teamsToAdd = this.state.allTeams.filter(team => {\n-      return team.hasAccess && !projectTeams.has(team.slug);\n-    });\n+    let teamsToAdd = this.state.allTeams\n+      .filter(team => {\n+        return team.hasAccess && !projectTeams.has(team.slug);\n+      })\n+      .map(team => ({value: team.id, label: team.slug}));\n \n     return (\n       <div>\n         <SettingsPageHeader\n           title={t('Teams')}\n           action={\n-            <DropdownLink\n-              anchorRight\n-              className=\"btn btn-primary btn-sm\"\n-              title={t('Add Team')}\n-            >\n-              {teamsToAdd.length ? (\n-                teamsToAdd.map(team => {\n-                  return (\n-                    <MenuItem noAnchor={true} key={team.slug}>\n-                      <a onClick={this.handleAdd.bind(this, team)}>{team.name}</a>\n-                    </MenuItem>\n-                  );\n-                })\n-              ) : (\n-                <MenuItem noAnchor={true} key={'empty'}>\n-                  <a>{t('No available teams')}</a>\n-                </MenuItem>\n-              )}\n-              <MenuItem divider={true} />\n-              <div style={{textAlign: 'center', padding: '5px 0px'}}>\n+            <DropdownAutoComplete\n+              items={teamsToAdd}\n+              onSelect={this.handleAdd.bind(this)}","path":"src/sentry/static/sentry/app/views/settings/project/projectTeams.jsx","position":67,"original_position":67,"commit_id":"a4eefd6de38b51673b71c055fb40391f40e42136","original_commit_id":"a4eefd6de38b51673b71c055fb40391f40e42136","user":{"login":"billyvg","id":79684,"avatar_url":"https://avatars3.githubusercontent.com/u/79684?v=4","gravatar_id":"","url":"https://api.github.com/users/billyvg","html_url":"https://github.com/billyvg","followers_url":"https://api.github.com/users/billyvg/followers","following_url":"https://api.github.com/users/billyvg/following{/other_user}","gists_url":"https://api.github.com/users/billyvg/gists{/gist_id}","starred_url":"https://api.github.com/users/billyvg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/billyvg/subscriptions","organizations_url":"https://api.github.com/users/billyvg/orgs","repos_url":"https://api.github.com/users/billyvg/repos","events_url":"https://api.github.com/users/billyvg/events{/privacy}","received_events_url":"https://api.github.com/users/billyvg/received_events","type":"User","site_admin":false},"body":"nit: prefer binding via class properties, e.g. `handleAdd = () => {};`","created_at":"2018-03-06T13:00:57Z","updated_at":"2018-03-06T13:00:57Z","html_url":"https://github.com/getsentry/sentry/pull/7474#discussion_r172507373","pull_request_url":"https://api.github.com/repos/getsentry/sentry/pulls/7474","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/getsentry/sentry/pulls/comments/172507373"},"html":{"href":"https://github.com/getsentry/sentry/pull/7474#discussion_r172507373"},"pull_request":{"href":"https://api.github.com/repos/getsentry/sentry/pulls/7474"}}},"pull_request":{"url":"https://api.github.com/repos/getsentry/sentry/pulls/7474","id":173058664,"html_url":"https://github.com/getsentry/sentry/pull/7474","diff_url":"https://github.com/getsentry/sentry/pull/7474.diff","patch_url":"https://github.com/getsentry/sentry/pull/7474.patch","issue_url":"https://api.github.com/repos/getsentry/sentry/issues/7474","number":7474,"state":"open","locked":false,"title":"feat(ui): Add searchable dropdown to project teams page","user":{"login":"macqueen","id":5026776,"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},"body":"depends on https://github.com/getsentry/sentry/pull/7440 and https://github.com/getsentry/sentry/pull/7468","created_at":"2018-03-06T05:01:54Z","updated_at":"2018-03-06T13:00:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2a63750fc46c9ee5161dbb4f9753eedc88a22057","assignee":null,"assignees":[],"requested_reviewers":[{"login":"Chrissy","id":435981,"avatar_url":"https://avatars2.githubusercontent.com/u/435981?v=4","gravatar_id":"","url":"https://api.github.com/users/Chrissy","html_url":"https://github.com/Chrissy","followers_url":"https://api.github.com/users/Chrissy/followers","following_url":"https://api.github.com/users/Chrissy/following{/other_user}","gists_url":"https://api.github.com/users/Chrissy/gists{/gist_id}","starred_url":"https://api.github.com/users/Chrissy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chrissy/subscriptions","organizations_url":"https://api.github.com/users/Chrissy/orgs","repos_url":"https://api.github.com/users/Chrissy/repos","events_url":"https://api.github.com/users/Chrissy/events{/privacy}","received_events_url":"https://api.github.com/users/Chrissy/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/getsentry/sentry/pulls/7474/commits","review_comments_url":"https://api.github.com/repos/getsentry/sentry/pulls/7474/comments","review_comment_url":"https://api.github.com/repos/getsentry/sentry/pulls/comments{/number}","comments_url":"https://api.github.com/repos/getsentry/sentry/issues/7474/comments","statuses_url":"https://api.github.com/repos/getsentry/sentry/statuses/a4eefd6de38b51673b71c055fb40391f40e42136","head":{"label":"getsentry:project-teams-dropdown","ref":"project-teams-dropdown","sha":"a4eefd6de38b51673b71c055fb40391f40e42136","user":{"login":"getsentry","id":1396951,"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,"name":"sentry","full_name":"getsentry/sentry","owner":{"login":"getsentry","id":1396951,"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 a cross-platform crash reporting and aggregation platform.","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-03-06T11:26:18Z","pushed_at":"2018-03-06T12:58:02Z","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":79654,"stargazers_count":15884,"watchers_count":15884,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1887,"mirror_url":null,"archived":false,"open_issues_count":762,"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"},"forks":1887,"open_issues":762,"watchers":15884,"default_branch":"master"}},"base":{"label":"getsentry:master","ref":"master","sha":"a053e3f599b49b7c48ad80790d1e500f1147f83a","user":{"login":"getsentry","id":1396951,"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,"name":"sentry","full_name":"getsentry/sentry","owner":{"login":"getsentry","id":1396951,"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 a cross-platform crash reporting and aggregation platform.","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-03-06T11:26:18Z","pushed_at":"2018-03-06T12:58:02Z","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":79654,"stargazers_count":15884,"watchers_count":15884,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1887,"mirror_url":null,"archived":false,"open_issues_count":762,"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"},"forks":1887,"open_issues":762,"watchers":15884,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/getsentry/sentry/pulls/7474"},"html":{"href":"https://github.com/getsentry/sentry/pull/7474"},"issue":{"href":"https://api.github.com/repos/getsentry/sentry/issues/7474"},"comments":{"href":"https://api.github.com/repos/getsentry/sentry/issues/7474/comments"},"review_comments":{"href":"https://api.github.com/repos/getsentry/sentry/pulls/7474/comments"},"review_comment":{"href":"https://api.github.com/repos/getsentry/sentry/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/getsentry/sentry/pulls/7474/commits"},"statuses":{"href":"https://api.github.com/repos/getsentry/sentry/statuses/a4eefd6de38b51673b71c055fb40391f40e42136"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"billyvg"}}