{"action":"created","comment":{"url":"https://api.github.com/repos/zooniverse/Panoptes/pulls/comments/49315399","id":49315399,"diff_hunk":"@@ -24,6 +24,11 @@ def destroy_links\n     super { |workflow| reload_queue(workflow) }\n   end\n \n+  def retire_subject\n+    controlled_resource.retire_subject(params[:subject_id])\n+    render nothing: true","path":"app/controllers/api/v1/workflows_controller.rb","position":15,"original_position":15,"commit_id":"26b17c9dad5d56917051194eeaa06d436d73dcaf","original_commit_id":"26b17c9dad5d56917051194eeaa06d436d73dcaf","user":{"login":"camallen","id":295329,"avatar_url":"https://avatars.githubusercontent.com/u/295329?v=3","gravatar_id":"","url":"https://api.github.com/users/camallen","html_url":"https://github.com/camallen","followers_url":"https://api.github.com/users/camallen/followers","following_url":"https://api.github.com/users/camallen/following{/other_user}","gists_url":"https://api.github.com/users/camallen/gists{/gist_id}","starred_url":"https://api.github.com/users/camallen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/camallen/subscriptions","organizations_url":"https://api.github.com/users/camallen/orgs","repos_url":"https://api.github.com/users/camallen/repos","events_url":"https://api.github.com/users/camallen/events{/privacy}","received_events_url":"https://api.github.com/users/camallen/received_events","type":"User","site_admin":false},"body":"sounds good.","created_at":"2016-01-11T12:23:02Z","updated_at":"2016-01-11T12:23:02Z","html_url":"https://github.com/zooniverse/Panoptes/pull/1598#discussion_r49315399","pull_request_url":"https://api.github.com/repos/zooniverse/Panoptes/pulls/1598","_links":{"self":{"href":"https://api.github.com/repos/zooniverse/Panoptes/pulls/comments/49315399"},"html":{"href":"https://github.com/zooniverse/Panoptes/pull/1598#discussion_r49315399"},"pull_request":{"href":"https://api.github.com/repos/zooniverse/Panoptes/pulls/1598"}}},"pull_request":{"url":"https://api.github.com/repos/zooniverse/Panoptes/pulls/1598","id":55614019,"html_url":"https://github.com/zooniverse/Panoptes/pull/1598","diff_url":"https://github.com/zooniverse/Panoptes/pull/1598.diff","patch_url":"https://github.com/zooniverse/Panoptes/pull/1598.patch","issue_url":"https://api.github.com/repos/zooniverse/Panoptes/issues/1598","number":1598,"state":"open","locked":false,"title":"Add fast route for retirement","user":{"login":"marten","id":277,"avatar_url":"https://avatars.githubusercontent.com/u/277?v=3","gravatar_id":"","url":"https://api.github.com/users/marten","html_url":"https://github.com/marten","followers_url":"https://api.github.com/users/marten/followers","following_url":"https://api.github.com/users/marten/following{/other_user}","gists_url":"https://api.github.com/users/marten/gists{/gist_id}","starred_url":"https://api.github.com/users/marten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marten/subscriptions","organizations_url":"https://api.github.com/users/marten/orgs","repos_url":"https://api.github.com/users/marten/repos","events_url":"https://api.github.com/users/marten/events{/privacy}","received_events_url":"https://api.github.com/users/marten/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-11T12:00:03Z","updated_at":"2016-01-11T12:23:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b83cc65544709245befc28b89fdd6428656b70f8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zooniverse/Panoptes/pulls/1598/commits","review_comments_url":"https://api.github.com/repos/zooniverse/Panoptes/pulls/1598/comments","review_comment_url":"https://api.github.com/repos/zooniverse/Panoptes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zooniverse/Panoptes/issues/1598/comments","statuses_url":"https://api.github.com/repos/zooniverse/Panoptes/statuses/26b17c9dad5d56917051194eeaa06d436d73dcaf","head":{"label":"marten:retirement-route","ref":"retirement-route","sha":"26b17c9dad5d56917051194eeaa06d436d73dcaf","user":{"login":"marten","id":277,"avatar_url":"https://avatars.githubusercontent.com/u/277?v=3","gravatar_id":"","url":"https://api.github.com/users/marten","html_url":"https://github.com/marten","followers_url":"https://api.github.com/users/marten/followers","following_url":"https://api.github.com/users/marten/following{/other_user}","gists_url":"https://api.github.com/users/marten/gists{/gist_id}","starred_url":"https://api.github.com/users/marten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marten/subscriptions","organizations_url":"https://api.github.com/users/marten/orgs","repos_url":"https://api.github.com/users/marten/repos","events_url":"https://api.github.com/users/marten/events{/privacy}","received_events_url":"https://api.github.com/users/marten/received_events","type":"User","site_admin":false},"repo":{"id":37596587,"name":"Panoptes","full_name":"marten/Panoptes","owner":{"login":"marten","id":277,"avatar_url":"https://avatars.githubusercontent.com/u/277?v=3","gravatar_id":"","url":"https://api.github.com/users/marten","html_url":"https://github.com/marten","followers_url":"https://api.github.com/users/marten/followers","following_url":"https://api.github.com/users/marten/following{/other_user}","gists_url":"https://api.github.com/users/marten/gists{/gist_id}","starred_url":"https://api.github.com/users/marten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marten/subscriptions","organizations_url":"https://api.github.com/users/marten/orgs","repos_url":"https://api.github.com/users/marten/repos","events_url":"https://api.github.com/users/marten/events{/privacy}","received_events_url":"https://api.github.com/users/marten/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/marten/Panoptes","description":"It sees everything","fork":true,"url":"https://api.github.com/repos/marten/Panoptes","forks_url":"https://api.github.com/repos/marten/Panoptes/forks","keys_url":"https://api.github.com/repos/marten/Panoptes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marten/Panoptes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marten/Panoptes/teams","hooks_url":"https://api.github.com/repos/marten/Panoptes/hooks","issue_events_url":"https://api.github.com/repos/marten/Panoptes/issues/events{/number}","events_url":"https://api.github.com/repos/marten/Panoptes/events","assignees_url":"https://api.github.com/repos/marten/Panoptes/assignees{/user}","branches_url":"https://api.github.com/repos/marten/Panoptes/branches{/branch}","tags_url":"https://api.github.com/repos/marten/Panoptes/tags","blobs_url":"https://api.github.com/repos/marten/Panoptes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marten/Panoptes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marten/Panoptes/git/refs{/sha}","trees_url":"https://api.github.com/repos/marten/Panoptes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marten/Panoptes/statuses/{sha}","languages_url":"https://api.github.com/repos/marten/Panoptes/languages","stargazers_url":"https://api.github.com/repos/marten/Panoptes/stargazers","contributors_url":"https://api.github.com/repos/marten/Panoptes/contributors","subscribers_url":"https://api.github.com/repos/marten/Panoptes/subscribers","subscription_url":"https://api.github.com/repos/marten/Panoptes/subscription","commits_url":"https://api.github.com/repos/marten/Panoptes/commits{/sha}","git_commits_url":"https://api.github.com/repos/marten/Panoptes/git/commits{/sha}","comments_url":"https://api.github.com/repos/marten/Panoptes/comments{/number}","issue_comment_url":"https://api.github.com/repos/marten/Panoptes/issues/comments{/number}","contents_url":"https://api.github.com/repos/marten/Panoptes/contents/{+path}","compare_url":"https://api.github.com/repos/marten/Panoptes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marten/Panoptes/merges","archive_url":"https://api.github.com/repos/marten/Panoptes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marten/Panoptes/downloads","issues_url":"https://api.github.com/repos/marten/Panoptes/issues{/number}","pulls_url":"https://api.github.com/repos/marten/Panoptes/pulls{/number}","milestones_url":"https://api.github.com/repos/marten/Panoptes/milestones{/number}","notifications_url":"https://api.github.com/repos/marten/Panoptes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marten/Panoptes/labels{/name}","releases_url":"https://api.github.com/repos/marten/Panoptes/releases{/id}","created_at":"2015-06-17T13:29:32Z","updated_at":"2015-10-15T12:46:49Z","pushed_at":"2016-01-11T12:19:00Z","git_url":"git://github.com/marten/Panoptes.git","ssh_url":"git@github.com:marten/Panoptes.git","clone_url":"https://github.com/marten/Panoptes.git","svn_url":"https://github.com/marten/Panoptes","homepage":"","size":4927,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"zooniverse:master","ref":"master","sha":"aeba2a59181ff82cce39f4205007482277441bae","user":{"login":"zooniverse","id":106856,"avatar_url":"https://avatars.githubusercontent.com/u/106856?v=3","gravatar_id":"","url":"https://api.github.com/users/zooniverse","html_url":"https://github.com/zooniverse","followers_url":"https://api.github.com/users/zooniverse/followers","following_url":"https://api.github.com/users/zooniverse/following{/other_user}","gists_url":"https://api.github.com/users/zooniverse/gists{/gist_id}","starred_url":"https://api.github.com/users/zooniverse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zooniverse/subscriptions","organizations_url":"https://api.github.com/users/zooniverse/orgs","repos_url":"https://api.github.com/users/zooniverse/repos","events_url":"https://api.github.com/users/zooniverse/events{/privacy}","received_events_url":"https://api.github.com/users/zooniverse/received_events","type":"Organization","site_admin":false},"repo":{"id":19036577,"name":"Panoptes","full_name":"zooniverse/Panoptes","owner":{"login":"zooniverse","id":106856,"avatar_url":"https://avatars.githubusercontent.com/u/106856?v=3","gravatar_id":"","url":"https://api.github.com/users/zooniverse","html_url":"https://github.com/zooniverse","followers_url":"https://api.github.com/users/zooniverse/followers","following_url":"https://api.github.com/users/zooniverse/following{/other_user}","gists_url":"https://api.github.com/users/zooniverse/gists{/gist_id}","starred_url":"https://api.github.com/users/zooniverse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zooniverse/subscriptions","organizations_url":"https://api.github.com/users/zooniverse/orgs","repos_url":"https://api.github.com/users/zooniverse/repos","events_url":"https://api.github.com/users/zooniverse/events{/privacy}","received_events_url":"https://api.github.com/users/zooniverse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zooniverse/Panoptes","description":"It sees everything","fork":false,"url":"https://api.github.com/repos/zooniverse/Panoptes","forks_url":"https://api.github.com/repos/zooniverse/Panoptes/forks","keys_url":"https://api.github.com/repos/zooniverse/Panoptes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zooniverse/Panoptes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zooniverse/Panoptes/teams","hooks_url":"https://api.github.com/repos/zooniverse/Panoptes/hooks","issue_events_url":"https://api.github.com/repos/zooniverse/Panoptes/issues/events{/number}","events_url":"https://api.github.com/repos/zooniverse/Panoptes/events","assignees_url":"https://api.github.com/repos/zooniverse/Panoptes/assignees{/user}","branches_url":"https://api.github.com/repos/zooniverse/Panoptes/branches{/branch}","tags_url":"https://api.github.com/repos/zooniverse/Panoptes/tags","blobs_url":"https://api.github.com/repos/zooniverse/Panoptes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zooniverse/Panoptes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zooniverse/Panoptes/git/refs{/sha}","trees_url":"https://api.github.com/repos/zooniverse/Panoptes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zooniverse/Panoptes/statuses/{sha}","languages_url":"https://api.github.com/repos/zooniverse/Panoptes/languages","stargazers_url":"https://api.github.com/repos/zooniverse/Panoptes/stargazers","contributors_url":"https://api.github.com/repos/zooniverse/Panoptes/contributors","subscribers_url":"https://api.github.com/repos/zooniverse/Panoptes/subscribers","subscription_url":"https://api.github.com/repos/zooniverse/Panoptes/subscription","commits_url":"https://api.github.com/repos/zooniverse/Panoptes/commits{/sha}","git_commits_url":"https://api.github.com/repos/zooniverse/Panoptes/git/commits{/sha}","comments_url":"https://api.github.com/repos/zooniverse/Panoptes/comments{/number}","issue_comment_url":"https://api.github.com/repos/zooniverse/Panoptes/issues/comments{/number}","contents_url":"https://api.github.com/repos/zooniverse/Panoptes/contents/{+path}","compare_url":"https://api.github.com/repos/zooniverse/Panoptes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zooniverse/Panoptes/merges","archive_url":"https://api.github.com/repos/zooniverse/Panoptes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zooniverse/Panoptes/downloads","issues_url":"https://api.github.com/repos/zooniverse/Panoptes/issues{/number}","pulls_url":"https://api.github.com/repos/zooniverse/Panoptes/pulls{/number}","milestones_url":"https://api.github.com/repos/zooniverse/Panoptes/milestones{/number}","notifications_url":"https://api.github.com/repos/zooniverse/Panoptes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zooniverse/Panoptes/labels{/name}","releases_url":"https://api.github.com/repos/zooniverse/Panoptes/releases{/id}","created_at":"2014-04-22T16:16:02Z","updated_at":"2015-11-15T05:38:54Z","pushed_at":"2016-01-11T12:19:00Z","git_url":"git://github.com/zooniverse/Panoptes.git","ssh_url":"git@github.com:zooniverse/Panoptes.git","clone_url":"https://github.com/zooniverse/Panoptes.git","svn_url":"https://github.com/zooniverse/Panoptes","homepage":"","size":5156,"stargazers_count":38,"watchers_count":38,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":90,"forks":18,"open_issues":90,"watchers":38,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zooniverse/Panoptes/pulls/1598"},"html":{"href":"https://github.com/zooniverse/Panoptes/pull/1598"},"issue":{"href":"https://api.github.com/repos/zooniverse/Panoptes/issues/1598"},"comments":{"href":"https://api.github.com/repos/zooniverse/Panoptes/issues/1598/comments"},"review_comments":{"href":"https://api.github.com/repos/zooniverse/Panoptes/pulls/1598/comments"},"review_comment":{"href":"https://api.github.com/repos/zooniverse/Panoptes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zooniverse/Panoptes/pulls/1598/commits"},"statuses":{"href":"https://api.github.com/repos/zooniverse/Panoptes/statuses/26b17c9dad5d56917051194eeaa06d436d73dcaf"}}}}