{"action":"created","comment":{"url":"https://api.github.com/repos/otwcode/otwarchive/pulls/comments/82717895","pull_request_review_id":3604842,"id":82717895,"diff_hunk":"@@ -46,6 +46,35 @@ def check_account_creation_status\n     end\n   end\n \n+  # Run a set of corrections on a user\n+  def check\n+    unless logged_in_as_admin?","path":"app/controllers/users_controller.rb","position":15,"original_position":15,"commit_id":"aacf5857899083ad5b3691e15c1b118fe58f0309","original_commit_id":"aacf5857899083ad5b3691e15c1b118fe58f0309","user":{"login":"sarken","id":907055,"avatar_url":"https://avatars.githubusercontent.com/u/907055?v=3","gravatar_id":"","url":"https://api.github.com/users/sarken","html_url":"https://github.com/sarken","followers_url":"https://api.github.com/users/sarken/followers","following_url":"https://api.github.com/users/sarken/following{/other_user}","gists_url":"https://api.github.com/users/sarken/gists{/gist_id}","starred_url":"https://api.github.com/users/sarken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarken/subscriptions","organizations_url":"https://api.github.com/users/sarken/orgs","repos_url":"https://api.github.com/users/sarken/repos","events_url":"https://api.github.com/users/sarken/events{/privacy}","received_events_url":"https://api.github.com/users/sarken/received_events","type":"User","site_admin":false},"body":"Should all of this code be in the admin_users_controller instead? https://github.com/otwcode/otwarchive/blob/master/app/controllers/admin/admin_users_controller.rb ","created_at":"2016-10-11T03:02:46Z","updated_at":"2016-10-11T03:02:55Z","html_url":"https://github.com/otwcode/otwarchive/pull/2571#discussion_r82717895","pull_request_url":"https://api.github.com/repos/otwcode/otwarchive/pulls/2571","_links":{"self":{"href":"https://api.github.com/repos/otwcode/otwarchive/pulls/comments/82717895"},"html":{"href":"https://github.com/otwcode/otwarchive/pull/2571#discussion_r82717895"},"pull_request":{"href":"https://api.github.com/repos/otwcode/otwarchive/pulls/2571"}}},"pull_request":{"url":"https://api.github.com/repos/otwcode/otwarchive/pulls/2571","id":88583703,"html_url":"https://github.com/otwcode/otwarchive/pull/2571","diff_url":"https://github.com/otwcode/otwarchive/pull/2571.diff","patch_url":"https://github.com/otwcode/otwarchive/pull/2571.patch","issue_url":"https://api.github.com/repos/otwcode/otwarchive/issues/2571","number":2571,"state":"open","locked":false,"title":"AO3-4669 Button to fix common issues with users accounts","user":{"login":"zz9pzza","id":1606304,"avatar_url":"https://avatars.githubusercontent.com/u/1606304?v=3","gravatar_id":"","url":"https://api.github.com/users/zz9pzza","html_url":"https://github.com/zz9pzza","followers_url":"https://api.github.com/users/zz9pzza/followers","following_url":"https://api.github.com/users/zz9pzza/following{/other_user}","gists_url":"https://api.github.com/users/zz9pzza/gists{/gist_id}","starred_url":"https://api.github.com/users/zz9pzza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zz9pzza/subscriptions","organizations_url":"https://api.github.com/users/zz9pzza/orgs","repos_url":"https://api.github.com/users/zz9pzza/repos","events_url":"https://api.github.com/users/zz9pzza/events{/privacy}","received_events_url":"https://api.github.com/users/zz9pzza/received_events","type":"User","site_admin":false},"body":"# Pull Request Checklist\r\n\r\n* [x] Have you read [How to write the perfect pull request](https://github.com/blog/1943-how-to-write-the-perfect-pull-request)?\r\n* [x] Have you read through the [contributor guidelines](https://github.com/otwcode/otwarchive/blob/master/CONTRIBUTING.md)?\r\n* [ ] Have you added tests for any changed functionality?\r\n* [x] Have you added the JIRA issue number as the *first* thing in your pull request title (eg: `AO3-1234 Fix thing`)\r\n* [x] Have you updated the JIRA issue with the information below?\r\n\r\n## Issue\r\n\r\nhttps://otwarchive.atlassian.net/browse/AO3-4669\r\n\r\n## Purpose\r\n\r\nThis should fix some common issues with users. \r\n\r\nSubscription Page 500\r\nStats Page 500\r\nReindexing a User's Works\r\nReindexing a User's Bookmarks\r\n\r\n## Testing\r\n\r\nSome of this is going to be hard to test like works or bookmarks not being indexed. But I could find a user with a broken subscription and see if this fixes it for them.\r\n","created_at":"2016-10-09T15:17:08Z","updated_at":"2016-10-11T03:02:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4a6ac3ec8c2d05a825c62197d3680995bc83ac8c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/otwcode/otwarchive/pulls/2571/commits","review_comments_url":"https://api.github.com/repos/otwcode/otwarchive/pulls/2571/comments","review_comment_url":"https://api.github.com/repos/otwcode/otwarchive/pulls/comments{/number}","comments_url":"https://api.github.com/repos/otwcode/otwarchive/issues/2571/comments","statuses_url":"https://api.github.com/repos/otwcode/otwarchive/statuses/aacf5857899083ad5b3691e15c1b118fe58f0309","head":{"label":"zz9pzza:AO3-4669","ref":"AO3-4669","sha":"aacf5857899083ad5b3691e15c1b118fe58f0309","user":{"login":"zz9pzza","id":1606304,"avatar_url":"https://avatars.githubusercontent.com/u/1606304?v=3","gravatar_id":"","url":"https://api.github.com/users/zz9pzza","html_url":"https://github.com/zz9pzza","followers_url":"https://api.github.com/users/zz9pzza/followers","following_url":"https://api.github.com/users/zz9pzza/following{/other_user}","gists_url":"https://api.github.com/users/zz9pzza/gists{/gist_id}","starred_url":"https://api.github.com/users/zz9pzza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zz9pzza/subscriptions","organizations_url":"https://api.github.com/users/zz9pzza/orgs","repos_url":"https://api.github.com/users/zz9pzza/repos","events_url":"https://api.github.com/users/zz9pzza/events{/privacy}","received_events_url":"https://api.github.com/users/zz9pzza/received_events","type":"User","site_admin":false},"repo":{"id":5325884,"name":"otwarchive","full_name":"zz9pzza/otwarchive","owner":{"login":"zz9pzza","id":1606304,"avatar_url":"https://avatars.githubusercontent.com/u/1606304?v=3","gravatar_id":"","url":"https://api.github.com/users/zz9pzza","html_url":"https://github.com/zz9pzza","followers_url":"https://api.github.com/users/zz9pzza/followers","following_url":"https://api.github.com/users/zz9pzza/following{/other_user}","gists_url":"https://api.github.com/users/zz9pzza/gists{/gist_id}","starred_url":"https://api.github.com/users/zz9pzza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zz9pzza/subscriptions","organizations_url":"https://api.github.com/users/zz9pzza/orgs","repos_url":"https://api.github.com/users/zz9pzza/repos","events_url":"https://api.github.com/users/zz9pzza/events{/privacy}","received_events_url":"https://api.github.com/users/zz9pzza/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zz9pzza/otwarchive","description":"The Organization for Transformative Works (OTW) - Archive Of Our Own (AO3) Project","fork":true,"url":"https://api.github.com/repos/zz9pzza/otwarchive","forks_url":"https://api.github.com/repos/zz9pzza/otwarchive/forks","keys_url":"https://api.github.com/repos/zz9pzza/otwarchive/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zz9pzza/otwarchive/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zz9pzza/otwarchive/teams","hooks_url":"https://api.github.com/repos/zz9pzza/otwarchive/hooks","issue_events_url":"https://api.github.com/repos/zz9pzza/otwarchive/issues/events{/number}","events_url":"https://api.github.com/repos/zz9pzza/otwarchive/events","assignees_url":"https://api.github.com/repos/zz9pzza/otwarchive/assignees{/user}","branches_url":"https://api.github.com/repos/zz9pzza/otwarchive/branches{/branch}","tags_url":"https://api.github.com/repos/zz9pzza/otwarchive/tags","blobs_url":"https://api.github.com/repos/zz9pzza/otwarchive/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zz9pzza/otwarchive/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zz9pzza/otwarchive/git/refs{/sha}","trees_url":"https://api.github.com/repos/zz9pzza/otwarchive/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zz9pzza/otwarchive/statuses/{sha}","languages_url":"https://api.github.com/repos/zz9pzza/otwarchive/languages","stargazers_url":"https://api.github.com/repos/zz9pzza/otwarchive/stargazers","contributors_url":"https://api.github.com/repos/zz9pzza/otwarchive/contributors","subscribers_url":"https://api.github.com/repos/zz9pzza/otwarchive/subscribers","subscription_url":"https://api.github.com/repos/zz9pzza/otwarchive/subscription","commits_url":"https://api.github.com/repos/zz9pzza/otwarchive/commits{/sha}","git_commits_url":"https://api.github.com/repos/zz9pzza/otwarchive/git/commits{/sha}","comments_url":"https://api.github.com/repos/zz9pzza/otwarchive/comments{/number}","issue_comment_url":"https://api.github.com/repos/zz9pzza/otwarchive/issues/comments{/number}","contents_url":"https://api.github.com/repos/zz9pzza/otwarchive/contents/{+path}","compare_url":"https://api.github.com/repos/zz9pzza/otwarchive/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zz9pzza/otwarchive/merges","archive_url":"https://api.github.com/repos/zz9pzza/otwarchive/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zz9pzza/otwarchive/downloads","issues_url":"https://api.github.com/repos/zz9pzza/otwarchive/issues{/number}","pulls_url":"https://api.github.com/repos/zz9pzza/otwarchive/pulls{/number}","milestones_url":"https://api.github.com/repos/zz9pzza/otwarchive/milestones{/number}","notifications_url":"https://api.github.com/repos/zz9pzza/otwarchive/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zz9pzza/otwarchive/labels{/name}","releases_url":"https://api.github.com/repos/zz9pzza/otwarchive/releases{/id}","deployments_url":"https://api.github.com/repos/zz9pzza/otwarchive/deployments","created_at":"2012-08-07T09:13:15Z","updated_at":"2015-05-08T17:08:36Z","pushed_at":"2016-10-09T21:59:27Z","git_url":"git://github.com/zz9pzza/otwarchive.git","ssh_url":"git@github.com:zz9pzza/otwarchive.git","clone_url":"https://github.com/zz9pzza/otwarchive.git","svn_url":"https://github.com/zz9pzza/otwarchive","homepage":"http://transformativeworks.org/projects/archive","size":52391,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"base":{"label":"otwcode:master","ref":"master","sha":"ccb63b5e94ac3a3dc6b4ecec80c23afac20ca3af","user":{"login":"otwcode","id":408606,"avatar_url":"https://avatars.githubusercontent.com/u/408606?v=3","gravatar_id":"","url":"https://api.github.com/users/otwcode","html_url":"https://github.com/otwcode","followers_url":"https://api.github.com/users/otwcode/followers","following_url":"https://api.github.com/users/otwcode/following{/other_user}","gists_url":"https://api.github.com/users/otwcode/gists{/gist_id}","starred_url":"https://api.github.com/users/otwcode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/otwcode/subscriptions","organizations_url":"https://api.github.com/users/otwcode/orgs","repos_url":"https://api.github.com/users/otwcode/repos","events_url":"https://api.github.com/users/otwcode/events{/privacy}","received_events_url":"https://api.github.com/users/otwcode/received_events","type":"Organization","site_admin":false},"repo":{"id":1338040,"name":"otwarchive","full_name":"otwcode/otwarchive","owner":{"login":"otwcode","id":408606,"avatar_url":"https://avatars.githubusercontent.com/u/408606?v=3","gravatar_id":"","url":"https://api.github.com/users/otwcode","html_url":"https://github.com/otwcode","followers_url":"https://api.github.com/users/otwcode/followers","following_url":"https://api.github.com/users/otwcode/following{/other_user}","gists_url":"https://api.github.com/users/otwcode/gists{/gist_id}","starred_url":"https://api.github.com/users/otwcode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/otwcode/subscriptions","organizations_url":"https://api.github.com/users/otwcode/orgs","repos_url":"https://api.github.com/users/otwcode/repos","events_url":"https://api.github.com/users/otwcode/events{/privacy}","received_events_url":"https://api.github.com/users/otwcode/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/otwcode/otwarchive","description":"The Organization for Transformative Works (OTW) - Archive Of Our Own (AO3) Project","fork":false,"url":"https://api.github.com/repos/otwcode/otwarchive","forks_url":"https://api.github.com/repos/otwcode/otwarchive/forks","keys_url":"https://api.github.com/repos/otwcode/otwarchive/keys{/key_id}","collaborators_url":"https://api.github.com/repos/otwcode/otwarchive/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/otwcode/otwarchive/teams","hooks_url":"https://api.github.com/repos/otwcode/otwarchive/hooks","issue_events_url":"https://api.github.com/repos/otwcode/otwarchive/issues/events{/number}","events_url":"https://api.github.com/repos/otwcode/otwarchive/events","assignees_url":"https://api.github.com/repos/otwcode/otwarchive/assignees{/user}","branches_url":"https://api.github.com/repos/otwcode/otwarchive/branches{/branch}","tags_url":"https://api.github.com/repos/otwcode/otwarchive/tags","blobs_url":"https://api.github.com/repos/otwcode/otwarchive/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/otwcode/otwarchive/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/otwcode/otwarchive/git/refs{/sha}","trees_url":"https://api.github.com/repos/otwcode/otwarchive/git/trees{/sha}","statuses_url":"https://api.github.com/repos/otwcode/otwarchive/statuses/{sha}","languages_url":"https://api.github.com/repos/otwcode/otwarchive/languages","stargazers_url":"https://api.github.com/repos/otwcode/otwarchive/stargazers","contributors_url":"https://api.github.com/repos/otwcode/otwarchive/contributors","subscribers_url":"https://api.github.com/repos/otwcode/otwarchive/subscribers","subscription_url":"https://api.github.com/repos/otwcode/otwarchive/subscription","commits_url":"https://api.github.com/repos/otwcode/otwarchive/commits{/sha}","git_commits_url":"https://api.github.com/repos/otwcode/otwarchive/git/commits{/sha}","comments_url":"https://api.github.com/repos/otwcode/otwarchive/comments{/number}","issue_comment_url":"https://api.github.com/repos/otwcode/otwarchive/issues/comments{/number}","contents_url":"https://api.github.com/repos/otwcode/otwarchive/contents/{+path}","compare_url":"https://api.github.com/repos/otwcode/otwarchive/compare/{base}...{head}","merges_url":"https://api.github.com/repos/otwcode/otwarchive/merges","archive_url":"https://api.github.com/repos/otwcode/otwarchive/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/otwcode/otwarchive/downloads","issues_url":"https://api.github.com/repos/otwcode/otwarchive/issues{/number}","pulls_url":"https://api.github.com/repos/otwcode/otwarchive/pulls{/number}","milestones_url":"https://api.github.com/repos/otwcode/otwarchive/milestones{/number}","notifications_url":"https://api.github.com/repos/otwcode/otwarchive/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/otwcode/otwarchive/labels{/name}","releases_url":"https://api.github.com/repos/otwcode/otwarchive/releases{/id}","deployments_url":"https://api.github.com/repos/otwcode/otwarchive/deployments","created_at":"2011-02-07T14:50:58Z","updated_at":"2016-09-27T17:50:22Z","pushed_at":"2016-10-10T21:36:49Z","git_url":"git://github.com/otwcode/otwarchive.git","ssh_url":"git@github.com:otwcode/otwarchive.git","clone_url":"https://github.com/otwcode/otwarchive.git","svn_url":"https://github.com/otwcode/otwarchive","homepage":"http://transformativeworks.org/projects/archive","size":71014,"stargazers_count":214,"watchers_count":214,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":126,"mirror_url":null,"open_issues_count":40,"forks":126,"open_issues":40,"watchers":214,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/otwcode/otwarchive/pulls/2571"},"html":{"href":"https://github.com/otwcode/otwarchive/pull/2571"},"issue":{"href":"https://api.github.com/repos/otwcode/otwarchive/issues/2571"},"comments":{"href":"https://api.github.com/repos/otwcode/otwarchive/issues/2571/comments"},"review_comments":{"href":"https://api.github.com/repos/otwcode/otwarchive/pulls/2571/comments"},"review_comment":{"href":"https://api.github.com/repos/otwcode/otwarchive/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/otwcode/otwarchive/pulls/2571/commits"},"statuses":{"href":"https://api.github.com/repos/otwcode/otwarchive/statuses/aacf5857899083ad5b3691e15c1b118fe58f0309"}}}}
{"actor":{"display_login":"sarken"}}