{"action":"opened","number":63,"pull_request":{"url":"https://api.github.com/repos/ministryofjustice/use-of-force/pulls/63","id":301531769,"node_id":"MDExOlB1bGxSZXF1ZXN0MzAxNTMxNzY5","html_url":"https://github.com/ministryofjustice/use-of-force/pull/63","diff_url":"https://github.com/ministryofjustice/use-of-force/pull/63.diff","patch_url":"https://github.com/ministryofjustice/use-of-force/pull/63.patch","issue_url":"https://api.github.com/repos/ministryofjustice/use-of-force/issues/63","number":63,"state":"open","locked":false,"title":"DCS-60 Fixing redirect loop & adding token refreshing","user":{"login":"andrewrlee","id":1517745,"node_id":"MDQ6VXNlcjE1MTc3NDU=","avatar_url":"https://avatars1.githubusercontent.com/u/1517745?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewrlee","html_url":"https://github.com/andrewrlee","followers_url":"https://api.github.com/users/andrewrlee/followers","following_url":"https://api.github.com/users/andrewrlee/following{/other_user}","gists_url":"https://api.github.com/users/andrewrlee/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewrlee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewrlee/subscriptions","organizations_url":"https://api.github.com/users/andrewrlee/orgs","repos_url":"https://api.github.com/users/andrewrlee/repos","events_url":"https://api.github.com/users/andrewrlee/events{/privacy}","received_events_url":"https://api.github.com/users/andrewrlee/received_events","type":"User","site_admin":false},"body":"Token refresh was not implemented - but there was some code which attempted to redirect to login 5 minutes before the token expired (Not quite sure why).\r\n\r\nThe redirect would always be intercepted by the same code, so an infinite redirect loop would occur.\r\n\r\nI've fixed this by back porting token refreshing functionality from categorisation tool.\r\n","created_at":"2019-07-26T13:01:52Z","updated_at":"2019-07-26T13:01:52Z","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/ministryofjustice/use-of-force/pulls/63/commits","review_comments_url":"https://api.github.com/repos/ministryofjustice/use-of-force/pulls/63/comments","review_comment_url":"https://api.github.com/repos/ministryofjustice/use-of-force/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ministryofjustice/use-of-force/issues/63/comments","statuses_url":"https://api.github.com/repos/ministryofjustice/use-of-force/statuses/fc939e55ae8f68a10dad521f2b079da76a85312c","head":{"label":"ministryofjustice:alee/DCS-60","ref":"alee/DCS-60","sha":"fc939e55ae8f68a10dad521f2b079da76a85312c","user":{"login":"ministryofjustice","id":2203574,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMDM1NzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/2203574?v=4","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"repo":{"id":191378699,"node_id":"MDEwOlJlcG9zaXRvcnkxOTEzNzg2OTk=","name":"use-of-force","full_name":"ministryofjustice/use-of-force","private":false,"owner":{"login":"ministryofjustice","id":2203574,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMDM1NzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/2203574?v=4","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ministryofjustice/use-of-force","description":"Use of Force","fork":false,"url":"https://api.github.com/repos/ministryofjustice/use-of-force","forks_url":"https://api.github.com/repos/ministryofjustice/use-of-force/forks","keys_url":"https://api.github.com/repos/ministryofjustice/use-of-force/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/use-of-force/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/use-of-force/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/use-of-force/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/use-of-force/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/use-of-force/events","assignees_url":"https://api.github.com/repos/ministryofjustice/use-of-force/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/use-of-force/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/use-of-force/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/use-of-force/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/use-of-force/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/use-of-force/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/use-of-force/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/use-of-force/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/use-of-force/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/use-of-force/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/use-of-force/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/use-of-force/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/use-of-force/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/use-of-force/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/use-of-force/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/use-of-force/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/use-of-force/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/use-of-force/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/use-of-force/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/use-of-force/merges","archive_url":"https://api.github.com/repos/ministryofjustice/use-of-force/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/use-of-force/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/use-of-force/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/use-of-force/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/use-of-force/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/use-of-force/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/use-of-force/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/use-of-force/releases{/id}","deployments_url":"https://api.github.com/repos/ministryofjustice/use-of-force/deployments","created_at":"2019-06-11T13:36:05Z","updated_at":"2019-07-25T07:46:34Z","pushed_at":"2019-07-26T12:59:35Z","git_url":"git://github.com/ministryofjustice/use-of-force.git","ssh_url":"git@github.com:ministryofjustice/use-of-force.git","clone_url":"https://github.com/ministryofjustice/use-of-force.git","svn_url":"https://github.com/ministryofjustice/use-of-force","homepage":"","size":11846,"stargazers_count":0,"watchers_count":0,"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,"disabled":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"ministryofjustice:master","ref":"master","sha":"7c25a9853be4fa70e4ee9b2e7e838537dd5e46ff","user":{"login":"ministryofjustice","id":2203574,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMDM1NzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/2203574?v=4","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"repo":{"id":191378699,"node_id":"MDEwOlJlcG9zaXRvcnkxOTEzNzg2OTk=","name":"use-of-force","full_name":"ministryofjustice/use-of-force","private":false,"owner":{"login":"ministryofjustice","id":2203574,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMDM1NzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/2203574?v=4","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ministryofjustice/use-of-force","description":"Use of Force","fork":false,"url":"https://api.github.com/repos/ministryofjustice/use-of-force","forks_url":"https://api.github.com/repos/ministryofjustice/use-of-force/forks","keys_url":"https://api.github.com/repos/ministryofjustice/use-of-force/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/use-of-force/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/use-of-force/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/use-of-force/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/use-of-force/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/use-of-force/events","assignees_url":"https://api.github.com/repos/ministryofjustice/use-of-force/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/use-of-force/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/use-of-force/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/use-of-force/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/use-of-force/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/use-of-force/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/use-of-force/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/use-of-force/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/use-of-force/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/use-of-force/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/use-of-force/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/use-of-force/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/use-of-force/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/use-of-force/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/use-of-force/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/use-of-force/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/use-of-force/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/use-of-force/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/use-of-force/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/use-of-force/merges","archive_url":"https://api.github.com/repos/ministryofjustice/use-of-force/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/use-of-force/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/use-of-force/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/use-of-force/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/use-of-force/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/use-of-force/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/use-of-force/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/use-of-force/releases{/id}","deployments_url":"https://api.github.com/repos/ministryofjustice/use-of-force/deployments","created_at":"2019-06-11T13:36:05Z","updated_at":"2019-07-25T07:46:34Z","pushed_at":"2019-07-26T12:59:35Z","git_url":"git://github.com/ministryofjustice/use-of-force.git","ssh_url":"git@github.com:ministryofjustice/use-of-force.git","clone_url":"https://github.com/ministryofjustice/use-of-force.git","svn_url":"https://github.com/ministryofjustice/use-of-force","homepage":"","size":11846,"stargazers_count":0,"watchers_count":0,"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,"disabled":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ministryofjustice/use-of-force/pulls/63"},"html":{"href":"https://github.com/ministryofjustice/use-of-force/pull/63"},"issue":{"href":"https://api.github.com/repos/ministryofjustice/use-of-force/issues/63"},"comments":{"href":"https://api.github.com/repos/ministryofjustice/use-of-force/issues/63/comments"},"review_comments":{"href":"https://api.github.com/repos/ministryofjustice/use-of-force/pulls/63/comments"},"review_comment":{"href":"https://api.github.com/repos/ministryofjustice/use-of-force/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ministryofjustice/use-of-force/pulls/63/commits"},"statuses":{"href":"https://api.github.com/repos/ministryofjustice/use-of-force/statuses/fc939e55ae8f68a10dad521f2b079da76a85312c"}},"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":1,"additions":138,"deletions":67,"changed_files":8}}
{"actor":{"display_login":"andrewrlee"}}