{"action":"created","issue":{"url":"https://api.github.com/repos/DoSomething/phoenix/issues/5465","labels_url":"https://api.github.com/repos/DoSomething/phoenix/issues/5465/labels{/name}","comments_url":"https://api.github.com/repos/DoSomething/phoenix/issues/5465/comments","events_url":"https://api.github.com/repos/DoSomething/phoenix/issues/5465/events","html_url":"https://github.com/DoSomething/phoenix/pull/5465","id":111265707,"number":5465,"title":"fixes user country code, address, and update function","user":{"login":"chloealee","id":9019452,"avatar_url":"https://avatars.githubusercontent.com/u/9019452?v=3","gravatar_id":"","url":"https://api.github.com/users/chloealee","html_url":"https://github.com/chloealee","followers_url":"https://api.github.com/users/chloealee/followers","following_url":"https://api.github.com/users/chloealee/following{/other_user}","gists_url":"https://api.github.com/users/chloealee/gists{/gist_id}","starred_url":"https://api.github.com/users/chloealee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chloealee/subscriptions","organizations_url":"https://api.github.com/users/chloealee/orgs","repos_url":"https://api.github.com/users/chloealee/repos","events_url":"https://api.github.com/users/chloealee/events{/privacy}","received_events_url":"https://api.github.com/users/chloealee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"angaither","id":645205,"avatar_url":"https://avatars.githubusercontent.com/u/645205?v=3","gravatar_id":"","url":"https://api.github.com/users/angaither","html_url":"https://github.com/angaither","followers_url":"https://api.github.com/users/angaither/followers","following_url":"https://api.github.com/users/angaither/following{/other_user}","gists_url":"https://api.github.com/users/angaither/gists{/gist_id}","starred_url":"https://api.github.com/users/angaither/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angaither/subscriptions","organizations_url":"https://api.github.com/users/angaither/orgs","repos_url":"https://api.github.com/users/angaither/repos","events_url":"https://api.github.com/users/angaither/events{/privacy}","received_events_url":"https://api.github.com/users/angaither/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-10-13T20:38:20Z","updated_at":"2015-10-19T20:39:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/DoSomething/phoenix/pulls/5465","html_url":"https://github.com/DoSomething/phoenix/pull/5465","diff_url":"https://github.com/DoSomething/phoenix/pull/5465.diff","patch_url":"https://github.com/DoSomething/phoenix/pull/5465.patch"},"body":"#### What's this PR do?\r\n\r\nFixes to send both country code and address fields from phoenix -> ns.\r\n\r\n#### Where should the reviewer start?\r\n\r\nlib/modules/dosomething/dosomething_northstar/dosomething_northstar.module lines 195-202 grabs correct country value and includes address values. \r\nlib/modules/dosomething/dosomething_northstar/dosomething_northstar.module `dosomething_northstar_update_user` function - updates to hit `/users/:user_id` endpoint. For some reason, `/users` endpoint wasn't saving address properly.\r\n\r\n#### How should this be manually tested?\r\n\r\nCreate new user on ds.org. Hit ns endpoint GET /users/email/<email> and make sure country code is returned. https://github.com/DoSomething/northstar/wiki/Spec#retrieving-a-user\r\n\r\nUpdate user profile and add address. Hit the same endpoint above and make sure address is returned.\r\n\r\n#### What are the relevant tickets?\r\n\r\nFixes #5263"},"comment":{"url":"https://api.github.com/repos/DoSomething/phoenix/issues/comments/149340511","html_url":"https://github.com/DoSomething/phoenix/pull/5465#issuecomment-149340511","issue_url":"https://api.github.com/repos/DoSomething/phoenix/issues/5465","id":149340511,"user":{"login":"angaither","id":645205,"avatar_url":"https://avatars.githubusercontent.com/u/645205?v=3","gravatar_id":"","url":"https://api.github.com/users/angaither","html_url":"https://github.com/angaither","followers_url":"https://api.github.com/users/angaither/followers","following_url":"https://api.github.com/users/angaither/following{/other_user}","gists_url":"https://api.github.com/users/angaither/gists{/gist_id}","starred_url":"https://api.github.com/users/angaither/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angaither/subscriptions","organizations_url":"https://api.github.com/users/angaither/orgs","repos_url":"https://api.github.com/users/angaither/repos","events_url":"https://api.github.com/users/angaither/events{/privacy}","received_events_url":"https://api.github.com/users/angaither/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T20:39:20Z","updated_at":"2015-10-19T20:39:20Z","body":"minor note, but otherwise :ok: :+1: "}}