{"action":"created","issue":{"url":"https://api.github.com/repos/masschallenge/impact-api/issues/99","repository_url":"https://api.github.com/repos/masschallenge/impact-api","labels_url":"https://api.github.com/repos/masschallenge/impact-api/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/masschallenge/impact-api/issues/99/comments","events_url":"https://api.github.com/repos/masschallenge/impact-api/issues/99/events","html_url":"https://github.com/masschallenge/impact-api/pull/99","id":292926820,"number":99,"title":"[AC-5266] Impact API should read from a read replica in production.","user":{"login":"shanbady","id":196425,"avatar_url":"https://avatars1.githubusercontent.com/u/196425?v=4","gravatar_id":"","url":"https://api.github.com/users/shanbady","html_url":"https://github.com/shanbady","followers_url":"https://api.github.com/users/shanbady/followers","following_url":"https://api.github.com/users/shanbady/following{/other_user}","gists_url":"https://api.github.com/users/shanbady/gists{/gist_id}","starred_url":"https://api.github.com/users/shanbady/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shanbady/subscriptions","organizations_url":"https://api.github.com/users/shanbady/orgs","repos_url":"https://api.github.com/users/shanbady/repos","events_url":"https://api.github.com/users/shanbady/events{/privacy}","received_events_url":"https://api.github.com/users/shanbady/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"yotammanor","id":5147457,"avatar_url":"https://avatars2.githubusercontent.com/u/5147457?v=4","gravatar_id":"","url":"https://api.github.com/users/yotammanor","html_url":"https://github.com/yotammanor","followers_url":"https://api.github.com/users/yotammanor/followers","following_url":"https://api.github.com/users/yotammanor/following{/other_user}","gists_url":"https://api.github.com/users/yotammanor/gists{/gist_id}","starred_url":"https://api.github.com/users/yotammanor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yotammanor/subscriptions","organizations_url":"https://api.github.com/users/yotammanor/orgs","repos_url":"https://api.github.com/users/yotammanor/repos","events_url":"https://api.github.com/users/yotammanor/events{/privacy}","received_events_url":"https://api.github.com/users/yotammanor/received_events","type":"User","site_admin":false},"assignees":[{"login":"yotammanor","id":5147457,"avatar_url":"https://avatars2.githubusercontent.com/u/5147457?v=4","gravatar_id":"","url":"https://api.github.com/users/yotammanor","html_url":"https://github.com/yotammanor","followers_url":"https://api.github.com/users/yotammanor/followers","following_url":"https://api.github.com/users/yotammanor/following{/other_user}","gists_url":"https://api.github.com/users/yotammanor/gists{/gist_id}","starred_url":"https://api.github.com/users/yotammanor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yotammanor/subscriptions","organizations_url":"https://api.github.com/users/yotammanor/orgs","repos_url":"https://api.github.com/users/yotammanor/repos","events_url":"https://api.github.com/users/yotammanor/events{/privacy}","received_events_url":"https://api.github.com/users/yotammanor/received_events","type":"User","site_admin":false},{"login":"mc-nathan","id":9534003,"avatar_url":"https://avatars1.githubusercontent.com/u/9534003?v=4","gravatar_id":"","url":"https://api.github.com/users/mc-nathan","html_url":"https://github.com/mc-nathan","followers_url":"https://api.github.com/users/mc-nathan/followers","following_url":"https://api.github.com/users/mc-nathan/following{/other_user}","gists_url":"https://api.github.com/users/mc-nathan/gists{/gist_id}","starred_url":"https://api.github.com/users/mc-nathan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mc-nathan/subscriptions","organizations_url":"https://api.github.com/users/mc-nathan/orgs","repos_url":"https://api.github.com/users/mc-nathan/repos","events_url":"https://api.github.com/users/mc-nathan/events{/privacy}","received_events_url":"https://api.github.com/users/mc-nathan/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-01-30T20:30:45Z","updated_at":"2018-02-01T18:41:56Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/masschallenge/impact-api/pulls/99","html_url":"https://github.com/masschallenge/impact-api/pull/99","diff_url":"https://github.com/masschallenge/impact-api/pull/99.diff","patch_url":"https://github.com/masschallenge/impact-api/pull/99.patch"},"body":"The changes in this branch allow and environment to specify a 'READ_REPLICA_DATABASE_URL' as an environment variable which enables the 'read-from-replica' feature (leveraging the [django-multidb-router](https://github.com/jbalogh/django-multidb-router) library. \r\n\r\nTo try this out locally you can specify a replica database in the .dev.env file as such ```READ_REPLICA_DATABASE_URL=mysql://root:root@mysql/mc_dev_replica``` and the re-run ```make clean``` and ```make dev```. \r\n\r\nI currently have this branch deployed and reading from the salesforce testing database master and replica here so folks can poke at a working setup (and to make this review a bit easier): http://174.129.53.100/\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/masschallenge/impact-api/issues/comments/362361943","html_url":"https://github.com/masschallenge/impact-api/pull/99#issuecomment-362361943","issue_url":"https://api.github.com/repos/masschallenge/impact-api/issues/99","id":362361943,"user":{"login":"shanbady","id":196425,"avatar_url":"https://avatars1.githubusercontent.com/u/196425?v=4","gravatar_id":"","url":"https://api.github.com/users/shanbady","html_url":"https://github.com/shanbady","followers_url":"https://api.github.com/users/shanbady/followers","following_url":"https://api.github.com/users/shanbady/following{/other_user}","gists_url":"https://api.github.com/users/shanbady/gists{/gist_id}","starred_url":"https://api.github.com/users/shanbady/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shanbady/subscriptions","organizations_url":"https://api.github.com/users/shanbady/orgs","repos_url":"https://api.github.com/users/shanbady/repos","events_url":"https://api.github.com/users/shanbady/events{/privacy}","received_events_url":"https://api.github.com/users/shanbady/received_events","type":"User","site_admin":false},"created_at":"2018-02-01T18:41:56Z","updated_at":"2018-02-01T18:41:56Z","author_association":"CONTRIBUTOR","body":"@yotammanor the \"test\" cluster has it set in the task definition: https://console.aws.amazon.com/ecs/home?region=us-east-1#/taskDefinitions/ecscompose-impact-api/1049"}}
{"actor":{"display_login":"shanbady"}}