{"action":"opened","number":566,"pull_request":{"url":"https://api.github.com/repos/UKHomeOffice/drt-v2/pulls/566","id":212003673,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyMDAzNjcz","html_url":"https://github.com/UKHomeOffice/drt-v2/pull/566","diff_url":"https://github.com/UKHomeOffice/drt-v2/pull/566.diff","patch_url":"https://github.com/UKHomeOffice/drt-v2/pull/566.patch","issue_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/issues/566","number":566,"state":"open","locked":false,"title":"Drt 5203 - Restrict access for users by port","user":{"login":"ryandac","id":369407,"node_id":"MDQ6VXNlcjM2OTQwNw==","avatar_url":"https://avatars2.githubusercontent.com/u/369407?v=4","gravatar_id":"","url":"https://api.github.com/users/ryandac","html_url":"https://github.com/ryandac","followers_url":"https://api.github.com/users/ryandac/followers","following_url":"https://api.github.com/users/ryandac/following{/other_user}","gists_url":"https://api.github.com/users/ryandac/gists{/gist_id}","starred_url":"https://api.github.com/users/ryandac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryandac/subscriptions","organizations_url":"https://api.github.com/users/ryandac/orgs","repos_url":"https://api.github.com/users/ryandac/repos","events_url":"https://api.github.com/users/ryandac/events{/privacy}","received_events_url":"https://api.github.com/users/ryandac/received_events","type":"User","site_admin":false},"body":"# Restricted access for users by port\r\n\r\n- Restrict users who don't have a port specific role from using the app.\r\n- Allows users to request access by sending an email\r\n- Allows users to click links to ports they do have access to\r\n- Changes user's roles from a List to a Set\r\n- Found out in cyprus tests `cy.contains(selector, value)` works 100% better than flakey `cy.get(selector).contains(value)`\r\n- Added Google analytics to the restricted access page\r\n- AlertsActor test uses an in-memory persistent actor rather than a file based one that fails the second time you run it\r\n- The test port requires a specific role to view (\"api:view\")\r\n\r\n<img width=\"985\" alt=\"screen shot 2018-08-30 at 09 54 02\" src=\"https://user-images.githubusercontent.com/369407/44841176-a9b39780-ac3a-11e8-9d26-3f0b02b6ae3d.png\">\r\n","created_at":"2018-08-30T08:55:36Z","updated_at":"2018-08-30T08:55:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/pulls/566/commits","review_comments_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/pulls/566/comments","review_comment_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/issues/566/comments","statuses_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/statuses/17b42515f836eb4f856aaa1e4441f14548977a2a","head":{"label":"UKHomeOffice:DRT-5203-Restrict-access-by-port","ref":"DRT-5203-Restrict-access-by-port","sha":"17b42515f836eb4f856aaa1e4441f14548977a2a","user":{"login":"UKHomeOffice","id":3778081,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3NzgwODE=","avatar_url":"https://avatars2.githubusercontent.com/u/3778081?v=4","gravatar_id":"","url":"https://api.github.com/users/UKHomeOffice","html_url":"https://github.com/UKHomeOffice","followers_url":"https://api.github.com/users/UKHomeOffice/followers","following_url":"https://api.github.com/users/UKHomeOffice/following{/other_user}","gists_url":"https://api.github.com/users/UKHomeOffice/gists{/gist_id}","starred_url":"https://api.github.com/users/UKHomeOffice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UKHomeOffice/subscriptions","organizations_url":"https://api.github.com/users/UKHomeOffice/orgs","repos_url":"https://api.github.com/users/UKHomeOffice/repos","events_url":"https://api.github.com/users/UKHomeOffice/events{/privacy}","received_events_url":"https://api.github.com/users/UKHomeOffice/received_events","type":"Organization","site_admin":false},"repo":{"id":67510341,"node_id":"MDEwOlJlcG9zaXRvcnk2NzUxMDM0MQ==","name":"drt-v2","full_name":"UKHomeOffice/drt-v2","owner":{"login":"UKHomeOffice","id":3778081,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3NzgwODE=","avatar_url":"https://avatars2.githubusercontent.com/u/3778081?v=4","gravatar_id":"","url":"https://api.github.com/users/UKHomeOffice","html_url":"https://github.com/UKHomeOffice","followers_url":"https://api.github.com/users/UKHomeOffice/followers","following_url":"https://api.github.com/users/UKHomeOffice/following{/other_user}","gists_url":"https://api.github.com/users/UKHomeOffice/gists{/gist_id}","starred_url":"https://api.github.com/users/UKHomeOffice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UKHomeOffice/subscriptions","organizations_url":"https://api.github.com/users/UKHomeOffice/orgs","repos_url":"https://api.github.com/users/UKHomeOffice/repos","events_url":"https://api.github.com/users/UKHomeOffice/events{/privacy}","received_events_url":"https://api.github.com/users/UKHomeOffice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UKHomeOffice/drt-v2","description":"Exploring scalajs and renjin","fork":false,"url":"https://api.github.com/repos/UKHomeOffice/drt-v2","forks_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/forks","keys_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/teams","hooks_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/hooks","issue_events_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/issues/events{/number}","events_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/events","assignees_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/assignees{/user}","branches_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/branches{/branch}","tags_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/tags","blobs_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/git/refs{/sha}","trees_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/statuses/{sha}","languages_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/languages","stargazers_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/stargazers","contributors_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/contributors","subscribers_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/subscribers","subscription_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/subscription","commits_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/commits{/sha}","git_commits_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/git/commits{/sha}","comments_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/comments{/number}","issue_comment_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/issues/comments{/number}","contents_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/contents/{+path}","compare_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/merges","archive_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/downloads","issues_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/issues{/number}","pulls_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/pulls{/number}","milestones_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/milestones{/number}","notifications_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/labels{/name}","releases_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/releases{/id}","deployments_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/deployments","created_at":"2016-09-06T13:24:51Z","updated_at":"2018-08-29T10:49:56Z","pushed_at":"2018-08-30T08:44:57Z","git_url":"git://github.com/UKHomeOffice/drt-v2.git","ssh_url":"git@github.com:UKHomeOffice/drt-v2.git","clone_url":"https://github.com/UKHomeOffice/drt-v2.git","svn_url":"https://github.com/UKHomeOffice/drt-v2","homepage":null,"size":16951,"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":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":3,"open_issues":1,"watchers":3,"default_branch":"master"}},"base":{"label":"UKHomeOffice:master","ref":"master","sha":"3ff83e8efd1080314ac93ff36795378391bf2e5b","user":{"login":"UKHomeOffice","id":3778081,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3NzgwODE=","avatar_url":"https://avatars2.githubusercontent.com/u/3778081?v=4","gravatar_id":"","url":"https://api.github.com/users/UKHomeOffice","html_url":"https://github.com/UKHomeOffice","followers_url":"https://api.github.com/users/UKHomeOffice/followers","following_url":"https://api.github.com/users/UKHomeOffice/following{/other_user}","gists_url":"https://api.github.com/users/UKHomeOffice/gists{/gist_id}","starred_url":"https://api.github.com/users/UKHomeOffice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UKHomeOffice/subscriptions","organizations_url":"https://api.github.com/users/UKHomeOffice/orgs","repos_url":"https://api.github.com/users/UKHomeOffice/repos","events_url":"https://api.github.com/users/UKHomeOffice/events{/privacy}","received_events_url":"https://api.github.com/users/UKHomeOffice/received_events","type":"Organization","site_admin":false},"repo":{"id":67510341,"node_id":"MDEwOlJlcG9zaXRvcnk2NzUxMDM0MQ==","name":"drt-v2","full_name":"UKHomeOffice/drt-v2","owner":{"login":"UKHomeOffice","id":3778081,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3NzgwODE=","avatar_url":"https://avatars2.githubusercontent.com/u/3778081?v=4","gravatar_id":"","url":"https://api.github.com/users/UKHomeOffice","html_url":"https://github.com/UKHomeOffice","followers_url":"https://api.github.com/users/UKHomeOffice/followers","following_url":"https://api.github.com/users/UKHomeOffice/following{/other_user}","gists_url":"https://api.github.com/users/UKHomeOffice/gists{/gist_id}","starred_url":"https://api.github.com/users/UKHomeOffice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UKHomeOffice/subscriptions","organizations_url":"https://api.github.com/users/UKHomeOffice/orgs","repos_url":"https://api.github.com/users/UKHomeOffice/repos","events_url":"https://api.github.com/users/UKHomeOffice/events{/privacy}","received_events_url":"https://api.github.com/users/UKHomeOffice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UKHomeOffice/drt-v2","description":"Exploring scalajs and renjin","fork":false,"url":"https://api.github.com/repos/UKHomeOffice/drt-v2","forks_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/forks","keys_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/teams","hooks_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/hooks","issue_events_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/issues/events{/number}","events_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/events","assignees_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/assignees{/user}","branches_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/branches{/branch}","tags_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/tags","blobs_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/git/refs{/sha}","trees_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/statuses/{sha}","languages_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/languages","stargazers_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/stargazers","contributors_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/contributors","subscribers_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/subscribers","subscription_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/subscription","commits_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/commits{/sha}","git_commits_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/git/commits{/sha}","comments_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/comments{/number}","issue_comment_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/issues/comments{/number}","contents_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/contents/{+path}","compare_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/merges","archive_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/downloads","issues_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/issues{/number}","pulls_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/pulls{/number}","milestones_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/milestones{/number}","notifications_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/labels{/name}","releases_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/releases{/id}","deployments_url":"https://api.github.com/repos/UKHomeOffice/drt-v2/deployments","created_at":"2016-09-06T13:24:51Z","updated_at":"2018-08-29T10:49:56Z","pushed_at":"2018-08-30T08:44:57Z","git_url":"git://github.com/UKHomeOffice/drt-v2.git","ssh_url":"git@github.com:UKHomeOffice/drt-v2.git","clone_url":"https://github.com/UKHomeOffice/drt-v2.git","svn_url":"https://github.com/UKHomeOffice/drt-v2","homepage":null,"size":16951,"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":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":3,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/UKHomeOffice/drt-v2/pulls/566"},"html":{"href":"https://github.com/UKHomeOffice/drt-v2/pull/566"},"issue":{"href":"https://api.github.com/repos/UKHomeOffice/drt-v2/issues/566"},"comments":{"href":"https://api.github.com/repos/UKHomeOffice/drt-v2/issues/566/comments"},"review_comments":{"href":"https://api.github.com/repos/UKHomeOffice/drt-v2/pulls/566/comments"},"review_comment":{"href":"https://api.github.com/repos/UKHomeOffice/drt-v2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/UKHomeOffice/drt-v2/pulls/566/commits"},"statuses":{"href":"https://api.github.com/repos/UKHomeOffice/drt-v2/statuses/17b42515f836eb4f856aaa1e4441f14548977a2a"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":214,"deletions":49,"changed_files":21}}
{"actor":{"display_login":"ryandac"}}