{"action":"closed","number":446,"pull_request":{"url":"https://api.github.com/repos/zooniverse/scribeAPI/pulls/446","id":47300999,"html_url":"https://github.com/zooniverse/scribeAPI/pull/446","diff_url":"https://github.com/zooniverse/scribeAPI/pull/446.diff","patch_url":"https://github.com/zooniverse/scribeAPI/pull/446.patch","issue_url":"https://api.github.com/repos/zooniverse/scribeAPI/issues/446","number":446,"state":"closed","locked":false,"title":"more indexes on belongs_tos, etc","user":{"login":"nonword","id":439581,"avatar_url":"https://avatars.githubusercontent.com/u/439581?v=3","gravatar_id":"","url":"https://api.github.com/users/nonword","html_url":"https://github.com/nonword","followers_url":"https://api.github.com/users/nonword/followers","following_url":"https://api.github.com/users/nonword/following{/other_user}","gists_url":"https://api.github.com/users/nonword/gists{/gist_id}","starred_url":"https://api.github.com/users/nonword/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nonword/subscriptions","organizations_url":"https://api.github.com/users/nonword/orgs","repos_url":"https://api.github.com/users/nonword/repos","events_url":"https://api.github.com/users/nonword/events{/privacy}","received_events_url":"https://api.github.com/users/nonword/received_events","type":"User","site_admin":false},"body":"- Adds Workflow and Favourite indexes for common belongs_to queries. (even though we're not really favouriting things yet)\r\n- Pushes group_by work in Project#calc_stats to db where it belongs (previously pulled all subjects from db and manually grouped)","created_at":"2015-10-09T17:56:28Z","updated_at":"2015-10-11T20:00:31Z","closed_at":"2015-10-11T20:00:31Z","merged_at":"2015-10-11T20:00:31Z","merge_commit_sha":"678ff008a58c4433dd0695e85ecd9b6322d77260","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zooniverse/scribeAPI/pulls/446/commits","review_comments_url":"https://api.github.com/repos/zooniverse/scribeAPI/pulls/446/comments","review_comment_url":"https://api.github.com/repos/zooniverse/scribeAPI/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zooniverse/scribeAPI/issues/446/comments","statuses_url":"https://api.github.com/repos/zooniverse/scribeAPI/statuses/36f0f7bd7694b39d4d0a35984050f790b2735dde","head":{"label":"zooniverse:more-indexes","ref":"more-indexes","sha":"36f0f7bd7694b39d4d0a35984050f790b2735dde","user":{"login":"zooniverse","id":106856,"avatar_url":"https://avatars.githubusercontent.com/u/106856?v=3","gravatar_id":"","url":"https://api.github.com/users/zooniverse","html_url":"https://github.com/zooniverse","followers_url":"https://api.github.com/users/zooniverse/followers","following_url":"https://api.github.com/users/zooniverse/following{/other_user}","gists_url":"https://api.github.com/users/zooniverse/gists{/gist_id}","starred_url":"https://api.github.com/users/zooniverse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zooniverse/subscriptions","organizations_url":"https://api.github.com/users/zooniverse/orgs","repos_url":"https://api.github.com/users/zooniverse/repos","events_url":"https://api.github.com/users/zooniverse/events{/privacy}","received_events_url":"https://api.github.com/users/zooniverse/received_events","type":"Organization","site_admin":false},"repo":{"id":18412580,"name":"scribeAPI","full_name":"zooniverse/scribeAPI","owner":{"login":"zooniverse","id":106856,"avatar_url":"https://avatars.githubusercontent.com/u/106856?v=3","gravatar_id":"","url":"https://api.github.com/users/zooniverse","html_url":"https://github.com/zooniverse","followers_url":"https://api.github.com/users/zooniverse/followers","following_url":"https://api.github.com/users/zooniverse/following{/other_user}","gists_url":"https://api.github.com/users/zooniverse/gists{/gist_id}","starred_url":"https://api.github.com/users/zooniverse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zooniverse/subscriptions","organizations_url":"https://api.github.com/users/zooniverse/orgs","repos_url":"https://api.github.com/users/zooniverse/repos","events_url":"https://api.github.com/users/zooniverse/events{/privacy}","received_events_url":"https://api.github.com/users/zooniverse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zooniverse/scribeAPI","description":"scribe API","fork":false,"url":"https://api.github.com/repos/zooniverse/scribeAPI","forks_url":"https://api.github.com/repos/zooniverse/scribeAPI/forks","keys_url":"https://api.github.com/repos/zooniverse/scribeAPI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zooniverse/scribeAPI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zooniverse/scribeAPI/teams","hooks_url":"https://api.github.com/repos/zooniverse/scribeAPI/hooks","issue_events_url":"https://api.github.com/repos/zooniverse/scribeAPI/issues/events{/number}","events_url":"https://api.github.com/repos/zooniverse/scribeAPI/events","assignees_url":"https://api.github.com/repos/zooniverse/scribeAPI/assignees{/user}","branches_url":"https://api.github.com/repos/zooniverse/scribeAPI/branches{/branch}","tags_url":"https://api.github.com/repos/zooniverse/scribeAPI/tags","blobs_url":"https://api.github.com/repos/zooniverse/scribeAPI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zooniverse/scribeAPI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zooniverse/scribeAPI/git/refs{/sha}","trees_url":"https://api.github.com/repos/zooniverse/scribeAPI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zooniverse/scribeAPI/statuses/{sha}","languages_url":"https://api.github.com/repos/zooniverse/scribeAPI/languages","stargazers_url":"https://api.github.com/repos/zooniverse/scribeAPI/stargazers","contributors_url":"https://api.github.com/repos/zooniverse/scribeAPI/contributors","subscribers_url":"https://api.github.com/repos/zooniverse/scribeAPI/subscribers","subscription_url":"https://api.github.com/repos/zooniverse/scribeAPI/subscription","commits_url":"https://api.github.com/repos/zooniverse/scribeAPI/commits{/sha}","git_commits_url":"https://api.github.com/repos/zooniverse/scribeAPI/git/commits{/sha}","comments_url":"https://api.github.com/repos/zooniverse/scribeAPI/comments{/number}","issue_comment_url":"https://api.github.com/repos/zooniverse/scribeAPI/issues/comments{/number}","contents_url":"https://api.github.com/repos/zooniverse/scribeAPI/contents/{+path}","compare_url":"https://api.github.com/repos/zooniverse/scribeAPI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zooniverse/scribeAPI/merges","archive_url":"https://api.github.com/repos/zooniverse/scribeAPI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zooniverse/scribeAPI/downloads","issues_url":"https://api.github.com/repos/zooniverse/scribeAPI/issues{/number}","pulls_url":"https://api.github.com/repos/zooniverse/scribeAPI/pulls{/number}","milestones_url":"https://api.github.com/repos/zooniverse/scribeAPI/milestones{/number}","notifications_url":"https://api.github.com/repos/zooniverse/scribeAPI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zooniverse/scribeAPI/labels{/name}","releases_url":"https://api.github.com/repos/zooniverse/scribeAPI/releases{/id}","created_at":"2014-04-03T17:53:43Z","updated_at":"2015-10-09T03:38:27Z","pushed_at":"2015-10-11T20:00:32Z","git_url":"git://github.com/zooniverse/scribeAPI.git","ssh_url":"git@github.com:zooniverse/scribeAPI.git","clone_url":"https://github.com/zooniverse/scribeAPI.git","svn_url":"https://github.com/zooniverse/scribeAPI","homepage":null,"size":37738,"stargazers_count":11,"watchers_count":11,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":52,"forks":3,"open_issues":52,"watchers":11,"default_branch":"master"}},"base":{"label":"zooniverse:master","ref":"master","sha":"15ec9a06fa4a7dc75bc62aef35931a7363f2224e","user":{"login":"zooniverse","id":106856,"avatar_url":"https://avatars.githubusercontent.com/u/106856?v=3","gravatar_id":"","url":"https://api.github.com/users/zooniverse","html_url":"https://github.com/zooniverse","followers_url":"https://api.github.com/users/zooniverse/followers","following_url":"https://api.github.com/users/zooniverse/following{/other_user}","gists_url":"https://api.github.com/users/zooniverse/gists{/gist_id}","starred_url":"https://api.github.com/users/zooniverse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zooniverse/subscriptions","organizations_url":"https://api.github.com/users/zooniverse/orgs","repos_url":"https://api.github.com/users/zooniverse/repos","events_url":"https://api.github.com/users/zooniverse/events{/privacy}","received_events_url":"https://api.github.com/users/zooniverse/received_events","type":"Organization","site_admin":false},"repo":{"id":18412580,"name":"scribeAPI","full_name":"zooniverse/scribeAPI","owner":{"login":"zooniverse","id":106856,"avatar_url":"https://avatars.githubusercontent.com/u/106856?v=3","gravatar_id":"","url":"https://api.github.com/users/zooniverse","html_url":"https://github.com/zooniverse","followers_url":"https://api.github.com/users/zooniverse/followers","following_url":"https://api.github.com/users/zooniverse/following{/other_user}","gists_url":"https://api.github.com/users/zooniverse/gists{/gist_id}","starred_url":"https://api.github.com/users/zooniverse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zooniverse/subscriptions","organizations_url":"https://api.github.com/users/zooniverse/orgs","repos_url":"https://api.github.com/users/zooniverse/repos","events_url":"https://api.github.com/users/zooniverse/events{/privacy}","received_events_url":"https://api.github.com/users/zooniverse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zooniverse/scribeAPI","description":"scribe API","fork":false,"url":"https://api.github.com/repos/zooniverse/scribeAPI","forks_url":"https://api.github.com/repos/zooniverse/scribeAPI/forks","keys_url":"https://api.github.com/repos/zooniverse/scribeAPI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zooniverse/scribeAPI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zooniverse/scribeAPI/teams","hooks_url":"https://api.github.com/repos/zooniverse/scribeAPI/hooks","issue_events_url":"https://api.github.com/repos/zooniverse/scribeAPI/issues/events{/number}","events_url":"https://api.github.com/repos/zooniverse/scribeAPI/events","assignees_url":"https://api.github.com/repos/zooniverse/scribeAPI/assignees{/user}","branches_url":"https://api.github.com/repos/zooniverse/scribeAPI/branches{/branch}","tags_url":"https://api.github.com/repos/zooniverse/scribeAPI/tags","blobs_url":"https://api.github.com/repos/zooniverse/scribeAPI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zooniverse/scribeAPI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zooniverse/scribeAPI/git/refs{/sha}","trees_url":"https://api.github.com/repos/zooniverse/scribeAPI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zooniverse/scribeAPI/statuses/{sha}","languages_url":"https://api.github.com/repos/zooniverse/scribeAPI/languages","stargazers_url":"https://api.github.com/repos/zooniverse/scribeAPI/stargazers","contributors_url":"https://api.github.com/repos/zooniverse/scribeAPI/contributors","subscribers_url":"https://api.github.com/repos/zooniverse/scribeAPI/subscribers","subscription_url":"https://api.github.com/repos/zooniverse/scribeAPI/subscription","commits_url":"https://api.github.com/repos/zooniverse/scribeAPI/commits{/sha}","git_commits_url":"https://api.github.com/repos/zooniverse/scribeAPI/git/commits{/sha}","comments_url":"https://api.github.com/repos/zooniverse/scribeAPI/comments{/number}","issue_comment_url":"https://api.github.com/repos/zooniverse/scribeAPI/issues/comments{/number}","contents_url":"https://api.github.com/repos/zooniverse/scribeAPI/contents/{+path}","compare_url":"https://api.github.com/repos/zooniverse/scribeAPI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zooniverse/scribeAPI/merges","archive_url":"https://api.github.com/repos/zooniverse/scribeAPI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zooniverse/scribeAPI/downloads","issues_url":"https://api.github.com/repos/zooniverse/scribeAPI/issues{/number}","pulls_url":"https://api.github.com/repos/zooniverse/scribeAPI/pulls{/number}","milestones_url":"https://api.github.com/repos/zooniverse/scribeAPI/milestones{/number}","notifications_url":"https://api.github.com/repos/zooniverse/scribeAPI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zooniverse/scribeAPI/labels{/name}","releases_url":"https://api.github.com/repos/zooniverse/scribeAPI/releases{/id}","created_at":"2014-04-03T17:53:43Z","updated_at":"2015-10-09T03:38:27Z","pushed_at":"2015-10-11T20:00:32Z","git_url":"git://github.com/zooniverse/scribeAPI.git","ssh_url":"git@github.com:zooniverse/scribeAPI.git","clone_url":"https://github.com/zooniverse/scribeAPI.git","svn_url":"https://github.com/zooniverse/scribeAPI","homepage":null,"size":37738,"stargazers_count":11,"watchers_count":11,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":52,"forks":3,"open_issues":52,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zooniverse/scribeAPI/pulls/446"},"html":{"href":"https://github.com/zooniverse/scribeAPI/pull/446"},"issue":{"href":"https://api.github.com/repos/zooniverse/scribeAPI/issues/446"},"comments":{"href":"https://api.github.com/repos/zooniverse/scribeAPI/issues/446/comments"},"review_comments":{"href":"https://api.github.com/repos/zooniverse/scribeAPI/pulls/446/comments"},"review_comment":{"href":"https://api.github.com/repos/zooniverse/scribeAPI/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zooniverse/scribeAPI/pulls/446/commits"},"statuses":{"href":"https://api.github.com/repos/zooniverse/scribeAPI/statuses/36f0f7bd7694b39d4d0a35984050f790b2735dde"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"simensta","id":7684729,"avatar_url":"https://avatars.githubusercontent.com/u/7684729?v=3","gravatar_id":"","url":"https://api.github.com/users/simensta","html_url":"https://github.com/simensta","followers_url":"https://api.github.com/users/simensta/followers","following_url":"https://api.github.com/users/simensta/following{/other_user}","gists_url":"https://api.github.com/users/simensta/gists{/gist_id}","starred_url":"https://api.github.com/users/simensta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simensta/subscriptions","organizations_url":"https://api.github.com/users/simensta/orgs","repos_url":"https://api.github.com/users/simensta/repos","events_url":"https://api.github.com/users/simensta/events{/privacy}","received_events_url":"https://api.github.com/users/simensta/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":30,"deletions":9,"changed_files":6}}