{"action":"opened","number":19,"pull_request":{"url":"https://api.github.com/repos/dropbox/grouper/pulls/19","id":33309107,"html_url":"https://github.com/dropbox/grouper/pull/19","diff_url":"https://github.com/dropbox/grouper/pull/19.diff","patch_url":"https://github.com/dropbox/grouper/pull/19.patch","issue_url":"https://api.github.com/repos/dropbox/grouper/issues/19","number":19,"state":"open","locked":false,"title":"Use bulk queries","user":{"login":"zorkian","id":361428,"avatar_url":"https://avatars.githubusercontent.com/u/361428?v=3","gravatar_id":"","url":"https://api.github.com/users/zorkian","html_url":"https://github.com/zorkian","followers_url":"https://api.github.com/users/zorkian/followers","following_url":"https://api.github.com/users/zorkian/following{/other_user}","gists_url":"https://api.github.com/users/zorkian/gists{/gist_id}","starred_url":"https://api.github.com/users/zorkian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zorkian/subscriptions","organizations_url":"https://api.github.com/users/zorkian/orgs","repos_url":"https://api.github.com/users/zorkian/repos","events_url":"https://api.github.com/users/zorkian/events{/privacy}","received_events_url":"https://api.github.com/users/zorkian/received_events","type":"User","site_admin":false},"body":"This codepath was selecting public keys and user metadata for each user,\r\nleading to doing hundreds of queries to refresh user data. This is\r\npretty slow.","created_at":"2015-04-14T23:11:40Z","updated_at":"2015-04-14T23:11:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dropbox/grouper/pulls/19/commits","review_comments_url":"https://api.github.com/repos/dropbox/grouper/pulls/19/comments","review_comment_url":"https://api.github.com/repos/dropbox/grouper/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dropbox/grouper/issues/19/comments","statuses_url":"https://api.github.com/repos/dropbox/grouper/statuses/227ecaede8f5b8360f9d2bfe25c647084b8c9d50","head":{"label":"zorkian:bulk-query","ref":"bulk-query","sha":"227ecaede8f5b8360f9d2bfe25c647084b8c9d50","user":{"login":"zorkian","id":361428,"avatar_url":"https://avatars.githubusercontent.com/u/361428?v=3","gravatar_id":"","url":"https://api.github.com/users/zorkian","html_url":"https://github.com/zorkian","followers_url":"https://api.github.com/users/zorkian/followers","following_url":"https://api.github.com/users/zorkian/following{/other_user}","gists_url":"https://api.github.com/users/zorkian/gists{/gist_id}","starred_url":"https://api.github.com/users/zorkian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zorkian/subscriptions","organizations_url":"https://api.github.com/users/zorkian/orgs","repos_url":"https://api.github.com/users/zorkian/repos","events_url":"https://api.github.com/users/zorkian/events{/privacy}","received_events_url":"https://api.github.com/users/zorkian/received_events","type":"User","site_admin":false},"repo":{"id":24917603,"name":"grouper","full_name":"zorkian/grouper","owner":{"login":"zorkian","id":361428,"avatar_url":"https://avatars.githubusercontent.com/u/361428?v=3","gravatar_id":"","url":"https://api.github.com/users/zorkian","html_url":"https://github.com/zorkian","followers_url":"https://api.github.com/users/zorkian/followers","following_url":"https://api.github.com/users/zorkian/following{/other_user}","gists_url":"https://api.github.com/users/zorkian/gists{/gist_id}","starred_url":"https://api.github.com/users/zorkian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zorkian/subscriptions","organizations_url":"https://api.github.com/users/zorkian/orgs","repos_url":"https://api.github.com/users/zorkian/repos","events_url":"https://api.github.com/users/zorkian/events{/privacy}","received_events_url":"https://api.github.com/users/zorkian/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zorkian/grouper","description":"Group Management Server","fork":true,"url":"https://api.github.com/repos/zorkian/grouper","forks_url":"https://api.github.com/repos/zorkian/grouper/forks","keys_url":"https://api.github.com/repos/zorkian/grouper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zorkian/grouper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zorkian/grouper/teams","hooks_url":"https://api.github.com/repos/zorkian/grouper/hooks","issue_events_url":"https://api.github.com/repos/zorkian/grouper/issues/events{/number}","events_url":"https://api.github.com/repos/zorkian/grouper/events","assignees_url":"https://api.github.com/repos/zorkian/grouper/assignees{/user}","branches_url":"https://api.github.com/repos/zorkian/grouper/branches{/branch}","tags_url":"https://api.github.com/repos/zorkian/grouper/tags","blobs_url":"https://api.github.com/repos/zorkian/grouper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zorkian/grouper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zorkian/grouper/git/refs{/sha}","trees_url":"https://api.github.com/repos/zorkian/grouper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zorkian/grouper/statuses/{sha}","languages_url":"https://api.github.com/repos/zorkian/grouper/languages","stargazers_url":"https://api.github.com/repos/zorkian/grouper/stargazers","contributors_url":"https://api.github.com/repos/zorkian/grouper/contributors","subscribers_url":"https://api.github.com/repos/zorkian/grouper/subscribers","subscription_url":"https://api.github.com/repos/zorkian/grouper/subscription","commits_url":"https://api.github.com/repos/zorkian/grouper/commits{/sha}","git_commits_url":"https://api.github.com/repos/zorkian/grouper/git/commits{/sha}","comments_url":"https://api.github.com/repos/zorkian/grouper/comments{/number}","issue_comment_url":"https://api.github.com/repos/zorkian/grouper/issues/comments{/number}","contents_url":"https://api.github.com/repos/zorkian/grouper/contents/{+path}","compare_url":"https://api.github.com/repos/zorkian/grouper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zorkian/grouper/merges","archive_url":"https://api.github.com/repos/zorkian/grouper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zorkian/grouper/downloads","issues_url":"https://api.github.com/repos/zorkian/grouper/issues{/number}","pulls_url":"https://api.github.com/repos/zorkian/grouper/pulls{/number}","milestones_url":"https://api.github.com/repos/zorkian/grouper/milestones{/number}","notifications_url":"https://api.github.com/repos/zorkian/grouper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zorkian/grouper/labels{/name}","releases_url":"https://api.github.com/repos/zorkian/grouper/releases{/id}","created_at":"2014-10-08T00:19:58Z","updated_at":"2015-04-14T03:20:04Z","pushed_at":"2015-04-14T23:10:59Z","git_url":"git://github.com/zorkian/grouper.git","ssh_url":"git@github.com:zorkian/grouper.git","clone_url":"https://github.com/zorkian/grouper.git","svn_url":"https://github.com/zorkian/grouper","homepage":null,"size":518,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dropbox:master","ref":"master","sha":"ed6860c1dc03e2a5b1d0dfc1f1c7269812a90e1e","user":{"login":"dropbox","id":559357,"avatar_url":"https://avatars.githubusercontent.com/u/559357?v=3","gravatar_id":"","url":"https://api.github.com/users/dropbox","html_url":"https://github.com/dropbox","followers_url":"https://api.github.com/users/dropbox/followers","following_url":"https://api.github.com/users/dropbox/following{/other_user}","gists_url":"https://api.github.com/users/dropbox/gists{/gist_id}","starred_url":"https://api.github.com/users/dropbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dropbox/subscriptions","organizations_url":"https://api.github.com/users/dropbox/orgs","repos_url":"https://api.github.com/users/dropbox/repos","events_url":"https://api.github.com/users/dropbox/events{/privacy}","received_events_url":"https://api.github.com/users/dropbox/received_events","type":"Organization","site_admin":false},"repo":{"id":23774982,"name":"grouper","full_name":"dropbox/grouper","owner":{"login":"dropbox","id":559357,"avatar_url":"https://avatars.githubusercontent.com/u/559357?v=3","gravatar_id":"","url":"https://api.github.com/users/dropbox","html_url":"https://github.com/dropbox","followers_url":"https://api.github.com/users/dropbox/followers","following_url":"https://api.github.com/users/dropbox/following{/other_user}","gists_url":"https://api.github.com/users/dropbox/gists{/gist_id}","starred_url":"https://api.github.com/users/dropbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dropbox/subscriptions","organizations_url":"https://api.github.com/users/dropbox/orgs","repos_url":"https://api.github.com/users/dropbox/repos","events_url":"https://api.github.com/users/dropbox/events{/privacy}","received_events_url":"https://api.github.com/users/dropbox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dropbox/grouper","description":"Group Management Server","fork":false,"url":"https://api.github.com/repos/dropbox/grouper","forks_url":"https://api.github.com/repos/dropbox/grouper/forks","keys_url":"https://api.github.com/repos/dropbox/grouper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dropbox/grouper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dropbox/grouper/teams","hooks_url":"https://api.github.com/repos/dropbox/grouper/hooks","issue_events_url":"https://api.github.com/repos/dropbox/grouper/issues/events{/number}","events_url":"https://api.github.com/repos/dropbox/grouper/events","assignees_url":"https://api.github.com/repos/dropbox/grouper/assignees{/user}","branches_url":"https://api.github.com/repos/dropbox/grouper/branches{/branch}","tags_url":"https://api.github.com/repos/dropbox/grouper/tags","blobs_url":"https://api.github.com/repos/dropbox/grouper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dropbox/grouper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dropbox/grouper/git/refs{/sha}","trees_url":"https://api.github.com/repos/dropbox/grouper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dropbox/grouper/statuses/{sha}","languages_url":"https://api.github.com/repos/dropbox/grouper/languages","stargazers_url":"https://api.github.com/repos/dropbox/grouper/stargazers","contributors_url":"https://api.github.com/repos/dropbox/grouper/contributors","subscribers_url":"https://api.github.com/repos/dropbox/grouper/subscribers","subscription_url":"https://api.github.com/repos/dropbox/grouper/subscription","commits_url":"https://api.github.com/repos/dropbox/grouper/commits{/sha}","git_commits_url":"https://api.github.com/repos/dropbox/grouper/git/commits{/sha}","comments_url":"https://api.github.com/repos/dropbox/grouper/comments{/number}","issue_comment_url":"https://api.github.com/repos/dropbox/grouper/issues/comments{/number}","contents_url":"https://api.github.com/repos/dropbox/grouper/contents/{+path}","compare_url":"https://api.github.com/repos/dropbox/grouper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dropbox/grouper/merges","archive_url":"https://api.github.com/repos/dropbox/grouper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dropbox/grouper/downloads","issues_url":"https://api.github.com/repos/dropbox/grouper/issues{/number}","pulls_url":"https://api.github.com/repos/dropbox/grouper/pulls{/number}","milestones_url":"https://api.github.com/repos/dropbox/grouper/milestones{/number}","notifications_url":"https://api.github.com/repos/dropbox/grouper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dropbox/grouper/labels{/name}","releases_url":"https://api.github.com/repos/dropbox/grouper/releases{/id}","created_at":"2014-09-08T00:41:17Z","updated_at":"2015-04-14T19:32:07Z","pushed_at":"2015-04-14T23:11:40Z","git_url":"git://github.com/dropbox/grouper.git","ssh_url":"git@github.com:dropbox/grouper.git","clone_url":"https://github.com/dropbox/grouper.git","svn_url":"https://github.com/dropbox/grouper","homepage":null,"size":555,"stargazers_count":12,"watchers_count":12,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":1,"forks":5,"open_issues":1,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dropbox/grouper/pulls/19"},"html":{"href":"https://github.com/dropbox/grouper/pull/19"},"issue":{"href":"https://api.github.com/repos/dropbox/grouper/issues/19"},"comments":{"href":"https://api.github.com/repos/dropbox/grouper/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/dropbox/grouper/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/dropbox/grouper/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dropbox/grouper/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/dropbox/grouper/statuses/227ecaede8f5b8360f9d2bfe25c647084b8c9d50"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":15,"deletions":3,"changed_files":1}}