{"action":"created","issue":{"url":"https://api.github.com/repos/department-of-veterans-affairs/vets-website/issues/3550","repository_url":"https://api.github.com/repos/department-of-veterans-affairs/vets-website","labels_url":"https://api.github.com/repos/department-of-veterans-affairs/vets-website/issues/3550/labels{/name}","comments_url":"https://api.github.com/repos/department-of-veterans-affairs/vets-website/issues/3550/comments","events_url":"https://api.github.com/repos/department-of-veterans-affairs/vets-website/issues/3550/events","html_url":"https://github.com/department-of-veterans-affairs/vets-website/pull/3550","id":185460140,"number":3550,"title":"Updated Rx and SM configs to use environment API URL.","user":{"login":"U-DON","id":1067024,"avatar_url":"https://avatars.githubusercontent.com/u/1067024?v=3","gravatar_id":"","url":"https://api.github.com/users/U-DON","html_url":"https://github.com/U-DON","followers_url":"https://api.github.com/users/U-DON/followers","following_url":"https://api.github.com/users/U-DON/following{/other_user}","gists_url":"https://api.github.com/users/U-DON/gists{/gist_id}","starred_url":"https://api.github.com/users/U-DON/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/U-DON/subscriptions","organizations_url":"https://api.github.com/users/U-DON/orgs","repos_url":"https://api.github.com/users/U-DON/repos","events_url":"https://api.github.com/users/U-DON/events{/privacy}","received_events_url":"https://api.github.com/users/U-DON/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/department-of-veterans-affairs/vets-website/labels/2-in-progress","name":"2-in-progress","color":"5319e7"},{"url":"https://api.github.com/repos/department-of-veterans-affairs/vets-website/labels/messaging","name":"messaging","color":"E374C7"},{"url":"https://api.github.com/repos/department-of-veterans-affairs/vets-website/labels/Rx","name":"Rx","color":"cc0099"}],"state":"open","locked":false,"assignee":{"login":"webinista","id":354277,"avatar_url":"https://avatars.githubusercontent.com/u/354277?v=3","gravatar_id":"","url":"https://api.github.com/users/webinista","html_url":"https://github.com/webinista","followers_url":"https://api.github.com/users/webinista/followers","following_url":"https://api.github.com/users/webinista/following{/other_user}","gists_url":"https://api.github.com/users/webinista/gists{/gist_id}","starred_url":"https://api.github.com/users/webinista/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webinista/subscriptions","organizations_url":"https://api.github.com/users/webinista/orgs","repos_url":"https://api.github.com/users/webinista/repos","events_url":"https://api.github.com/users/webinista/events{/privacy}","received_events_url":"https://api.github.com/users/webinista/received_events","type":"User","site_admin":false},"assignees":[{"login":"webinista","id":354277,"avatar_url":"https://avatars.githubusercontent.com/u/354277?v=3","gravatar_id":"","url":"https://api.github.com/users/webinista","html_url":"https://github.com/webinista","followers_url":"https://api.github.com/users/webinista/followers","following_url":"https://api.github.com/users/webinista/following{/other_user}","gists_url":"https://api.github.com/users/webinista/gists{/gist_id}","starred_url":"https://api.github.com/users/webinista/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webinista/subscriptions","organizations_url":"https://api.github.com/users/webinista/orgs","repos_url":"https://api.github.com/users/webinista/repos","events_url":"https://api.github.com/users/webinista/events{/privacy}","received_events_url":"https://api.github.com/users/webinista/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-10-26T17:34:08Z","updated_at":"2016-10-26T18:28:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/department-of-veterans-affairs/vets-website/pulls/3550","html_url":"https://github.com/department-of-veterans-affairs/vets-website/pull/3550","diff_url":"https://github.com/department-of-veterans-affairs/vets-website/pull/3550.diff","patch_url":"https://github.com/department-of-veterans-affairs/vets-website/pull/3550.patch"},"body":"This should get the API requests going to the right URLs on deploy environments (i.e., staging-api.vets.gov as opposed to staging.vets.gov/api).\r\n\r\nAlso enclosed config defaults in getter functions so they don't run on every import from config.\r\n\r\nNote that the API URL imported from the environments module is going to point to localhost:3000, which vets-api uses when run locally.\r\n\r\nNow that the user token is required for API requests, I'm not sure how the proxy to staging is going to work if you want to continue using it, but maybe it'll work if you do the login on staging first?"},"comment":{"url":"https://api.github.com/repos/department-of-veterans-affairs/vets-website/issues/comments/256436374","html_url":"https://github.com/department-of-veterans-affairs/vets-website/pull/3550#issuecomment-256436374","issue_url":"https://api.github.com/repos/department-of-veterans-affairs/vets-website/issues/3550","id":256436374,"user":{"login":"webinista","id":354277,"avatar_url":"https://avatars.githubusercontent.com/u/354277?v=3","gravatar_id":"","url":"https://api.github.com/users/webinista","html_url":"https://github.com/webinista","followers_url":"https://api.github.com/users/webinista/followers","following_url":"https://api.github.com/users/webinista/following{/other_user}","gists_url":"https://api.github.com/users/webinista/gists{/gist_id}","starred_url":"https://api.github.com/users/webinista/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webinista/subscriptions","organizations_url":"https://api.github.com/users/webinista/orgs","repos_url":"https://api.github.com/users/webinista/repos","events_url":"https://api.github.com/users/webinista/events{/privacy}","received_events_url":"https://api.github.com/users/webinista/received_events","type":"User","site_admin":false},"created_at":"2016-10-26T18:28:22Z","updated_at":"2016-10-26T18:28:22Z","body":"LGTM"}}
{"actor":{"display_login":"webinista"}}