{"action":"created","comment":{"url":"https://api.github.com/repos/zooniverse/Panoptes/pulls/comments/89765189","pull_request_review_id":10299139,"id":89765189,"diff_hunk":"@@ -318,4 +318,20 @@ def no_other_logins_exist?(login)\n   def uploaded_subjects_count\n     Subject.unscoped.where(upload_user_id: self.id).count\n   end\n+\n+  def anonymize\n+    self.email = \"noreply-#{SecureRandom.hex(4)}@zooniverse.org\"\n+    self.current_sign_in_ip = nil\n+    self.last_sign_in_ip = nil\n+    self.display_name = self.id","path":"app/models/user.rb","position":9,"original_position":9,"commit_id":"3e97de094847e46fcf8f594fac01d64d7f7c13f0","original_commit_id":"3e97de094847e46fcf8f594fac01d64d7f7c13f0","user":{"login":"astopy","id":428423,"avatar_url":"https://avatars.githubusercontent.com/u/428423?v=3","gravatar_id":"","url":"https://api.github.com/users/astopy","html_url":"https://github.com/astopy","followers_url":"https://api.github.com/users/astopy/followers","following_url":"https://api.github.com/users/astopy/following{/other_user}","gists_url":"https://api.github.com/users/astopy/gists{/gist_id}","starred_url":"https://api.github.com/users/astopy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astopy/subscriptions","organizations_url":"https://api.github.com/users/astopy/orgs","repos_url":"https://api.github.com/users/astopy/repos","events_url":"https://api.github.com/users/astopy/events{/privacy}","received_events_url":"https://api.github.com/users/astopy/received_events","type":"User","site_admin":false},"body":"This might be visible publicly in some places, so I wonder if something like `\"Deleted user #{self.id}\"` would be better.","created_at":"2016-11-28T11:44:39Z","updated_at":"2016-11-28T11:45:44Z","html_url":"https://github.com/zooniverse/Panoptes/pull/2062#discussion_r89765189","pull_request_url":"https://api.github.com/repos/zooniverse/Panoptes/pulls/2062","_links":{"self":{"href":"https://api.github.com/repos/zooniverse/Panoptes/pulls/comments/89765189"},"html":{"href":"https://github.com/zooniverse/Panoptes/pull/2062#discussion_r89765189"},"pull_request":{"href":"https://api.github.com/repos/zooniverse/Panoptes/pulls/2062"}}},"pull_request":{"url":"https://api.github.com/repos/zooniverse/Panoptes/pulls/2062","id":95481288,"html_url":"https://github.com/zooniverse/Panoptes/pull/2062","diff_url":"https://github.com/zooniverse/Panoptes/pull/2062.diff","patch_url":"https://github.com/zooniverse/Panoptes/pull/2062.patch","issue_url":"https://api.github.com/repos/zooniverse/Panoptes/issues/2062","number":2062,"state":"open","locked":false,"title":"Add function to respond to user removal requests","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":"Can someone sanity-check if there might be more places we need to strip information?\r\n","created_at":"2016-11-28T11:27:49Z","updated_at":"2016-11-28T11:45:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a5c668704715b3ab7da192afed0b9098c9bddab8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/zooniverse/Panoptes/pulls/2062/commits","review_comments_url":"https://api.github.com/repos/zooniverse/Panoptes/pulls/2062/comments","review_comment_url":"https://api.github.com/repos/zooniverse/Panoptes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zooniverse/Panoptes/issues/2062/comments","statuses_url":"https://api.github.com/repos/zooniverse/Panoptes/statuses/3e97de094847e46fcf8f594fac01d64d7f7c13f0","head":{"label":"marten:remove-users","ref":"remove-users","sha":"3e97de094847e46fcf8f594fac01d64d7f7c13f0","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}","deployments_url":"https://api.github.com/repos/marten/Panoptes/deployments","created_at":"2015-06-17T13:29:32Z","updated_at":"2015-10-15T12:46:49Z","pushed_at":"2016-11-28T11:26: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":6155,"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":"904fa633302328fa040465a5289e2170733bd38b","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}","deployments_url":"https://api.github.com/repos/zooniverse/Panoptes/deployments","created_at":"2014-04-22T16:16:02Z","updated_at":"2016-11-27T19:56:57Z","pushed_at":"2016-11-28T11:27:49Z","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":6752,"stargazers_count":54,"watchers_count":54,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":27,"mirror_url":null,"open_issues_count":116,"forks":27,"open_issues":116,"watchers":54,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zooniverse/Panoptes/pulls/2062"},"html":{"href":"https://github.com/zooniverse/Panoptes/pull/2062"},"issue":{"href":"https://api.github.com/repos/zooniverse/Panoptes/issues/2062"},"comments":{"href":"https://api.github.com/repos/zooniverse/Panoptes/issues/2062/comments"},"review_comments":{"href":"https://api.github.com/repos/zooniverse/Panoptes/pulls/2062/comments"},"review_comment":{"href":"https://api.github.com/repos/zooniverse/Panoptes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zooniverse/Panoptes/pulls/2062/commits"},"statuses":{"href":"https://api.github.com/repos/zooniverse/Panoptes/statuses/3e97de094847e46fcf8f594fac01d64d7f7c13f0"}}}}
{"actor":{"display_login":"astopy"}}