{"action":"created","issue":{"url":"https://api.github.com/repos/zooniverse/Panoptes/issues/2513","repository_url":"https://api.github.com/repos/zooniverse/Panoptes","labels_url":"https://api.github.com/repos/zooniverse/Panoptes/issues/2513/labels{/name}","comments_url":"https://api.github.com/repos/zooniverse/Panoptes/issues/2513/comments","events_url":"https://api.github.com/repos/zooniverse/Panoptes/issues/2513/events","html_url":"https://github.com/zooniverse/Panoptes/pull/2513","id":270603536,"number":2513,"title":"feature flag read recents from read replica","user":{"login":"camallen","id":295329,"avatar_url":"https://avatars2.githubusercontent.com/u/295329?v=4","gravatar_id":"","url":"https://api.github.com/users/camallen","html_url":"https://github.com/camallen","followers_url":"https://api.github.com/users/camallen/followers","following_url":"https://api.github.com/users/camallen/following{/other_user}","gists_url":"https://api.github.com/users/camallen/gists{/gist_id}","starred_url":"https://api.github.com/users/camallen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/camallen/subscriptions","organizations_url":"https://api.github.com/users/camallen/orgs","repos_url":"https://api.github.com/users/camallen/repos","events_url":"https://api.github.com/users/camallen/events{/privacy}","received_events_url":"https://api.github.com/users/camallen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-02T10:31:28Z","updated_at":"2017-11-02T14:46:53Z","closed_at":null,"author_association":"OWNER","pull_request":{"url":"https://api.github.com/repos/zooniverse/Panoptes/pulls/2513","html_url":"https://github.com/zooniverse/Panoptes/pull/2513","diff_url":"https://github.com/zooniverse/Panoptes/pull/2513.diff","patch_url":"https://github.com/zooniverse/Panoptes/pull/2513.patch"},"body":"some of the recents queries can be costly as they invert the order on created at before selecting the first page. push this to the read replica where we can\r\n\r\n# Review checklist\r\n\r\n- [ ] First, the most important one: is this PR small enough that you can actually review it? Feel free to just reject a branch if the changes are hard to review due to the length of the diff.\r\n- [ ] If there are any migrations, will they the previous version of the app work correctly after they've been run (e.g. the don't remove columns still known about by ActiveRecord).\r\n- [ ] If anything changed with regards to the public API, are those changes also documented in the `apiary.apib` file?\r\n- [ ] Are all the changes covered by tests? Think about any possible edge cases that might be left untested.\r\n"},"comment":{"url":"https://api.github.com/repos/zooniverse/Panoptes/issues/comments/341444810","html_url":"https://github.com/zooniverse/Panoptes/pull/2513#issuecomment-341444810","issue_url":"https://api.github.com/repos/zooniverse/Panoptes/issues/2513","id":341444810,"user":{"login":"marten","id":277,"avatar_url":"https://avatars1.githubusercontent.com/u/277?v=4","gravatar_id":"","url":"https://api.github.com/users/marten","html_url":"https://github.com/marten","followers_url":"https://api.github.com/users/marten/followers","following_url":"https://api.github.com/users/marten/following{/other_user}","gists_url":"https://api.github.com/users/marten/gists{/gist_id}","starred_url":"https://api.github.com/users/marten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marten/subscriptions","organizations_url":"https://api.github.com/users/marten/orgs","repos_url":"https://api.github.com/users/marten/repos","events_url":"https://api.github.com/users/marten/events{/privacy}","received_events_url":"https://api.github.com/users/marten/received_events","type":"User","site_admin":false},"created_at":"2017-11-02T14:46:53Z","updated_at":"2017-11-02T14:46:53Z","author_association":"OWNER","body":"LGTM"}}
{"actor":{"display_login":"marten"}}