{"action":"created","issue":{"url":"https://api.github.com/repos/DoSomething/phoenix/issues/5270","labels_url":"https://api.github.com/repos/DoSomething/phoenix/issues/5270/labels{/name}","comments_url":"https://api.github.com/repos/DoSomething/phoenix/issues/5270/comments","events_url":"https://api.github.com/repos/DoSomething/phoenix/issues/5270/events","html_url":"https://github.com/DoSomething/phoenix/pull/5270","id":108715760,"number":5270,"title":"Issue5212 mail chimp global listids","user":{"login":"DeeZone","id":2119264,"avatar_url":"https://avatars.githubusercontent.com/u/2119264?v=3","gravatar_id":"","url":"https://api.github.com/users/DeeZone","html_url":"https://github.com/DeeZone","followers_url":"https://api.github.com/users/DeeZone/followers","following_url":"https://api.github.com/users/DeeZone/following{/other_user}","gists_url":"https://api.github.com/users/DeeZone/gists{/gist_id}","starred_url":"https://api.github.com/users/DeeZone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeeZone/subscriptions","organizations_url":"https://api.github.com/users/DeeZone/orgs","repos_url":"https://api.github.com/users/DeeZone/repos","events_url":"https://api.github.com/users/DeeZone/events{/privacy}","received_events_url":"https://api.github.com/users/DeeZone/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-28T18:09:55Z","updated_at":"2015-09-28T18:13:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/DoSomething/phoenix/pulls/5270","html_url":"https://github.com/DoSomething/phoenix/pull/5270","diff_url":"https://github.com/DoSomething/phoenix/pull/5270.diff","patch_url":"https://github.com/DoSomething/phoenix/pull/5270.patch"},"body":"#### What's this PR do?\r\nAdds `user_language` and `user_country` to payload sent to Message Broker with password_reset requests.\r\n\r\n#### Where should the reviewer start?\r\nRequest a user password reset from `user/password`.\r\n\r\n#### How should this be manually tested?\r\nReview request payload sent to `message_broker_producer.moduel` module from `dosomething_mbp.module`. The payload should contain the `user_language` and `user_country` settings.\r\n\r\n**Example payload**:\r\n```\r\nArray\r\n(\r\n    [activity] => user_password\r\n    [email] => dlee+vag01@dosomething.org\r\n    [uid] => 1705348\r\n    [user_language] => en-global\r\n    [user_country] => US\r\n    [merge_vars] => Array\r\n        (\r\n            [MEMBER_COUNT] => 3.5 million\r\n            [FNAME] => Test Dee\r\n            [RESET_LINK] => http://dev.dosomething.org:8888/user/reset/1705348/1443462436/MtbEhWJ6lfvqgxoANeTebivD-fBzuu78wmUeOr27YPk\r\n        )\r\n\r\n    [email_template] => mb-user-password-US\r\n    [email_tags] => Array\r\n        (\r\n            [0] => drupal_user_password\r\n        )\r\n\r\n)\r\n```\r\n\r\n#### Any background context you want to provide?\r\nThe `user_language` is used to define what `email_template` name to send in the request. The addition of the `-US` value at the end of the template is new and will change for the different supported countries.\r\n\r\n#### What are the relevant tickets?\r\nFixes #4962\r\nFixes #5212\r\n\r\n**Note**:\r\n- This also addresses the issue of NULL values being returned in `dosomething_global_convert_language_to_country()` calls as pointed out in PR #5266 by @deadlybutter \r\n\r\nFor what it's worth, an invalid or unsupported `country_code` is already trapped here: https://github.com/DoSomething/mbc-transactional-email/blob/master/src/MBC_TransactionalEmail_Consumer.php#L245"},"comment":{"url":"https://api.github.com/repos/DoSomething/phoenix/issues/comments/143831517","html_url":"https://github.com/DoSomething/phoenix/pull/5270#issuecomment-143831517","issue_url":"https://api.github.com/repos/DoSomething/phoenix/issues/5270","id":143831517,"user":{"login":"blisteringherb","id":28132,"avatar_url":"https://avatars.githubusercontent.com/u/28132?v=3","gravatar_id":"","url":"https://api.github.com/users/blisteringherb","html_url":"https://github.com/blisteringherb","followers_url":"https://api.github.com/users/blisteringherb/followers","following_url":"https://api.github.com/users/blisteringherb/following{/other_user}","gists_url":"https://api.github.com/users/blisteringherb/gists{/gist_id}","starred_url":"https://api.github.com/users/blisteringherb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blisteringherb/subscriptions","organizations_url":"https://api.github.com/users/blisteringherb/orgs","repos_url":"https://api.github.com/users/blisteringherb/repos","events_url":"https://api.github.com/users/blisteringherb/events{/privacy}","received_events_url":"https://api.github.com/users/blisteringherb/received_events","type":"User","site_admin":false},"created_at":"2015-09-28T18:13:02Z","updated_at":"2015-09-28T18:13:02Z","body":":+1: "}}