{"action":"closed","number":179,"pull_request":{"url":"https://api.github.com/repos/ONSdigital/response-operations-ui/pulls/179","id":195742839,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1NzQyODM5","html_url":"https://github.com/ONSdigital/response-operations-ui/pull/179","diff_url":"https://github.com/ONSdigital/response-operations-ui/pull/179.diff","patch_url":"https://github.com/ONSdigital/response-operations-ui/pull/179.patch","issue_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/issues/179","number":179,"state":"closed","locked":false,"title":"[TBL] Call party service direct to change enrolment status","user":{"login":"jcox-dev","id":28348457,"node_id":"MDQ6VXNlcjI4MzQ4NDU3","avatar_url":"https://avatars0.githubusercontent.com/u/28348457?v=4","gravatar_id":"","url":"https://api.github.com/users/jcox-dev","html_url":"https://github.com/jcox-dev","followers_url":"https://api.github.com/users/jcox-dev/followers","following_url":"https://api.github.com/users/jcox-dev/following{/other_user}","gists_url":"https://api.github.com/users/jcox-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/jcox-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcox-dev/subscriptions","organizations_url":"https://api.github.com/users/jcox-dev/orgs","repos_url":"https://api.github.com/users/jcox-dev/repos","events_url":"https://api.github.com/users/jcox-dev/events{/privacy}","received_events_url":"https://api.github.com/users/jcox-dev/received_events","type":"User","site_admin":false},"body":"# Motivation and Context\r\n<!--- Why is this change required? What problem does it solve? -->\r\nRemoves the call to backstage for changing enrolment status.\r\n\r\n# What has changed\r\n<!--- What code changes has been made -->\r\n<!--- Has there been any refactoring -->\r\n<!--- What tests have been written -->\r\nChanges the `change_enrolment_status` method in reporting_units_controllers.py to hit the party service directly.\r\n\r\n# How to test?\r\n<!--- Describe in detail how you tested your changes. -->\r\n<!--- Include details of your testing environment, and the tests you ran to see how your change affects other areas of the code, etc. -->\r\n<!--- Are there any automated tests that mean changes don't need to be manually changed -->\r\nRun the unit tests, make sure they pass.\r\nTail the logs for backstage, party service. Hit the `/reporting-units/<ru_ref>/change-enrolment-status` page and POST. Make sure backstage doesn't get the call, but party service does.","created_at":"2018-06-19T08:07:16Z","updated_at":"2018-06-21T09:50:25Z","closed_at":"2018-06-21T09:50:25Z","merged_at":"2018-06-21T09:50:25Z","merge_commit_sha":"c84caf5b1c231e656c5b763bda492ed2cbc8acd6","assignee":null,"assignees":[],"requested_reviewers":[{"login":"gemmai95","id":10745032,"node_id":"MDQ6VXNlcjEwNzQ1MDMy","avatar_url":"https://avatars0.githubusercontent.com/u/10745032?v=4","gravatar_id":"","url":"https://api.github.com/users/gemmai95","html_url":"https://github.com/gemmai95","followers_url":"https://api.github.com/users/gemmai95/followers","following_url":"https://api.github.com/users/gemmai95/following{/other_user}","gists_url":"https://api.github.com/users/gemmai95/gists{/gist_id}","starred_url":"https://api.github.com/users/gemmai95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gemmai95/subscriptions","organizations_url":"https://api.github.com/users/gemmai95/orgs","repos_url":"https://api.github.com/users/gemmai95/repos","events_url":"https://api.github.com/users/gemmai95/events{/privacy}","received_events_url":"https://api.github.com/users/gemmai95/received_events","type":"User","site_admin":false},{"login":"emilioward","id":16239750,"node_id":"MDQ6VXNlcjE2MjM5NzUw","avatar_url":"https://avatars2.githubusercontent.com/u/16239750?v=4","gravatar_id":"","url":"https://api.github.com/users/emilioward","html_url":"https://github.com/emilioward","followers_url":"https://api.github.com/users/emilioward/followers","following_url":"https://api.github.com/users/emilioward/following{/other_user}","gists_url":"https://api.github.com/users/emilioward/gists{/gist_id}","starred_url":"https://api.github.com/users/emilioward/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emilioward/subscriptions","organizations_url":"https://api.github.com/users/emilioward/orgs","repos_url":"https://api.github.com/users/emilioward/repos","events_url":"https://api.github.com/users/emilioward/events{/privacy}","received_events_url":"https://api.github.com/users/emilioward/received_events","type":"User","site_admin":false},{"login":"andrewmil","id":22077099,"node_id":"MDQ6VXNlcjIyMDc3MDk5","avatar_url":"https://avatars3.githubusercontent.com/u/22077099?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewmil","html_url":"https://github.com/andrewmil","followers_url":"https://api.github.com/users/andrewmil/followers","following_url":"https://api.github.com/users/andrewmil/following{/other_user}","gists_url":"https://api.github.com/users/andrewmil/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewmil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewmil/subscriptions","organizations_url":"https://api.github.com/users/andrewmil/orgs","repos_url":"https://api.github.com/users/andrewmil/repos","events_url":"https://api.github.com/users/andrewmil/events{/privacy}","received_events_url":"https://api.github.com/users/andrewmil/received_events","type":"User","site_admin":false},{"login":"AdamHawtin","id":35268982,"node_id":"MDQ6VXNlcjM1MjY4OTgy","avatar_url":"https://avatars2.githubusercontent.com/u/35268982?v=4","gravatar_id":"","url":"https://api.github.com/users/AdamHawtin","html_url":"https://github.com/AdamHawtin","followers_url":"https://api.github.com/users/AdamHawtin/followers","following_url":"https://api.github.com/users/AdamHawtin/following{/other_user}","gists_url":"https://api.github.com/users/AdamHawtin/gists{/gist_id}","starred_url":"https://api.github.com/users/AdamHawtin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdamHawtin/subscriptions","organizations_url":"https://api.github.com/users/AdamHawtin/orgs","repos_url":"https://api.github.com/users/AdamHawtin/repos","events_url":"https://api.github.com/users/AdamHawtin/events{/privacy}","received_events_url":"https://api.github.com/users/AdamHawtin/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/pulls/179/commits","review_comments_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/pulls/179/comments","review_comment_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/issues/179/comments","statuses_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/statuses/d7f28c1cb3adee11b4ee5d136aed30ed6d82b10d","head":{"label":"ONSdigital:change-enrolment-status-direct","ref":"change-enrolment-status-direct","sha":"d7f28c1cb3adee11b4ee5d136aed30ed6d82b10d","user":{"login":"ONSdigital","id":6865137,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NjUxMzc=","avatar_url":"https://avatars0.githubusercontent.com/u/6865137?v=4","gravatar_id":"","url":"https://api.github.com/users/ONSdigital","html_url":"https://github.com/ONSdigital","followers_url":"https://api.github.com/users/ONSdigital/followers","following_url":"https://api.github.com/users/ONSdigital/following{/other_user}","gists_url":"https://api.github.com/users/ONSdigital/gists{/gist_id}","starred_url":"https://api.github.com/users/ONSdigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ONSdigital/subscriptions","organizations_url":"https://api.github.com/users/ONSdigital/orgs","repos_url":"https://api.github.com/users/ONSdigital/repos","events_url":"https://api.github.com/users/ONSdigital/events{/privacy}","received_events_url":"https://api.github.com/users/ONSdigital/received_events","type":"Organization","site_admin":false},"repo":{"id":112603785,"node_id":"MDEwOlJlcG9zaXRvcnkxMTI2MDM3ODU=","name":"response-operations-ui","full_name":"ONSdigital/response-operations-ui","owner":{"login":"ONSdigital","id":6865137,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NjUxMzc=","avatar_url":"https://avatars0.githubusercontent.com/u/6865137?v=4","gravatar_id":"","url":"https://api.github.com/users/ONSdigital","html_url":"https://github.com/ONSdigital","followers_url":"https://api.github.com/users/ONSdigital/followers","following_url":"https://api.github.com/users/ONSdigital/following{/other_user}","gists_url":"https://api.github.com/users/ONSdigital/gists{/gist_id}","starred_url":"https://api.github.com/users/ONSdigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ONSdigital/subscriptions","organizations_url":"https://api.github.com/users/ONSdigital/orgs","repos_url":"https://api.github.com/users/ONSdigital/repos","events_url":"https://api.github.com/users/ONSdigital/events{/privacy}","received_events_url":"https://api.github.com/users/ONSdigital/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ONSdigital/response-operations-ui","description":null,"fork":false,"url":"https://api.github.com/repos/ONSdigital/response-operations-ui","forks_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/forks","keys_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/teams","hooks_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/hooks","issue_events_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/issues/events{/number}","events_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/events","assignees_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/assignees{/user}","branches_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/branches{/branch}","tags_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/tags","blobs_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/languages","stargazers_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/stargazers","contributors_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/contributors","subscribers_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/subscribers","subscription_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/subscription","commits_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/contents/{+path}","compare_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/merges","archive_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/downloads","issues_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/issues{/number}","pulls_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/labels{/name}","releases_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/releases{/id}","deployments_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/deployments","created_at":"2017-11-30T11:31:09Z","updated_at":"2018-06-21T09:43:55Z","pushed_at":"2018-06-21T09:50:25Z","git_url":"git://github.com/ONSdigital/response-operations-ui.git","ssh_url":"git@github.com:ONSdigital/response-operations-ui.git","clone_url":"https://github.com/ONSdigital/response-operations-ui.git","svn_url":"https://github.com/ONSdigital/response-operations-ui","homepage":null,"size":563,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":5,"watchers":1,"default_branch":"master"}},"base":{"label":"ONSdigital:master","ref":"master","sha":"1db63e0d61062ac78f905b4b37be4b6bae459a49","user":{"login":"ONSdigital","id":6865137,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NjUxMzc=","avatar_url":"https://avatars0.githubusercontent.com/u/6865137?v=4","gravatar_id":"","url":"https://api.github.com/users/ONSdigital","html_url":"https://github.com/ONSdigital","followers_url":"https://api.github.com/users/ONSdigital/followers","following_url":"https://api.github.com/users/ONSdigital/following{/other_user}","gists_url":"https://api.github.com/users/ONSdigital/gists{/gist_id}","starred_url":"https://api.github.com/users/ONSdigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ONSdigital/subscriptions","organizations_url":"https://api.github.com/users/ONSdigital/orgs","repos_url":"https://api.github.com/users/ONSdigital/repos","events_url":"https://api.github.com/users/ONSdigital/events{/privacy}","received_events_url":"https://api.github.com/users/ONSdigital/received_events","type":"Organization","site_admin":false},"repo":{"id":112603785,"node_id":"MDEwOlJlcG9zaXRvcnkxMTI2MDM3ODU=","name":"response-operations-ui","full_name":"ONSdigital/response-operations-ui","owner":{"login":"ONSdigital","id":6865137,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NjUxMzc=","avatar_url":"https://avatars0.githubusercontent.com/u/6865137?v=4","gravatar_id":"","url":"https://api.github.com/users/ONSdigital","html_url":"https://github.com/ONSdigital","followers_url":"https://api.github.com/users/ONSdigital/followers","following_url":"https://api.github.com/users/ONSdigital/following{/other_user}","gists_url":"https://api.github.com/users/ONSdigital/gists{/gist_id}","starred_url":"https://api.github.com/users/ONSdigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ONSdigital/subscriptions","organizations_url":"https://api.github.com/users/ONSdigital/orgs","repos_url":"https://api.github.com/users/ONSdigital/repos","events_url":"https://api.github.com/users/ONSdigital/events{/privacy}","received_events_url":"https://api.github.com/users/ONSdigital/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ONSdigital/response-operations-ui","description":null,"fork":false,"url":"https://api.github.com/repos/ONSdigital/response-operations-ui","forks_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/forks","keys_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/teams","hooks_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/hooks","issue_events_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/issues/events{/number}","events_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/events","assignees_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/assignees{/user}","branches_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/branches{/branch}","tags_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/tags","blobs_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/languages","stargazers_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/stargazers","contributors_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/contributors","subscribers_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/subscribers","subscription_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/subscription","commits_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/contents/{+path}","compare_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/merges","archive_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/downloads","issues_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/issues{/number}","pulls_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/labels{/name}","releases_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/releases{/id}","deployments_url":"https://api.github.com/repos/ONSdigital/response-operations-ui/deployments","created_at":"2017-11-30T11:31:09Z","updated_at":"2018-06-21T09:43:55Z","pushed_at":"2018-06-21T09:50:25Z","git_url":"git://github.com/ONSdigital/response-operations-ui.git","ssh_url":"git@github.com:ONSdigital/response-operations-ui.git","clone_url":"https://github.com/ONSdigital/response-operations-ui.git","svn_url":"https://github.com/ONSdigital/response-operations-ui","homepage":null,"size":563,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":5,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ONSdigital/response-operations-ui/pulls/179"},"html":{"href":"https://github.com/ONSdigital/response-operations-ui/pull/179"},"issue":{"href":"https://api.github.com/repos/ONSdigital/response-operations-ui/issues/179"},"comments":{"href":"https://api.github.com/repos/ONSdigital/response-operations-ui/issues/179/comments"},"review_comments":{"href":"https://api.github.com/repos/ONSdigital/response-operations-ui/pulls/179/comments"},"review_comment":{"href":"https://api.github.com/repos/ONSdigital/response-operations-ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ONSdigital/response-operations-ui/pulls/179/commits"},"statuses":{"href":"https://api.github.com/repos/ONSdigital/response-operations-ui/statuses/d7f28c1cb3adee11b4ee5d136aed30ed6d82b10d"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"jcox-dev","id":28348457,"node_id":"MDQ6VXNlcjI4MzQ4NDU3","avatar_url":"https://avatars0.githubusercontent.com/u/28348457?v=4","gravatar_id":"","url":"https://api.github.com/users/jcox-dev","html_url":"https://github.com/jcox-dev","followers_url":"https://api.github.com/users/jcox-dev/followers","following_url":"https://api.github.com/users/jcox-dev/following{/other_user}","gists_url":"https://api.github.com/users/jcox-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/jcox-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcox-dev/subscriptions","organizations_url":"https://api.github.com/users/jcox-dev/orgs","repos_url":"https://api.github.com/users/jcox-dev/repos","events_url":"https://api.github.com/users/jcox-dev/events{/privacy}","received_events_url":"https://api.github.com/users/jcox-dev/received_events","type":"User","site_admin":false},"comments":2,"review_comments":1,"maintainer_can_modify":false,"commits":5,"additions":9,"deletions":5,"changed_files":2}}
{"actor":{"display_login":"jcox-dev"}}