{"action":"opened","number":153,"pull_request":{"url":"https://api.github.com/repos/cobudget/cobudget-api/pulls/153","id":81733293,"html_url":"https://github.com/cobudget/cobudget-api/pull/153","diff_url":"https://github.com/cobudget/cobudget-api/pull/153.diff","patch_url":"https://github.com/cobudget/cobudget-api/pull/153.patch","issue_url":"https://api.github.com/repos/cobudget/cobudget-api/issues/153","number":153,"state":"open","locked":false,"title":"Don't load group in Membership#total_allocations, instead use group_id","user":{"login":"kiesia","id":783612,"avatar_url":"https://avatars.githubusercontent.com/u/783612?v=3","gravatar_id":"","url":"https://api.github.com/users/kiesia","html_url":"https://github.com/kiesia","followers_url":"https://api.github.com/users/kiesia/followers","following_url":"https://api.github.com/users/kiesia/following{/other_user}","gists_url":"https://api.github.com/users/kiesia/gists{/gist_id}","starred_url":"https://api.github.com/users/kiesia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiesia/subscriptions","organizations_url":"https://api.github.com/users/kiesia/orgs","repos_url":"https://api.github.com/users/kiesia/repos","events_url":"https://api.github.com/users/kiesia/events{/privacy}","received_events_url":"https://api.github.com/users/kiesia/received_events","type":"User","site_admin":false},"body":"This cuts the MembershipController#index processing time down a lot by skipping loading the group first, and directly using the group_id.\r\n\r\nThe Membership balance code should really be refactored into proper relations soon! It's pretty nasty currently.  ","created_at":"2016-08-17T23:14:58Z","updated_at":"2016-08-17T23:14:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/cobudget/cobudget-api/pulls/153/commits","review_comments_url":"https://api.github.com/repos/cobudget/cobudget-api/pulls/153/comments","review_comment_url":"https://api.github.com/repos/cobudget/cobudget-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cobudget/cobudget-api/issues/153/comments","statuses_url":"https://api.github.com/repos/cobudget/cobudget-api/statuses/493c847b055608266502838c850d8c5fd8c577a8","head":{"label":"cobudget:refactor/membership-allocation-total-dont-load-group","ref":"refactor/membership-allocation-total-dont-load-group","sha":"493c847b055608266502838c850d8c5fd8c577a8","user":{"login":"cobudget","id":8426371,"avatar_url":"https://avatars.githubusercontent.com/u/8426371?v=3","gravatar_id":"","url":"https://api.github.com/users/cobudget","html_url":"https://github.com/cobudget","followers_url":"https://api.github.com/users/cobudget/followers","following_url":"https://api.github.com/users/cobudget/following{/other_user}","gists_url":"https://api.github.com/users/cobudget/gists{/gist_id}","starred_url":"https://api.github.com/users/cobudget/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cobudget/subscriptions","organizations_url":"https://api.github.com/users/cobudget/orgs","repos_url":"https://api.github.com/users/cobudget/repos","events_url":"https://api.github.com/users/cobudget/events{/privacy}","received_events_url":"https://api.github.com/users/cobudget/received_events","type":"Organization","site_admin":false},"repo":{"id":14197945,"name":"cobudget-api","full_name":"cobudget/cobudget-api","owner":{"login":"cobudget","id":8426371,"avatar_url":"https://avatars.githubusercontent.com/u/8426371?v=3","gravatar_id":"","url":"https://api.github.com/users/cobudget","html_url":"https://github.com/cobudget","followers_url":"https://api.github.com/users/cobudget/followers","following_url":"https://api.github.com/users/cobudget/following{/other_user}","gists_url":"https://api.github.com/users/cobudget/gists{/gist_id}","starred_url":"https://api.github.com/users/cobudget/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cobudget/subscriptions","organizations_url":"https://api.github.com/users/cobudget/orgs","repos_url":"https://api.github.com/users/cobudget/repos","events_url":"https://api.github.com/users/cobudget/events{/privacy}","received_events_url":"https://api.github.com/users/cobudget/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cobudget/cobudget-api","description":"cobudget's back-end api","fork":false,"url":"https://api.github.com/repos/cobudget/cobudget-api","forks_url":"https://api.github.com/repos/cobudget/cobudget-api/forks","keys_url":"https://api.github.com/repos/cobudget/cobudget-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cobudget/cobudget-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cobudget/cobudget-api/teams","hooks_url":"https://api.github.com/repos/cobudget/cobudget-api/hooks","issue_events_url":"https://api.github.com/repos/cobudget/cobudget-api/issues/events{/number}","events_url":"https://api.github.com/repos/cobudget/cobudget-api/events","assignees_url":"https://api.github.com/repos/cobudget/cobudget-api/assignees{/user}","branches_url":"https://api.github.com/repos/cobudget/cobudget-api/branches{/branch}","tags_url":"https://api.github.com/repos/cobudget/cobudget-api/tags","blobs_url":"https://api.github.com/repos/cobudget/cobudget-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cobudget/cobudget-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cobudget/cobudget-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/cobudget/cobudget-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cobudget/cobudget-api/statuses/{sha}","languages_url":"https://api.github.com/repos/cobudget/cobudget-api/languages","stargazers_url":"https://api.github.com/repos/cobudget/cobudget-api/stargazers","contributors_url":"https://api.github.com/repos/cobudget/cobudget-api/contributors","subscribers_url":"https://api.github.com/repos/cobudget/cobudget-api/subscribers","subscription_url":"https://api.github.com/repos/cobudget/cobudget-api/subscription","commits_url":"https://api.github.com/repos/cobudget/cobudget-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/cobudget/cobudget-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/cobudget/cobudget-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/cobudget/cobudget-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/cobudget/cobudget-api/contents/{+path}","compare_url":"https://api.github.com/repos/cobudget/cobudget-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cobudget/cobudget-api/merges","archive_url":"https://api.github.com/repos/cobudget/cobudget-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cobudget/cobudget-api/downloads","issues_url":"https://api.github.com/repos/cobudget/cobudget-api/issues{/number}","pulls_url":"https://api.github.com/repos/cobudget/cobudget-api/pulls{/number}","milestones_url":"https://api.github.com/repos/cobudget/cobudget-api/milestones{/number}","notifications_url":"https://api.github.com/repos/cobudget/cobudget-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cobudget/cobudget-api/labels{/name}","releases_url":"https://api.github.com/repos/cobudget/cobudget-api/releases{/id}","deployments_url":"https://api.github.com/repos/cobudget/cobudget-api/deployments","created_at":"2013-11-07T08:10:34Z","updated_at":"2016-08-17T01:18:24Z","pushed_at":"2016-08-17T23:09:45Z","git_url":"git://github.com/cobudget/cobudget-api.git","ssh_url":"git@github.com:cobudget/cobudget-api.git","clone_url":"https://github.com/cobudget/cobudget-api.git","svn_url":"https://github.com/cobudget/cobudget-api","homepage":"","size":1204,"stargazers_count":9,"watchers_count":9,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":6,"forks":6,"open_issues":6,"watchers":9,"default_branch":"master"}},"base":{"label":"cobudget:master","ref":"master","sha":"65cd4657c1434171e67595ce01d62cf255a1e80b","user":{"login":"cobudget","id":8426371,"avatar_url":"https://avatars.githubusercontent.com/u/8426371?v=3","gravatar_id":"","url":"https://api.github.com/users/cobudget","html_url":"https://github.com/cobudget","followers_url":"https://api.github.com/users/cobudget/followers","following_url":"https://api.github.com/users/cobudget/following{/other_user}","gists_url":"https://api.github.com/users/cobudget/gists{/gist_id}","starred_url":"https://api.github.com/users/cobudget/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cobudget/subscriptions","organizations_url":"https://api.github.com/users/cobudget/orgs","repos_url":"https://api.github.com/users/cobudget/repos","events_url":"https://api.github.com/users/cobudget/events{/privacy}","received_events_url":"https://api.github.com/users/cobudget/received_events","type":"Organization","site_admin":false},"repo":{"id":14197945,"name":"cobudget-api","full_name":"cobudget/cobudget-api","owner":{"login":"cobudget","id":8426371,"avatar_url":"https://avatars.githubusercontent.com/u/8426371?v=3","gravatar_id":"","url":"https://api.github.com/users/cobudget","html_url":"https://github.com/cobudget","followers_url":"https://api.github.com/users/cobudget/followers","following_url":"https://api.github.com/users/cobudget/following{/other_user}","gists_url":"https://api.github.com/users/cobudget/gists{/gist_id}","starred_url":"https://api.github.com/users/cobudget/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cobudget/subscriptions","organizations_url":"https://api.github.com/users/cobudget/orgs","repos_url":"https://api.github.com/users/cobudget/repos","events_url":"https://api.github.com/users/cobudget/events{/privacy}","received_events_url":"https://api.github.com/users/cobudget/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cobudget/cobudget-api","description":"cobudget's back-end api","fork":false,"url":"https://api.github.com/repos/cobudget/cobudget-api","forks_url":"https://api.github.com/repos/cobudget/cobudget-api/forks","keys_url":"https://api.github.com/repos/cobudget/cobudget-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cobudget/cobudget-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cobudget/cobudget-api/teams","hooks_url":"https://api.github.com/repos/cobudget/cobudget-api/hooks","issue_events_url":"https://api.github.com/repos/cobudget/cobudget-api/issues/events{/number}","events_url":"https://api.github.com/repos/cobudget/cobudget-api/events","assignees_url":"https://api.github.com/repos/cobudget/cobudget-api/assignees{/user}","branches_url":"https://api.github.com/repos/cobudget/cobudget-api/branches{/branch}","tags_url":"https://api.github.com/repos/cobudget/cobudget-api/tags","blobs_url":"https://api.github.com/repos/cobudget/cobudget-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cobudget/cobudget-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cobudget/cobudget-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/cobudget/cobudget-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cobudget/cobudget-api/statuses/{sha}","languages_url":"https://api.github.com/repos/cobudget/cobudget-api/languages","stargazers_url":"https://api.github.com/repos/cobudget/cobudget-api/stargazers","contributors_url":"https://api.github.com/repos/cobudget/cobudget-api/contributors","subscribers_url":"https://api.github.com/repos/cobudget/cobudget-api/subscribers","subscription_url":"https://api.github.com/repos/cobudget/cobudget-api/subscription","commits_url":"https://api.github.com/repos/cobudget/cobudget-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/cobudget/cobudget-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/cobudget/cobudget-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/cobudget/cobudget-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/cobudget/cobudget-api/contents/{+path}","compare_url":"https://api.github.com/repos/cobudget/cobudget-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cobudget/cobudget-api/merges","archive_url":"https://api.github.com/repos/cobudget/cobudget-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cobudget/cobudget-api/downloads","issues_url":"https://api.github.com/repos/cobudget/cobudget-api/issues{/number}","pulls_url":"https://api.github.com/repos/cobudget/cobudget-api/pulls{/number}","milestones_url":"https://api.github.com/repos/cobudget/cobudget-api/milestones{/number}","notifications_url":"https://api.github.com/repos/cobudget/cobudget-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cobudget/cobudget-api/labels{/name}","releases_url":"https://api.github.com/repos/cobudget/cobudget-api/releases{/id}","deployments_url":"https://api.github.com/repos/cobudget/cobudget-api/deployments","created_at":"2013-11-07T08:10:34Z","updated_at":"2016-08-17T01:18:24Z","pushed_at":"2016-08-17T23:09:45Z","git_url":"git://github.com/cobudget/cobudget-api.git","ssh_url":"git@github.com:cobudget/cobudget-api.git","clone_url":"https://github.com/cobudget/cobudget-api.git","svn_url":"https://github.com/cobudget/cobudget-api","homepage":"","size":1204,"stargazers_count":9,"watchers_count":9,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":6,"forks":6,"open_issues":6,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cobudget/cobudget-api/pulls/153"},"html":{"href":"https://github.com/cobudget/cobudget-api/pull/153"},"issue":{"href":"https://api.github.com/repos/cobudget/cobudget-api/issues/153"},"comments":{"href":"https://api.github.com/repos/cobudget/cobudget-api/issues/153/comments"},"review_comments":{"href":"https://api.github.com/repos/cobudget/cobudget-api/pulls/153/comments"},"review_comment":{"href":"https://api.github.com/repos/cobudget/cobudget-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cobudget/cobudget-api/pulls/153/commits"},"statuses":{"href":"https://api.github.com/repos/cobudget/cobudget-api/statuses/493c847b055608266502838c850d8c5fd8c577a8"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"kiesia"}}