{"action":"created","issue":{"url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/issues/141","repository_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot","labels_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/issues/141/labels{/name}","comments_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/issues/141/comments","events_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/issues/141/events","html_url":"https://github.com/boulder-food-rescue/food-rescue-robot/issues/141","id":261424718,"number":141,"title":"Replace Volunteer.all with proper filtering at the Database level","user":{"login":"rylanb","id":435953,"avatar_url":"https://avatars0.githubusercontent.com/u/435953?v=4","gravatar_id":"","url":"https://api.github.com/users/rylanb","html_url":"https://github.com/rylanb","followers_url":"https://api.github.com/users/rylanb/followers","following_url":"https://api.github.com/users/rylanb/following{/other_user}","gists_url":"https://api.github.com/users/rylanb/gists{/gist_id}","starred_url":"https://api.github.com/users/rylanb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rylanb/subscriptions","organizations_url":"https://api.github.com/users/rylanb/orgs","repos_url":"https://api.github.com/users/rylanb/repos","events_url":"https://api.github.com/users/rylanb/events{/privacy}","received_events_url":"https://api.github.com/users/rylanb/received_events","type":"User","site_admin":false},"labels":[{"id":566920737,"url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/labels/cleanup","name":"cleanup","color":"c2e0c6","default":false},{"id":34778398,"url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":877563314,"url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/labels/in-progress","name":"in-progress","color":"dfff89","default":false},{"id":566927955,"url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/labels/refactor","name":"refactor","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":{"login":"mooreds","id":91825,"avatar_url":"https://avatars3.githubusercontent.com/u/91825?v=4","gravatar_id":"","url":"https://api.github.com/users/mooreds","html_url":"https://github.com/mooreds","followers_url":"https://api.github.com/users/mooreds/followers","following_url":"https://api.github.com/users/mooreds/following{/other_user}","gists_url":"https://api.github.com/users/mooreds/gists{/gist_id}","starred_url":"https://api.github.com/users/mooreds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mooreds/subscriptions","organizations_url":"https://api.github.com/users/mooreds/orgs","repos_url":"https://api.github.com/users/mooreds/repos","events_url":"https://api.github.com/users/mooreds/events{/privacy}","received_events_url":"https://api.github.com/users/mooreds/received_events","type":"User","site_admin":false},"assignees":[{"login":"mooreds","id":91825,"avatar_url":"https://avatars3.githubusercontent.com/u/91825?v=4","gravatar_id":"","url":"https://api.github.com/users/mooreds","html_url":"https://github.com/mooreds","followers_url":"https://api.github.com/users/mooreds/followers","following_url":"https://api.github.com/users/mooreds/following{/other_user}","gists_url":"https://api.github.com/users/mooreds/gists{/gist_id}","starred_url":"https://api.github.com/users/mooreds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mooreds/subscriptions","organizations_url":"https://api.github.com/users/mooreds/orgs","repos_url":"https://api.github.com/users/mooreds/repos","events_url":"https://api.github.com/users/mooreds/events{/privacy}","received_events_url":"https://api.github.com/users/mooreds/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2017-09-28T18:56:12Z","updated_at":"2018-03-23T19:44:55Z","closed_at":null,"author_association":"COLLABORATOR","body":"## Expected Behavior\r\n`Volunteer.all` is called all over the application and then iterated on in memory. We currently have 2342 volunteers across 40 regions. \r\n\r\n## Actual Behavior\r\nThese calls can all be scoped down to the region being worked on and/or active volunteers"},"comment":{"url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/issues/comments/375778387","html_url":"https://github.com/boulder-food-rescue/food-rescue-robot/issues/141#issuecomment-375778387","issue_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/issues/141","id":375778387,"user":{"login":"mooreds","id":91825,"avatar_url":"https://avatars3.githubusercontent.com/u/91825?v=4","gravatar_id":"","url":"https://api.github.com/users/mooreds","html_url":"https://github.com/mooreds","followers_url":"https://api.github.com/users/mooreds/followers","following_url":"https://api.github.com/users/mooreds/following{/other_user}","gists_url":"https://api.github.com/users/mooreds/gists{/gist_id}","starred_url":"https://api.github.com/users/mooreds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mooreds/subscriptions","organizations_url":"https://api.github.com/users/mooreds/orgs","repos_url":"https://api.github.com/users/mooreds/repos","events_url":"https://api.github.com/users/mooreds/events{/privacy}","received_events_url":"https://api.github.com/users/mooreds/received_events","type":"User","site_admin":false},"created_at":"2018-03-23T19:44:55Z","updated_at":"2018-03-23T19:44:55Z","author_association":"CONTRIBUTOR","body":"application_helper.rb has a method that isn't being used, so I removed it."}}
{"actor":{"display_login":"mooreds"}}