GitHub PullRequestReviewCommentEvent at 2014-11-19 13:36:06
Repository: prison-visits
Actor: SteveMarshall
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/ministryofjustice/prison-visits/pulls/comments/20574410","id":20574410,"diff_hunk":"@@ -10,7 +10,8 @@ def edit\n \n   def update\n     if (visit.prisoner = Prisoner.new(prisoner_params)).valid?\n-      redirect_to deferred_edit_visitors_details_path\n+      instant_booking = Rails.configuration.prison_data[visit.prisoner.prison_name][:instant_booking]\n+      redirect_to instant_booking ? instant_edit_visitors_details_path : deferred_edit_visitors_details_path","path":"app/controllers/prisoner_details_controller.rb","position":6,"original_position":6,"commit_id":"51a039e81471a8564396bec7805d5e278564b736","original_commit_id":"51a039e81471a8564396bec7805d5e278564b736","user":{"login":"SteveMarshall","id":2210,"avatar_url":"https://avatars.githubusercontent.com/u/2210?v=3","gravatar_id":"","url":"https://api.github.com/users/SteveMarshall","html_url":"https://github.com/SteveMarshall","followers_url":"https://api.github.com/users/SteveMarshall/followers","following_url":"https://api.github.com/users/SteveMarshall/following{/other_user}","gists_url":"https://api.github.com/users/SteveMarshall/gists{/gist_id}","starred_url":"https://api.github.com/users/SteveMarshall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SteveMarshall/subscriptions","organizations_url":"https://api.github.com/users/SteveMarshall/orgs","repos_url":"https://api.github.com/users/SteveMarshall/repos","events_url":"https://api.github.com/users/SteveMarshall/events{/privacy}","received_events_url":"https://api.github.com/users/SteveMarshall/received_events","type":"User","site_admin":false},"body":"As discussed, this should also honour an environment variable to allow us to quickly disable the entirety of the instant booking flow throughout the application.","created_at":"2014-11-19T13:36:06Z","updated_at":"2014-11-19T13:36:06Z","html_url":"https://github.com/ministryofjustice/prison-visits/pull/90#discussion_r20574410","pull_request_url":"https://api.github.com/repos/ministryofjustice/prison-visits/pulls/90","_links":{"self":{"href":"https://api.github.com/repos/ministryofjustice/prison-visits/pulls/comments/20574410"},"html":{"href":"https://github.com/ministryofjustice/prison-visits/pull/90#discussion_r20574410"},"pull_request":{"href":"https://api.github.com/repos/ministryofjustice/prison-visits/pulls/90"}}},"pull_request":{"url":"https://api.github.com/repos/ministryofjustice/prison-visits/pulls/90","id":24679523,"html_url":"https://github.com/ministryofjustice/prison-visits/pull/90","diff_url":"https://github.com/ministryofjustice/prison-visits/pull/90.diff","patch_url":"https://github.com/ministryofjustice/prison-visits/pull/90.patch","issue_url":"https://api.github.com/repos/ministryofjustice/prison-visits/issues/90","number":90,"state":"open","locked":false,"title":"This introduces the API flow. (DON'T MERGE, JUST REVIEW)","user":{"login":"jasiek","id":37550,"avatar_url":"https://avatars.githubusercontent.com/u/37550?v=3","gravatar_id":"","url":"https://api.github.com/users/jasiek","html_url":"https://github.com/jasiek","followers_url":"https://api.github.com/users/jasiek/followers","following_url":"https://api.github.com/users/jasiek/following{/other_user}","gists_url":"https://api.github.com/users/jasiek/gists{/gist_id}","starred_url":"https://api.github.com/users/jasiek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasiek/subscriptions","organizations_url":"https://api.github.com/users/jasiek/orgs","repos_url":"https://api.github.com/users/jasiek/repos","events_url":"https://api.github.com/users/jasiek/events{/privacy}","received_events_url":"https://api.github.com/users/jasiek/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-11-19T10:46:56Z","updated_at":"2014-11-19T13:36:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"abef27ce192739c2dec1788be2e8905390dd63e1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ministryofjustice/prison-visits/pulls/90/commits","review_comments_url":"https://api.github.com/repos/ministryofjustice/prison-visits/pulls/90/comments","review_comment_url":"https://api.github.com/repos/ministryofjustice/prison-visits/pulls/comments/{number}","comments_url":"https://api.github.com/repos/ministryofjustice/prison-visits/issues/90/comments","statuses_url":"https://api.github.com/repos/ministryofjustice/prison-visits/statuses/51a039e81471a8564396bec7805d5e278564b736","head":{"label":"ministryofjustice:api-flow-81200736","ref":"api-flow-81200736","sha":"51a039e81471a8564396bec7805d5e278564b736","user":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","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":20570322,"name":"prison-visits","full_name":"ministryofjustice/prison-visits","owner":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","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},"private":false,"html_url":"https://github.com/ministryofjustice/prison-visits","description":"","fork":false,"url":"https://api.github.com/repos/ministryofjustice/prison-visits","forks_url":"https://api.github.com/repos/ministryofjustice/prison-visits/forks","keys_url":"https://api.github.com/repos/ministryofjustice/prison-visits/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/prison-visits/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/prison-visits/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/prison-visits/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/prison-visits/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/prison-visits/events","assignees_url":"https://api.github.com/repos/ministryofjustice/prison-visits/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/prison-visits/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/prison-visits/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/prison-visits/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/prison-visits/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/prison-visits/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/prison-visits/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/prison-visits/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/prison-visits/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/prison-visits/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/prison-visits/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/prison-visits/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/prison-visits/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/prison-visits/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/prison-visits/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/prison-visits/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/prison-visits/issues/comments/{number}","contents_url":"https://api.github.com/repos/ministryofjustice/prison-visits/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/prison-visits/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/prison-visits/merges","archive_url":"https://api.github.com/repos/ministryofjustice/prison-visits/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/prison-visits/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/prison-visits/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/prison-visits/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/prison-visits/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/prison-visits/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/prison-visits/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/prison-visits/releases{/id}","created_at":"2014-06-06T16:24:26Z","updated_at":"2014-11-19T10:40:47Z","pushed_at":"2014-11-19T13:17:40Z","git_url":"git://github.com/ministryofjustice/prison-visits.git","ssh_url":"git@github.com:ministryofjustice/prison-visits.git","clone_url":"https://github.com/ministryofjustice/prison-visits.git","svn_url":"https://github.com/ministryofjustice/prison-visits","homepage":"https://www.prisonvisits.service.gov.uk","size":8363,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"ministryofjustice:master","ref":"master","sha":"585d57da6dc90e7da39613d710dc564334134afb","user":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","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":20570322,"name":"prison-visits","full_name":"ministryofjustice/prison-visits","owner":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","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},"private":false,"html_url":"https://github.com/ministryofjustice/prison-visits","description":"","fork":false,"url":"https://api.github.com/repos/ministryofjustice/prison-visits","forks_url":"https://api.github.com/repos/ministryofjustice/prison-visits/forks","keys_url":"https://api.github.com/repos/ministryofjustice/prison-visits/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/prison-visits/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/prison-visits/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/prison-visits/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/prison-visits/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/prison-visits/events","assignees_url":"https://api.github.com/repos/ministryofjustice/prison-visits/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/prison-visits/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/prison-visits/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/prison-visits/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/prison-visits/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/prison-visits/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/prison-visits/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/prison-visits/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/prison-visits/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/prison-visits/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/prison-visits/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/prison-visits/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/prison-visits/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/prison-visits/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/prison-visits/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/prison-visits/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/prison-visits/issues/comments/{number}","contents_url":"https://api.github.com/repos/ministryofjustice/prison-visits/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/prison-visits/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/prison-visits/merges","archive_url":"https://api.github.com/repos/ministryofjustice/prison-visits/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/prison-visits/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/prison-visits/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/prison-visits/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/prison-visits/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/prison-visits/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/prison-visits/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/prison-visits/releases{/id}","created_at":"2014-06-06T16:24:26Z","updated_at":"2014-11-19T10:40:47Z","pushed_at":"2014-11-19T13:17:40Z","git_url":"git://github.com/ministryofjustice/prison-visits.git","ssh_url":"git@github.com:ministryofjustice/prison-visits.git","clone_url":"https://github.com/ministryofjustice/prison-visits.git","svn_url":"https://github.com/ministryofjustice/prison-visits","homepage":"https://www.prisonvisits.service.gov.uk","size":8363,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ministryofjustice/prison-visits/pulls/90"},"html":{"href":"https://github.com/ministryofjustice/prison-visits/pull/90"},"issue":{"href":"https://api.github.com/repos/ministryofjustice/prison-visits/issues/90"},"comments":{"href":"https://api.github.com/repos/ministryofjustice/prison-visits/issues/90/comments"},"review_comments":{"href":"https://api.github.com/repos/ministryofjustice/prison-visits/pulls/90/comments"},"review_comment":{"href":"https://api.github.com/repos/ministryofjustice/prison-visits/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/ministryofjustice/prison-visits/pulls/90/commits"},"statuses":{"href":"https://api.github.com/repos/ministryofjustice/prison-visits/statuses/51a039e81471a8564396bec7805d5e278564b736"}}}}