{"action":"created","comment":{"url":"https://api.github.com/repos/ONSdigital/ras-frontstage/pulls/comments/186044815","pull_request_review_id":117558303,"id":186044815,"diff_hunk":"@@ -0,0 +1,15 @@\n+import requests\n+\n+from frontstage import app\n+\n+\n+def get_respondent_by_email(email):\n+","path":"frontstage/controllers/party_controller.py","position":null,"original_position":7,"commit_id":"ba06619fea38712affe2ba2c96576b2171186db3","original_commit_id":"722ac74395b56696c4c7a12d3a5696c5004d3b35","user":{"login":"gemmai95","id":10745032,"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},"body":"Read my mind haha","created_at":"2018-05-04T10:31:47Z","updated_at":"2018-05-04T10:31:47Z","html_url":"https://github.com/ONSdigital/ras-frontstage/pull/326#discussion_r186044815","pull_request_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/pulls/326","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/ONSdigital/ras-frontstage/pulls/comments/186044815"},"html":{"href":"https://github.com/ONSdigital/ras-frontstage/pull/326#discussion_r186044815"},"pull_request":{"href":"https://api.github.com/repos/ONSdigital/ras-frontstage/pulls/326"}},"in_reply_to_id":186024914},"pull_request":{"url":"https://api.github.com/repos/ONSdigital/ras-frontstage/pulls/326","id":185637983,"html_url":"https://github.com/ONSdigital/ras-frontstage/pull/326","diff_url":"https://github.com/ONSdigital/ras-frontstage/pull/326.diff","patch_url":"https://github.com/ONSdigital/ras-frontstage/pull/326.patch","issue_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/issues/326","number":326,"state":"open","locked":false,"title":"Add inability to sign in unless active account in system","user":{"login":"gemmai95","id":10745032,"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},"body":"Respondent should only be able to sign in to system if they are in an active state in the system. This PR goes with the ability to suspend an account but adds the overall functionality to stop people being able to log in to frontstage without an active account.","created_at":"2018-05-03T07:45:22Z","updated_at":"2018-05-04T10:31:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9f8233b01452b8e6b479edc22f7134fea8887b75","assignee":null,"assignees":[],"requested_reviewers":[{"login":"jwgwalton","id":7936236,"avatar_url":"https://avatars3.githubusercontent.com/u/7936236?v=4","gravatar_id":"","url":"https://api.github.com/users/jwgwalton","html_url":"https://github.com/jwgwalton","followers_url":"https://api.github.com/users/jwgwalton/followers","following_url":"https://api.github.com/users/jwgwalton/following{/other_user}","gists_url":"https://api.github.com/users/jwgwalton/gists{/gist_id}","starred_url":"https://api.github.com/users/jwgwalton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwgwalton/subscriptions","organizations_url":"https://api.github.com/users/jwgwalton/orgs","repos_url":"https://api.github.com/users/jwgwalton/repos","events_url":"https://api.github.com/users/jwgwalton/events{/privacy}","received_events_url":"https://api.github.com/users/jwgwalton/received_events","type":"User","site_admin":false},{"login":"JamesGardiner","id":9960163,"avatar_url":"https://avatars3.githubusercontent.com/u/9960163?v=4","gravatar_id":"","url":"https://api.github.com/users/JamesGardiner","html_url":"https://github.com/JamesGardiner","followers_url":"https://api.github.com/users/JamesGardiner/followers","following_url":"https://api.github.com/users/JamesGardiner/following{/other_user}","gists_url":"https://api.github.com/users/JamesGardiner/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesGardiner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesGardiner/subscriptions","organizations_url":"https://api.github.com/users/JamesGardiner/orgs","repos_url":"https://api.github.com/users/JamesGardiner/repos","events_url":"https://api.github.com/users/JamesGardiner/events{/privacy}","received_events_url":"https://api.github.com/users/JamesGardiner/received_events","type":"User","site_admin":false},{"login":"dcdarrell9","id":16637283,"avatar_url":"https://avatars3.githubusercontent.com/u/16637283?v=4","gravatar_id":"","url":"https://api.github.com/users/dcdarrell9","html_url":"https://github.com/dcdarrell9","followers_url":"https://api.github.com/users/dcdarrell9/followers","following_url":"https://api.github.com/users/dcdarrell9/following{/other_user}","gists_url":"https://api.github.com/users/dcdarrell9/gists{/gist_id}","starred_url":"https://api.github.com/users/dcdarrell9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcdarrell9/subscriptions","organizations_url":"https://api.github.com/users/dcdarrell9/orgs","repos_url":"https://api.github.com/users/dcdarrell9/repos","events_url":"https://api.github.com/users/dcdarrell9/events{/privacy}","received_events_url":"https://api.github.com/users/dcdarrell9/received_events","type":"User","site_admin":false},{"login":"MIslam92","id":22023545,"avatar_url":"https://avatars2.githubusercontent.com/u/22023545?v=4","gravatar_id":"","url":"https://api.github.com/users/MIslam92","html_url":"https://github.com/MIslam92","followers_url":"https://api.github.com/users/MIslam92/followers","following_url":"https://api.github.com/users/MIslam92/following{/other_user}","gists_url":"https://api.github.com/users/MIslam92/gists{/gist_id}","starred_url":"https://api.github.com/users/MIslam92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MIslam92/subscriptions","organizations_url":"https://api.github.com/users/MIslam92/orgs","repos_url":"https://api.github.com/users/MIslam92/repos","events_url":"https://api.github.com/users/MIslam92/events{/privacy}","received_events_url":"https://api.github.com/users/MIslam92/received_events","type":"User","site_admin":false},{"login":"rhiGriff","id":22023945,"avatar_url":"https://avatars2.githubusercontent.com/u/22023945?v=4","gravatar_id":"","url":"https://api.github.com/users/rhiGriff","html_url":"https://github.com/rhiGriff","followers_url":"https://api.github.com/users/rhiGriff/followers","following_url":"https://api.github.com/users/rhiGriff/following{/other_user}","gists_url":"https://api.github.com/users/rhiGriff/gists{/gist_id}","starred_url":"https://api.github.com/users/rhiGriff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhiGriff/subscriptions","organizations_url":"https://api.github.com/users/rhiGriff/orgs","repos_url":"https://api.github.com/users/rhiGriff/repos","events_url":"https://api.github.com/users/rhiGriff/events{/privacy}","received_events_url":"https://api.github.com/users/rhiGriff/received_events","type":"User","site_admin":false},{"login":"andrewmil","id":22077099,"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}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/pulls/326/commits","review_comments_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/pulls/326/comments","review_comment_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/issues/326/comments","statuses_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/statuses/ba06619fea38712affe2ba2c96576b2171186db3","head":{"label":"ONSdigital:US020-deactivate-respondent-account","ref":"US020-deactivate-respondent-account","sha":"ba06619fea38712affe2ba2c96576b2171186db3","user":{"login":"ONSdigital","id":6865137,"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":79330497,"name":"ras-frontstage","full_name":"ONSdigital/ras-frontstage","owner":{"login":"ONSdigital","id":6865137,"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/ras-frontstage","description":"User interface for Respondent Account Services","fork":false,"url":"https://api.github.com/repos/ONSdigital/ras-frontstage","forks_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/forks","keys_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/teams","hooks_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/hooks","issue_events_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/issues/events{/number}","events_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/events","assignees_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/assignees{/user}","branches_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/branches{/branch}","tags_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/tags","blobs_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/git/refs{/sha}","trees_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/statuses/{sha}","languages_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/languages","stargazers_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/stargazers","contributors_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/contributors","subscribers_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/subscribers","subscription_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/subscription","commits_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/commits{/sha}","git_commits_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/git/commits{/sha}","comments_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/comments{/number}","issue_comment_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/issues/comments{/number}","contents_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/contents/{+path}","compare_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/merges","archive_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/downloads","issues_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/issues{/number}","pulls_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/pulls{/number}","milestones_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/milestones{/number}","notifications_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/labels{/name}","releases_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/releases{/id}","deployments_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/deployments","created_at":"2017-01-18T10:43:25Z","updated_at":"2018-05-01T06:24:44Z","pushed_at":"2018-05-04T09:37:43Z","git_url":"git://github.com/ONSdigital/ras-frontstage.git","ssh_url":"git@github.com:ONSdigital/ras-frontstage.git","clone_url":"https://github.com/ONSdigital/ras-frontstage.git","svn_url":"https://github.com/ONSdigital/ras-frontstage","homepage":null,"size":11340,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","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":10,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":10,"watchers":4,"default_branch":"master"}},"base":{"label":"ONSdigital:master","ref":"master","sha":"c0515a21df197aa576810591849a4a399b328fa5","user":{"login":"ONSdigital","id":6865137,"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":79330497,"name":"ras-frontstage","full_name":"ONSdigital/ras-frontstage","owner":{"login":"ONSdigital","id":6865137,"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/ras-frontstage","description":"User interface for Respondent Account Services","fork":false,"url":"https://api.github.com/repos/ONSdigital/ras-frontstage","forks_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/forks","keys_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/teams","hooks_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/hooks","issue_events_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/issues/events{/number}","events_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/events","assignees_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/assignees{/user}","branches_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/branches{/branch}","tags_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/tags","blobs_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/git/refs{/sha}","trees_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/statuses/{sha}","languages_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/languages","stargazers_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/stargazers","contributors_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/contributors","subscribers_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/subscribers","subscription_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/subscription","commits_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/commits{/sha}","git_commits_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/git/commits{/sha}","comments_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/comments{/number}","issue_comment_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/issues/comments{/number}","contents_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/contents/{+path}","compare_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/merges","archive_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/downloads","issues_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/issues{/number}","pulls_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/pulls{/number}","milestones_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/milestones{/number}","notifications_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/labels{/name}","releases_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/releases{/id}","deployments_url":"https://api.github.com/repos/ONSdigital/ras-frontstage/deployments","created_at":"2017-01-18T10:43:25Z","updated_at":"2018-05-01T06:24:44Z","pushed_at":"2018-05-04T09:37:43Z","git_url":"git://github.com/ONSdigital/ras-frontstage.git","ssh_url":"git@github.com:ONSdigital/ras-frontstage.git","clone_url":"https://github.com/ONSdigital/ras-frontstage.git","svn_url":"https://github.com/ONSdigital/ras-frontstage","homepage":null,"size":11340,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","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":10,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":10,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ONSdigital/ras-frontstage/pulls/326"},"html":{"href":"https://github.com/ONSdigital/ras-frontstage/pull/326"},"issue":{"href":"https://api.github.com/repos/ONSdigital/ras-frontstage/issues/326"},"comments":{"href":"https://api.github.com/repos/ONSdigital/ras-frontstage/issues/326/comments"},"review_comments":{"href":"https://api.github.com/repos/ONSdigital/ras-frontstage/pulls/326/comments"},"review_comment":{"href":"https://api.github.com/repos/ONSdigital/ras-frontstage/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ONSdigital/ras-frontstage/pulls/326/commits"},"statuses":{"href":"https://api.github.com/repos/ONSdigital/ras-frontstage/statuses/ba06619fea38712affe2ba2c96576b2171186db3"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"gemmai95"}}