{"action":"opened","issue":{"url":"https://api.github.com/repos/18F/openFEC/issues/1084","labels_url":"https://api.github.com/repos/18F/openFEC/issues/1084/labels{/name}","comments_url":"https://api.github.com/repos/18F/openFEC/issues/1084/comments","events_url":"https://api.github.com/repos/18F/openFEC/issues/1084/events","html_url":"https://github.com/18F/openFEC/issues/1084","id":97164565,"number":1084,"title":"Expose aggregates by candidate","user":{"login":"jmcarp","id":1633460,"avatar_url":"https://avatars.githubusercontent.com/u/1633460?v=3","gravatar_id":"","url":"https://api.github.com/users/jmcarp","html_url":"https://github.com/jmcarp","followers_url":"https://api.github.com/users/jmcarp/followers","following_url":"https://api.github.com/users/jmcarp/following{/other_user}","gists_url":"https://api.github.com/users/jmcarp/gists{/gist_id}","starred_url":"https://api.github.com/users/jmcarp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmcarp/subscriptions","organizations_url":"https://api.github.com/users/jmcarp/orgs","repos_url":"https://api.github.com/users/jmcarp/repos","events_url":"https://api.github.com/users/jmcarp/events{/privacy}","received_events_url":"https://api.github.com/users/jmcarp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"jmcarp","id":1633460,"avatar_url":"https://avatars.githubusercontent.com/u/1633460?v=3","gravatar_id":"","url":"https://api.github.com/users/jmcarp","html_url":"https://github.com/jmcarp","followers_url":"https://api.github.com/users/jmcarp/followers","following_url":"https://api.github.com/users/jmcarp/following{/other_user}","gists_url":"https://api.github.com/users/jmcarp/gists{/gist_id}","starred_url":"https://api.github.com/users/jmcarp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmcarp/subscriptions","organizations_url":"https://api.github.com/users/jmcarp/orgs","repos_url":"https://api.github.com/users/jmcarp/repos","events_url":"https://api.github.com/users/jmcarp/events{/privacy}","received_events_url":"https://api.github.com/users/jmcarp/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-07-24T22:57:58Z","updated_at":"2015-07-24T22:57:58Z","closed_at":null,"body":"In support of https://github.com/18f/openfec-web-app/issues/297, the API needs to provide per-candidate aggregates by contribution size, contributor location, etc. We currently have aggregates by committee, but not by candidate. It looks like we'll want to add aggregates like this:\r\n\r\n`/schedules/schedule_a/by_size/by_candidate?cycle=2012&candidate_id=H001&candidate_id=H002...`\r\n\r\nThese aggregates would sum over all principal and authorized committees associated with each candidate for the requested cycle.\r\n\r\nSound good to you @LindsayYoung @noahmanger?"}}