{"action":"created","comment":{"url":"https://api.github.com/repos/edx/django-wiki/pulls/comments/185582030","pull_request_review_id":117000626,"id":185582030,"diff_hunk":"@@ -216,6 +215,16 @@ def save(self, *args, **kwargs):\n             self.plugin.current_revision = self\n             self.plugin.save()\n \n+    @classmethod\n+    def retire_user(cls, user):\n+        \"\"\"\n+        Updates a user record as a part of GDPR Phase II\n+        :param user (obj)\n+        :return: bool\n+        \"\"\"\n+        retired_users = cls.objects.filter(user=user).update(ip_address='')\n+        return retired_users > 0","path":"wiki/models/pluginbase.py","position":22,"original_position":22,"commit_id":"bc22da00dbf0f19ffbbe9a5b7b5706c1d1cbf7e6","original_commit_id":"bc22da00dbf0f19ffbbe9a5b7b5706c1d1cbf7e6","user":{"login":"yro","id":7050866,"avatar_url":"https://avatars1.githubusercontent.com/u/7050866?v=4","gravatar_id":"","url":"https://api.github.com/users/yro","html_url":"https://github.com/yro","followers_url":"https://api.github.com/users/yro/followers","following_url":"https://api.github.com/users/yro/following{/other_user}","gists_url":"https://api.github.com/users/yro/gists{/gist_id}","starred_url":"https://api.github.com/users/yro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yro/subscriptions","organizations_url":"https://api.github.com/users/yro/orgs","repos_url":"https://api.github.com/users/yro/repos","events_url":"https://api.github.com/users/yro/events{/privacy}","received_events_url":"https://api.github.com/users/yro/received_events","type":"User","site_admin":false},"body":"Sure. ","created_at":"2018-05-02T17:49:29Z","updated_at":"2018-05-02T17:49:29Z","html_url":"https://github.com/edx/django-wiki/pull/35#discussion_r185582030","pull_request_url":"https://api.github.com/repos/edx/django-wiki/pulls/35","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/edx/django-wiki/pulls/comments/185582030"},"html":{"href":"https://github.com/edx/django-wiki/pull/35#discussion_r185582030"},"pull_request":{"href":"https://api.github.com/repos/edx/django-wiki/pulls/35"}},"in_reply_to_id":185550235},"pull_request":{"url":"https://api.github.com/repos/edx/django-wiki/pulls/35","id":185041199,"html_url":"https://github.com/edx/django-wiki/pull/35","diff_url":"https://github.com/edx/django-wiki/pull/35.diff","patch_url":"https://github.com/edx/django-wiki/pull/35.patch","issue_url":"https://api.github.com/repos/edx/django-wiki/issues/35","number":35,"state":"open","locked":false,"title":"Retire User from RevisionPluginRevision","user":{"login":"yro","id":7050866,"avatar_url":"https://avatars1.githubusercontent.com/u/7050866?v=4","gravatar_id":"","url":"https://api.github.com/users/yro","html_url":"https://github.com/yro","followers_url":"https://api.github.com/users/yro/followers","following_url":"https://api.github.com/users/yro/following{/other_user}","gists_url":"https://api.github.com/users/yro/gists{/gist_id}","starred_url":"https://api.github.com/users/yro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yro/subscriptions","organizations_url":"https://api.github.com/users/yro/orgs","repos_url":"https://api.github.com/users/yro/repos","events_url":"https://api.github.com/users/yro/events{/privacy}","received_events_url":"https://api.github.com/users/yro/received_events","type":"User","site_admin":false},"body":"## [EDUCATOR-2702](https://openedx.atlassian.net/browse/EDUCATOR-2702)\r\n\r\n### Description\r\nAdd a class method to blank out `ip_address` field for user on `RevisionPluginRevision` model class. (will piggyback onto 0.0.18 release from https://github.com/edx/django-wiki/pull/34)\r\n\r\n### Testing\r\nThis lib appears to lack unit tests. This will be unit tested on the LMS side and manually before launch.\r\n\r\n### Reviewers\r\nIf you've been tagged for review, please check your corresponding box once you've given the :+1:.\r\n- [ ] Code review: @schenedx  \r\n\r\nFYI: @edx/educator-neem \r\n\r\n### Post-review\r\n- [ ] Rebase and squash commits\r\n","created_at":"2018-04-30T19:22:15Z","updated_at":"2018-05-02T17:49:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"30c785f9f48ba66ca138748d28b3261f1bd4e078","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/edx/django-wiki/pulls/35/commits","review_comments_url":"https://api.github.com/repos/edx/django-wiki/pulls/35/comments","review_comment_url":"https://api.github.com/repos/edx/django-wiki/pulls/comments{/number}","comments_url":"https://api.github.com/repos/edx/django-wiki/issues/35/comments","statuses_url":"https://api.github.com/repos/edx/django-wiki/statuses/bc22da00dbf0f19ffbbe9a5b7b5706c1d1cbf7e6","head":{"label":"edx:yro/EDUCATOR-2702","ref":"yro/EDUCATOR-2702","sha":"bc22da00dbf0f19ffbbe9a5b7b5706c1d1cbf7e6","user":{"login":"edx","id":3179841,"avatar_url":"https://avatars3.githubusercontent.com/u/3179841?v=4","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"repo":{"id":5552757,"name":"django-wiki","full_name":"edx/django-wiki","owner":{"login":"edx","id":3179841,"avatar_url":"https://avatars3.githubusercontent.com/u/3179841?v=4","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/edx/django-wiki","description":"A wiki system with complex functionality for simple integration and a superb interface. Store your knowledge with style: Use django models.","fork":true,"url":"https://api.github.com/repos/edx/django-wiki","forks_url":"https://api.github.com/repos/edx/django-wiki/forks","keys_url":"https://api.github.com/repos/edx/django-wiki/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edx/django-wiki/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edx/django-wiki/teams","hooks_url":"https://api.github.com/repos/edx/django-wiki/hooks","issue_events_url":"https://api.github.com/repos/edx/django-wiki/issues/events{/number}","events_url":"https://api.github.com/repos/edx/django-wiki/events","assignees_url":"https://api.github.com/repos/edx/django-wiki/assignees{/user}","branches_url":"https://api.github.com/repos/edx/django-wiki/branches{/branch}","tags_url":"https://api.github.com/repos/edx/django-wiki/tags","blobs_url":"https://api.github.com/repos/edx/django-wiki/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edx/django-wiki/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edx/django-wiki/git/refs{/sha}","trees_url":"https://api.github.com/repos/edx/django-wiki/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edx/django-wiki/statuses/{sha}","languages_url":"https://api.github.com/repos/edx/django-wiki/languages","stargazers_url":"https://api.github.com/repos/edx/django-wiki/stargazers","contributors_url":"https://api.github.com/repos/edx/django-wiki/contributors","subscribers_url":"https://api.github.com/repos/edx/django-wiki/subscribers","subscription_url":"https://api.github.com/repos/edx/django-wiki/subscription","commits_url":"https://api.github.com/repos/edx/django-wiki/commits{/sha}","git_commits_url":"https://api.github.com/repos/edx/django-wiki/git/commits{/sha}","comments_url":"https://api.github.com/repos/edx/django-wiki/comments{/number}","issue_comment_url":"https://api.github.com/repos/edx/django-wiki/issues/comments{/number}","contents_url":"https://api.github.com/repos/edx/django-wiki/contents/{+path}","compare_url":"https://api.github.com/repos/edx/django-wiki/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edx/django-wiki/merges","archive_url":"https://api.github.com/repos/edx/django-wiki/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edx/django-wiki/downloads","issues_url":"https://api.github.com/repos/edx/django-wiki/issues{/number}","pulls_url":"https://api.github.com/repos/edx/django-wiki/pulls{/number}","milestones_url":"https://api.github.com/repos/edx/django-wiki/milestones{/number}","notifications_url":"https://api.github.com/repos/edx/django-wiki/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edx/django-wiki/labels{/name}","releases_url":"https://api.github.com/repos/edx/django-wiki/releases{/id}","deployments_url":"https://api.github.com/repos/edx/django-wiki/deployments","created_at":"2012-08-25T16:00:34Z","updated_at":"2017-06-04T23:27:49Z","pushed_at":"2018-04-30T20:07:50Z","git_url":"git://github.com/edx/django-wiki.git","ssh_url":"git@github.com:edx/django-wiki.git","clone_url":"https://github.com/edx/django-wiki.git","svn_url":"https://github.com/edx/django-wiki","homepage":"","size":4139,"stargazers_count":7,"watchers_count":7,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":20,"open_issues":1,"watchers":7,"default_branch":"master"}},"base":{"label":"edx:edx_release","ref":"edx_release","sha":"a6bd51e45f203f8597bdb105ae2ccd7926867ad1","user":{"login":"edx","id":3179841,"avatar_url":"https://avatars3.githubusercontent.com/u/3179841?v=4","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"repo":{"id":5552757,"name":"django-wiki","full_name":"edx/django-wiki","owner":{"login":"edx","id":3179841,"avatar_url":"https://avatars3.githubusercontent.com/u/3179841?v=4","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/edx/django-wiki","description":"A wiki system with complex functionality for simple integration and a superb interface. Store your knowledge with style: Use django models.","fork":true,"url":"https://api.github.com/repos/edx/django-wiki","forks_url":"https://api.github.com/repos/edx/django-wiki/forks","keys_url":"https://api.github.com/repos/edx/django-wiki/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edx/django-wiki/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edx/django-wiki/teams","hooks_url":"https://api.github.com/repos/edx/django-wiki/hooks","issue_events_url":"https://api.github.com/repos/edx/django-wiki/issues/events{/number}","events_url":"https://api.github.com/repos/edx/django-wiki/events","assignees_url":"https://api.github.com/repos/edx/django-wiki/assignees{/user}","branches_url":"https://api.github.com/repos/edx/django-wiki/branches{/branch}","tags_url":"https://api.github.com/repos/edx/django-wiki/tags","blobs_url":"https://api.github.com/repos/edx/django-wiki/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edx/django-wiki/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edx/django-wiki/git/refs{/sha}","trees_url":"https://api.github.com/repos/edx/django-wiki/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edx/django-wiki/statuses/{sha}","languages_url":"https://api.github.com/repos/edx/django-wiki/languages","stargazers_url":"https://api.github.com/repos/edx/django-wiki/stargazers","contributors_url":"https://api.github.com/repos/edx/django-wiki/contributors","subscribers_url":"https://api.github.com/repos/edx/django-wiki/subscribers","subscription_url":"https://api.github.com/repos/edx/django-wiki/subscription","commits_url":"https://api.github.com/repos/edx/django-wiki/commits{/sha}","git_commits_url":"https://api.github.com/repos/edx/django-wiki/git/commits{/sha}","comments_url":"https://api.github.com/repos/edx/django-wiki/comments{/number}","issue_comment_url":"https://api.github.com/repos/edx/django-wiki/issues/comments{/number}","contents_url":"https://api.github.com/repos/edx/django-wiki/contents/{+path}","compare_url":"https://api.github.com/repos/edx/django-wiki/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edx/django-wiki/merges","archive_url":"https://api.github.com/repos/edx/django-wiki/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edx/django-wiki/downloads","issues_url":"https://api.github.com/repos/edx/django-wiki/issues{/number}","pulls_url":"https://api.github.com/repos/edx/django-wiki/pulls{/number}","milestones_url":"https://api.github.com/repos/edx/django-wiki/milestones{/number}","notifications_url":"https://api.github.com/repos/edx/django-wiki/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edx/django-wiki/labels{/name}","releases_url":"https://api.github.com/repos/edx/django-wiki/releases{/id}","deployments_url":"https://api.github.com/repos/edx/django-wiki/deployments","created_at":"2012-08-25T16:00:34Z","updated_at":"2017-06-04T23:27:49Z","pushed_at":"2018-04-30T20:07:50Z","git_url":"git://github.com/edx/django-wiki.git","ssh_url":"git@github.com:edx/django-wiki.git","clone_url":"https://github.com/edx/django-wiki.git","svn_url":"https://github.com/edx/django-wiki","homepage":"","size":4139,"stargazers_count":7,"watchers_count":7,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":20,"open_issues":1,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/edx/django-wiki/pulls/35"},"html":{"href":"https://github.com/edx/django-wiki/pull/35"},"issue":{"href":"https://api.github.com/repos/edx/django-wiki/issues/35"},"comments":{"href":"https://api.github.com/repos/edx/django-wiki/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/edx/django-wiki/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/edx/django-wiki/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/edx/django-wiki/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/edx/django-wiki/statuses/bc22da00dbf0f19ffbbe9a5b7b5706c1d1cbf7e6"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"yro"}}