{"action":"created","comment":{"url":"https://api.github.com/repos/guardian/identity-admin-api/pulls/comments/242156381","pull_request_review_id":185600821,"id":242156381,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MjE1NjM4MQ==","diff_hunk":"@@ -111,49 +111,14 @@ object SalesforceDetails {\n   implicit val format = Json.format[SalesforceDetails]\n }\n \n-case class NewslettersSubscription(list: List[String])\n+case class NewslettersSubscription(\n+  globalSubscriptionStatus: String,","path":"app/models/client/User.scala","position":6,"original_position":6,"commit_id":"3abdff58c8672dfc594139cf3a4cb385c611a706","original_commit_id":"3abdff58c8672dfc594139cf3a4cb385c611a706","user":{"login":"QuarpT","id":29203769,"node_id":"MDQ6VXNlcjI5MjAzNzY5","avatar_url":"https://avatars2.githubusercontent.com/u/29203769?v=4","gravatar_id":"","url":"https://api.github.com/users/QuarpT","html_url":"https://github.com/QuarpT","followers_url":"https://api.github.com/users/QuarpT/followers","following_url":"https://api.github.com/users/QuarpT/following{/other_user}","gists_url":"https://api.github.com/users/QuarpT/gists{/gist_id}","starred_url":"https://api.github.com/users/QuarpT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuarpT/subscriptions","organizations_url":"https://api.github.com/users/QuarpT/orgs","repos_url":"https://api.github.com/users/QuarpT/repos","events_url":"https://api.github.com/users/QuarpT/events{/privacy}","received_events_url":"https://api.github.com/users/QuarpT/received_events","type":"User","site_admin":false},"body":"it's the string representation from Braze. We don't really need to parse it since we just want to read the text.","created_at":"2018-12-17T13:59:31Z","updated_at":"2018-12-17T13:59:32Z","html_url":"https://github.com/guardian/identity-admin-api/pull/229#discussion_r242156381","pull_request_url":"https://api.github.com/repos/guardian/identity-admin-api/pulls/229","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/guardian/identity-admin-api/pulls/comments/242156381"},"html":{"href":"https://github.com/guardian/identity-admin-api/pull/229#discussion_r242156381"},"pull_request":{"href":"https://api.github.com/repos/guardian/identity-admin-api/pulls/229"}},"in_reply_to_id":242116084},"pull_request":{"url":"https://api.github.com/repos/guardian/identity-admin-api/pulls/229","id":238773662,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM4NzczNjYy","html_url":"https://github.com/guardian/identity-admin-api/pull/229","diff_url":"https://github.com/guardian/identity-admin-api/pull/229.diff","patch_url":"https://github.com/guardian/identity-admin-api/pull/229.patch","issue_url":"https://api.github.com/repos/guardian/identity-admin-api/issues/229","number":229,"state":"open","locked":false,"title":"Remove ET from identity admin api","user":{"login":"QuarpT","id":29203769,"node_id":"MDQ6VXNlcjI5MjAzNzY5","avatar_url":"https://avatars2.githubusercontent.com/u/29203769?v=4","gravatar_id":"","url":"https://api.github.com/users/QuarpT","html_url":"https://github.com/QuarpT","followers_url":"https://api.github.com/users/QuarpT/followers","following_url":"https://api.github.com/users/QuarpT/following{/other_user}","gists_url":"https://api.github.com/users/QuarpT/gists{/gist_id}","starred_url":"https://api.github.com/users/QuarpT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuarpT/subscriptions","organizations_url":"https://api.github.com/users/QuarpT/orgs","repos_url":"https://api.github.com/users/QuarpT/repos","events_url":"https://api.github.com/users/QuarpT/events{/privacy}","received_events_url":"https://api.github.com/users/QuarpT/received_events","type":"User","site_admin":false},"body":"We now use endpoints on identity-api for getting the subscription status in Braze and unsubscribing\r\n\r\nI've also removed subscriptionDetails, exactTargetSubscriber and contributions from GuardianUser since these details should be loaded via AJAX\r\n\r\nidentity api PR:\r\n\r\nSee \r\nhttps://github.com/guardian/identity/pull/1494\r\nhttps://github.com/guardian/identity-admin/pull/248","created_at":"2018-12-14T16:23:54Z","updated_at":"2018-12-17T13:59:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ce60e9b665b2e5cb4a6a90f3e27fc6238b933ff2","assignee":null,"assignees":[],"requested_reviewers":[{"login":"mario-galic","id":13835317,"node_id":"MDQ6VXNlcjEzODM1MzE3","avatar_url":"https://avatars3.githubusercontent.com/u/13835317?v=4","gravatar_id":"","url":"https://api.github.com/users/mario-galic","html_url":"https://github.com/mario-galic","followers_url":"https://api.github.com/users/mario-galic/followers","following_url":"https://api.github.com/users/mario-galic/following{/other_user}","gists_url":"https://api.github.com/users/mario-galic/gists{/gist_id}","starred_url":"https://api.github.com/users/mario-galic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mario-galic/subscriptions","organizations_url":"https://api.github.com/users/mario-galic/orgs","repos_url":"https://api.github.com/users/mario-galic/repos","events_url":"https://api.github.com/users/mario-galic/events{/privacy}","received_events_url":"https://api.github.com/users/mario-galic/received_events","type":"User","site_admin":false},{"login":"Calum-Campbell","id":14179210,"node_id":"MDQ6VXNlcjE0MTc5MjEw","avatar_url":"https://avatars1.githubusercontent.com/u/14179210?v=4","gravatar_id":"","url":"https://api.github.com/users/Calum-Campbell","html_url":"https://github.com/Calum-Campbell","followers_url":"https://api.github.com/users/Calum-Campbell/followers","following_url":"https://api.github.com/users/Calum-Campbell/following{/other_user}","gists_url":"https://api.github.com/users/Calum-Campbell/gists{/gist_id}","starred_url":"https://api.github.com/users/Calum-Campbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Calum-Campbell/subscriptions","organizations_url":"https://api.github.com/users/Calum-Campbell/orgs","repos_url":"https://api.github.com/users/Calum-Campbell/repos","events_url":"https://api.github.com/users/Calum-Campbell/events{/privacy}","received_events_url":"https://api.github.com/users/Calum-Campbell/received_events","type":"User","site_admin":false},{"login":"laurenemms","id":42539745,"node_id":"MDQ6VXNlcjQyNTM5NzQ1","avatar_url":"https://avatars0.githubusercontent.com/u/42539745?v=4","gravatar_id":"","url":"https://api.github.com/users/laurenemms","html_url":"https://github.com/laurenemms","followers_url":"https://api.github.com/users/laurenemms/followers","following_url":"https://api.github.com/users/laurenemms/following{/other_user}","gists_url":"https://api.github.com/users/laurenemms/gists{/gist_id}","starred_url":"https://api.github.com/users/laurenemms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laurenemms/subscriptions","organizations_url":"https://api.github.com/users/laurenemms/orgs","repos_url":"https://api.github.com/users/laurenemms/repos","events_url":"https://api.github.com/users/laurenemms/events{/privacy}","received_events_url":"https://api.github.com/users/laurenemms/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/guardian/identity-admin-api/pulls/229/commits","review_comments_url":"https://api.github.com/repos/guardian/identity-admin-api/pulls/229/comments","review_comment_url":"https://api.github.com/repos/guardian/identity-admin-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/guardian/identity-admin-api/issues/229/comments","statuses_url":"https://api.github.com/repos/guardian/identity-admin-api/statuses/3abdff58c8672dfc594139cf3a4cb385c611a706","head":{"label":"guardian:remove-et","ref":"remove-et","sha":"3abdff58c8672dfc594139cf3a4cb385c611a706","user":{"login":"guardian","id":164318,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NDMxOA==","avatar_url":"https://avatars0.githubusercontent.com/u/164318?v=4","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"repo":{"id":43952766,"node_id":"MDEwOlJlcG9zaXRvcnk0Mzk1Mjc2Ng==","name":"identity-admin-api","full_name":"guardian/identity-admin-api","private":false,"owner":{"login":"guardian","id":164318,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NDMxOA==","avatar_url":"https://avatars0.githubusercontent.com/u/164318?v=4","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/guardian/identity-admin-api","description":null,"fork":false,"url":"https://api.github.com/repos/guardian/identity-admin-api","forks_url":"https://api.github.com/repos/guardian/identity-admin-api/forks","keys_url":"https://api.github.com/repos/guardian/identity-admin-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guardian/identity-admin-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guardian/identity-admin-api/teams","hooks_url":"https://api.github.com/repos/guardian/identity-admin-api/hooks","issue_events_url":"https://api.github.com/repos/guardian/identity-admin-api/issues/events{/number}","events_url":"https://api.github.com/repos/guardian/identity-admin-api/events","assignees_url":"https://api.github.com/repos/guardian/identity-admin-api/assignees{/user}","branches_url":"https://api.github.com/repos/guardian/identity-admin-api/branches{/branch}","tags_url":"https://api.github.com/repos/guardian/identity-admin-api/tags","blobs_url":"https://api.github.com/repos/guardian/identity-admin-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guardian/identity-admin-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guardian/identity-admin-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/guardian/identity-admin-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guardian/identity-admin-api/statuses/{sha}","languages_url":"https://api.github.com/repos/guardian/identity-admin-api/languages","stargazers_url":"https://api.github.com/repos/guardian/identity-admin-api/stargazers","contributors_url":"https://api.github.com/repos/guardian/identity-admin-api/contributors","subscribers_url":"https://api.github.com/repos/guardian/identity-admin-api/subscribers","subscription_url":"https://api.github.com/repos/guardian/identity-admin-api/subscription","commits_url":"https://api.github.com/repos/guardian/identity-admin-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/guardian/identity-admin-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/guardian/identity-admin-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/guardian/identity-admin-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/guardian/identity-admin-api/contents/{+path}","compare_url":"https://api.github.com/repos/guardian/identity-admin-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guardian/identity-admin-api/merges","archive_url":"https://api.github.com/repos/guardian/identity-admin-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guardian/identity-admin-api/downloads","issues_url":"https://api.github.com/repos/guardian/identity-admin-api/issues{/number}","pulls_url":"https://api.github.com/repos/guardian/identity-admin-api/pulls{/number}","milestones_url":"https://api.github.com/repos/guardian/identity-admin-api/milestones{/number}","notifications_url":"https://api.github.com/repos/guardian/identity-admin-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guardian/identity-admin-api/labels{/name}","releases_url":"https://api.github.com/repos/guardian/identity-admin-api/releases{/id}","deployments_url":"https://api.github.com/repos/guardian/identity-admin-api/deployments","created_at":"2015-10-09T11:59:50Z","updated_at":"2018-12-13T17:03:41Z","pushed_at":"2018-12-14T16:31:41Z","git_url":"git://github.com/guardian/identity-admin-api.git","ssh_url":"git@github.com:guardian/identity-admin-api.git","clone_url":"https://github.com/guardian/identity-admin-api.git","svn_url":"https://github.com/guardian/identity-admin-api","homepage":null,"size":662,"stargazers_count":3,"watchers_count":3,"language":"Scala","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":3,"open_issues":2,"watchers":3,"default_branch":"master"}},"base":{"label":"guardian:master","ref":"master","sha":"5c4ea1bfa7cca3e3843dce712fd33d404d4ebd30","user":{"login":"guardian","id":164318,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NDMxOA==","avatar_url":"https://avatars0.githubusercontent.com/u/164318?v=4","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"repo":{"id":43952766,"node_id":"MDEwOlJlcG9zaXRvcnk0Mzk1Mjc2Ng==","name":"identity-admin-api","full_name":"guardian/identity-admin-api","private":false,"owner":{"login":"guardian","id":164318,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NDMxOA==","avatar_url":"https://avatars0.githubusercontent.com/u/164318?v=4","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/guardian/identity-admin-api","description":null,"fork":false,"url":"https://api.github.com/repos/guardian/identity-admin-api","forks_url":"https://api.github.com/repos/guardian/identity-admin-api/forks","keys_url":"https://api.github.com/repos/guardian/identity-admin-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guardian/identity-admin-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guardian/identity-admin-api/teams","hooks_url":"https://api.github.com/repos/guardian/identity-admin-api/hooks","issue_events_url":"https://api.github.com/repos/guardian/identity-admin-api/issues/events{/number}","events_url":"https://api.github.com/repos/guardian/identity-admin-api/events","assignees_url":"https://api.github.com/repos/guardian/identity-admin-api/assignees{/user}","branches_url":"https://api.github.com/repos/guardian/identity-admin-api/branches{/branch}","tags_url":"https://api.github.com/repos/guardian/identity-admin-api/tags","blobs_url":"https://api.github.com/repos/guardian/identity-admin-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guardian/identity-admin-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guardian/identity-admin-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/guardian/identity-admin-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guardian/identity-admin-api/statuses/{sha}","languages_url":"https://api.github.com/repos/guardian/identity-admin-api/languages","stargazers_url":"https://api.github.com/repos/guardian/identity-admin-api/stargazers","contributors_url":"https://api.github.com/repos/guardian/identity-admin-api/contributors","subscribers_url":"https://api.github.com/repos/guardian/identity-admin-api/subscribers","subscription_url":"https://api.github.com/repos/guardian/identity-admin-api/subscription","commits_url":"https://api.github.com/repos/guardian/identity-admin-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/guardian/identity-admin-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/guardian/identity-admin-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/guardian/identity-admin-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/guardian/identity-admin-api/contents/{+path}","compare_url":"https://api.github.com/repos/guardian/identity-admin-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guardian/identity-admin-api/merges","archive_url":"https://api.github.com/repos/guardian/identity-admin-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guardian/identity-admin-api/downloads","issues_url":"https://api.github.com/repos/guardian/identity-admin-api/issues{/number}","pulls_url":"https://api.github.com/repos/guardian/identity-admin-api/pulls{/number}","milestones_url":"https://api.github.com/repos/guardian/identity-admin-api/milestones{/number}","notifications_url":"https://api.github.com/repos/guardian/identity-admin-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guardian/identity-admin-api/labels{/name}","releases_url":"https://api.github.com/repos/guardian/identity-admin-api/releases{/id}","deployments_url":"https://api.github.com/repos/guardian/identity-admin-api/deployments","created_at":"2015-10-09T11:59:50Z","updated_at":"2018-12-13T17:03:41Z","pushed_at":"2018-12-14T16:31:41Z","git_url":"git://github.com/guardian/identity-admin-api.git","ssh_url":"git@github.com:guardian/identity-admin-api.git","clone_url":"https://github.com/guardian/identity-admin-api.git","svn_url":"https://github.com/guardian/identity-admin-api","homepage":null,"size":662,"stargazers_count":3,"watchers_count":3,"language":"Scala","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":3,"open_issues":2,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/guardian/identity-admin-api/pulls/229"},"html":{"href":"https://github.com/guardian/identity-admin-api/pull/229"},"issue":{"href":"https://api.github.com/repos/guardian/identity-admin-api/issues/229"},"comments":{"href":"https://api.github.com/repos/guardian/identity-admin-api/issues/229/comments"},"review_comments":{"href":"https://api.github.com/repos/guardian/identity-admin-api/pulls/229/comments"},"review_comment":{"href":"https://api.github.com/repos/guardian/identity-admin-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/guardian/identity-admin-api/pulls/229/commits"},"statuses":{"href":"https://api.github.com/repos/guardian/identity-admin-api/statuses/3abdff58c8672dfc594139cf3a4cb385c611a706"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"QuarpT"}}