{"action":"created","comment":{"url":"https://api.github.com/repos/loomio/loomio/pulls/comments/194262794","pull_request_review_id":127402278,"id":194262794,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NDI2Mjc5NA==","diff_hunk":"@@ -22,6 +22,9 @@ module.exports = class UserRecordsInterface extends BaseRecordsInterface\n   deactivate: (user) =>\n     @remote.post 'deactivate', user.serialize()\n \n+  destroy: (user) =>","path":"client/shared/interfaces/user_records_interface.coffee","position":4,"original_position":4,"commit_id":"18bf7856bf74a8e8b8f9106c51e91a32aac4eaeb","original_commit_id":"18bf7856bf74a8e8b8f9106c51e91a32aac4eaeb","user":{"login":"gdpelican","id":750477,"node_id":"MDQ6VXNlcjc1MDQ3Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/750477?v=4","gravatar_id":"","url":"https://api.github.com/users/gdpelican","html_url":"https://github.com/gdpelican","followers_url":"https://api.github.com/users/gdpelican/followers","following_url":"https://api.github.com/users/gdpelican/following{/other_user}","gists_url":"https://api.github.com/users/gdpelican/gists{/gist_id}","starred_url":"https://api.github.com/users/gdpelican/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdpelican/subscriptions","organizations_url":"https://api.github.com/users/gdpelican/orgs","repos_url":"https://api.github.com/users/gdpelican/repos","events_url":"https://api.github.com/users/gdpelican/events{/privacy}","received_events_url":"https://api.github.com/users/gdpelican/received_events","type":"User","site_admin":false},"body":"Seems like you don't need the user to destroy here, meaning we can avoid the slightly awkward\r\n```\r\nRecords.users.destroy(Session.user()) # could just be Records.users.destroy()\r\n```","created_at":"2018-06-10T16:29:43Z","updated_at":"2018-06-10T16:38:57Z","html_url":"https://github.com/loomio/loomio/pull/4717#discussion_r194262794","pull_request_url":"https://api.github.com/repos/loomio/loomio/pulls/4717","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/loomio/loomio/pulls/comments/194262794"},"html":{"href":"https://github.com/loomio/loomio/pull/4717#discussion_r194262794"},"pull_request":{"href":"https://api.github.com/repos/loomio/loomio/pulls/4717"}}},"pull_request":{"url":"https://api.github.com/repos/loomio/loomio/pulls/4717","id":193828551,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkzODI4NTUx","html_url":"https://github.com/loomio/loomio/pull/4717","diff_url":"https://github.com/loomio/loomio/pull/4717.diff","patch_url":"https://github.com/loomio/loomio/pull/4717.patch","issue_url":"https://api.github.com/repos/loomio/loomio/issues/4717","number":4717,"state":"open","locked":false,"title":"Delete own user account","user":{"login":"robguthrie","id":486367,"node_id":"MDQ6VXNlcjQ4NjM2Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/486367?v=4","gravatar_id":"","url":"https://api.github.com/users/robguthrie","html_url":"https://github.com/robguthrie","followers_url":"https://api.github.com/users/robguthrie/followers","following_url":"https://api.github.com/users/robguthrie/following{/other_user}","gists_url":"https://api.github.com/users/robguthrie/gists{/gist_id}","starred_url":"https://api.github.com/users/robguthrie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robguthrie/subscriptions","organizations_url":"https://api.github.com/users/robguthrie/orgs","repos_url":"https://api.github.com/users/robguthrie/repos","events_url":"https://api.github.com/users/robguthrie/events{/privacy}","received_events_url":"https://api.github.com/users/robguthrie/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-06-10T14:18:52Z","updated_at":"2018-06-10T16:38:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e36ac5ace1dd134a5deb6b62c8adff24318ce493","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/loomio/loomio/pulls/4717/commits","review_comments_url":"https://api.github.com/repos/loomio/loomio/pulls/4717/comments","review_comment_url":"https://api.github.com/repos/loomio/loomio/pulls/comments{/number}","comments_url":"https://api.github.com/repos/loomio/loomio/issues/4717/comments","statuses_url":"https://api.github.com/repos/loomio/loomio/statuses/18bf7856bf74a8e8b8f9106c51e91a32aac4eaeb","head":{"label":"loomio:delete-user","ref":"delete-user","sha":"18bf7856bf74a8e8b8f9106c51e91a32aac4eaeb","user":{"login":"loomio","id":1896739,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4OTY3Mzk=","avatar_url":"https://avatars2.githubusercontent.com/u/1896739?v=4","gravatar_id":"","url":"https://api.github.com/users/loomio","html_url":"https://github.com/loomio","followers_url":"https://api.github.com/users/loomio/followers","following_url":"https://api.github.com/users/loomio/following{/other_user}","gists_url":"https://api.github.com/users/loomio/gists{/gist_id}","starred_url":"https://api.github.com/users/loomio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loomio/subscriptions","organizations_url":"https://api.github.com/users/loomio/orgs","repos_url":"https://api.github.com/users/loomio/repos","events_url":"https://api.github.com/users/loomio/events{/privacy}","received_events_url":"https://api.github.com/users/loomio/received_events","type":"Organization","site_admin":false},"repo":{"id":2731301,"node_id":"MDEwOlJlcG9zaXRvcnkyNzMxMzAx","name":"loomio","full_name":"loomio/loomio","owner":{"login":"loomio","id":1896739,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4OTY3Mzk=","avatar_url":"https://avatars2.githubusercontent.com/u/1896739?v=4","gravatar_id":"","url":"https://api.github.com/users/loomio","html_url":"https://github.com/loomio","followers_url":"https://api.github.com/users/loomio/followers","following_url":"https://api.github.com/users/loomio/following{/other_user}","gists_url":"https://api.github.com/users/loomio/gists{/gist_id}","starred_url":"https://api.github.com/users/loomio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loomio/subscriptions","organizations_url":"https://api.github.com/users/loomio/orgs","repos_url":"https://api.github.com/users/loomio/repos","events_url":"https://api.github.com/users/loomio/events{/privacy}","received_events_url":"https://api.github.com/users/loomio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/loomio/loomio","description":"Loomio is an open-source web application that helps groups of people to make decisions together.","fork":false,"url":"https://api.github.com/repos/loomio/loomio","forks_url":"https://api.github.com/repos/loomio/loomio/forks","keys_url":"https://api.github.com/repos/loomio/loomio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/loomio/loomio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/loomio/loomio/teams","hooks_url":"https://api.github.com/repos/loomio/loomio/hooks","issue_events_url":"https://api.github.com/repos/loomio/loomio/issues/events{/number}","events_url":"https://api.github.com/repos/loomio/loomio/events","assignees_url":"https://api.github.com/repos/loomio/loomio/assignees{/user}","branches_url":"https://api.github.com/repos/loomio/loomio/branches{/branch}","tags_url":"https://api.github.com/repos/loomio/loomio/tags","blobs_url":"https://api.github.com/repos/loomio/loomio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/loomio/loomio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/loomio/loomio/git/refs{/sha}","trees_url":"https://api.github.com/repos/loomio/loomio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/loomio/loomio/statuses/{sha}","languages_url":"https://api.github.com/repos/loomio/loomio/languages","stargazers_url":"https://api.github.com/repos/loomio/loomio/stargazers","contributors_url":"https://api.github.com/repos/loomio/loomio/contributors","subscribers_url":"https://api.github.com/repos/loomio/loomio/subscribers","subscription_url":"https://api.github.com/repos/loomio/loomio/subscription","commits_url":"https://api.github.com/repos/loomio/loomio/commits{/sha}","git_commits_url":"https://api.github.com/repos/loomio/loomio/git/commits{/sha}","comments_url":"https://api.github.com/repos/loomio/loomio/comments{/number}","issue_comment_url":"https://api.github.com/repos/loomio/loomio/issues/comments{/number}","contents_url":"https://api.github.com/repos/loomio/loomio/contents/{+path}","compare_url":"https://api.github.com/repos/loomio/loomio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/loomio/loomio/merges","archive_url":"https://api.github.com/repos/loomio/loomio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/loomio/loomio/downloads","issues_url":"https://api.github.com/repos/loomio/loomio/issues{/number}","pulls_url":"https://api.github.com/repos/loomio/loomio/pulls{/number}","milestones_url":"https://api.github.com/repos/loomio/loomio/milestones{/number}","notifications_url":"https://api.github.com/repos/loomio/loomio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/loomio/loomio/labels{/name}","releases_url":"https://api.github.com/repos/loomio/loomio/releases{/id}","deployments_url":"https://api.github.com/repos/loomio/loomio/deployments","created_at":"2011-11-08T03:27:12Z","updated_at":"2018-06-09T17:22:07Z","pushed_at":"2018-06-10T16:09:16Z","git_url":"git://github.com/loomio/loomio.git","ssh_url":"git@github.com:loomio/loomio.git","clone_url":"https://github.com/loomio/loomio.git","svn_url":"https://github.com/loomio/loomio","homepage":"https://www.loomio.org","size":98331,"stargazers_count":1613,"watchers_count":1613,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":546,"mirror_url":null,"archived":false,"open_issues_count":53,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":546,"open_issues":53,"watchers":1613,"default_branch":"master"}},"base":{"label":"loomio:master","ref":"master","sha":"8899b3a35b0b17208bd749566a3ea362d53b0175","user":{"login":"loomio","id":1896739,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4OTY3Mzk=","avatar_url":"https://avatars2.githubusercontent.com/u/1896739?v=4","gravatar_id":"","url":"https://api.github.com/users/loomio","html_url":"https://github.com/loomio","followers_url":"https://api.github.com/users/loomio/followers","following_url":"https://api.github.com/users/loomio/following{/other_user}","gists_url":"https://api.github.com/users/loomio/gists{/gist_id}","starred_url":"https://api.github.com/users/loomio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loomio/subscriptions","organizations_url":"https://api.github.com/users/loomio/orgs","repos_url":"https://api.github.com/users/loomio/repos","events_url":"https://api.github.com/users/loomio/events{/privacy}","received_events_url":"https://api.github.com/users/loomio/received_events","type":"Organization","site_admin":false},"repo":{"id":2731301,"node_id":"MDEwOlJlcG9zaXRvcnkyNzMxMzAx","name":"loomio","full_name":"loomio/loomio","owner":{"login":"loomio","id":1896739,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4OTY3Mzk=","avatar_url":"https://avatars2.githubusercontent.com/u/1896739?v=4","gravatar_id":"","url":"https://api.github.com/users/loomio","html_url":"https://github.com/loomio","followers_url":"https://api.github.com/users/loomio/followers","following_url":"https://api.github.com/users/loomio/following{/other_user}","gists_url":"https://api.github.com/users/loomio/gists{/gist_id}","starred_url":"https://api.github.com/users/loomio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loomio/subscriptions","organizations_url":"https://api.github.com/users/loomio/orgs","repos_url":"https://api.github.com/users/loomio/repos","events_url":"https://api.github.com/users/loomio/events{/privacy}","received_events_url":"https://api.github.com/users/loomio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/loomio/loomio","description":"Loomio is an open-source web application that helps groups of people to make decisions together.","fork":false,"url":"https://api.github.com/repos/loomio/loomio","forks_url":"https://api.github.com/repos/loomio/loomio/forks","keys_url":"https://api.github.com/repos/loomio/loomio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/loomio/loomio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/loomio/loomio/teams","hooks_url":"https://api.github.com/repos/loomio/loomio/hooks","issue_events_url":"https://api.github.com/repos/loomio/loomio/issues/events{/number}","events_url":"https://api.github.com/repos/loomio/loomio/events","assignees_url":"https://api.github.com/repos/loomio/loomio/assignees{/user}","branches_url":"https://api.github.com/repos/loomio/loomio/branches{/branch}","tags_url":"https://api.github.com/repos/loomio/loomio/tags","blobs_url":"https://api.github.com/repos/loomio/loomio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/loomio/loomio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/loomio/loomio/git/refs{/sha}","trees_url":"https://api.github.com/repos/loomio/loomio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/loomio/loomio/statuses/{sha}","languages_url":"https://api.github.com/repos/loomio/loomio/languages","stargazers_url":"https://api.github.com/repos/loomio/loomio/stargazers","contributors_url":"https://api.github.com/repos/loomio/loomio/contributors","subscribers_url":"https://api.github.com/repos/loomio/loomio/subscribers","subscription_url":"https://api.github.com/repos/loomio/loomio/subscription","commits_url":"https://api.github.com/repos/loomio/loomio/commits{/sha}","git_commits_url":"https://api.github.com/repos/loomio/loomio/git/commits{/sha}","comments_url":"https://api.github.com/repos/loomio/loomio/comments{/number}","issue_comment_url":"https://api.github.com/repos/loomio/loomio/issues/comments{/number}","contents_url":"https://api.github.com/repos/loomio/loomio/contents/{+path}","compare_url":"https://api.github.com/repos/loomio/loomio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/loomio/loomio/merges","archive_url":"https://api.github.com/repos/loomio/loomio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/loomio/loomio/downloads","issues_url":"https://api.github.com/repos/loomio/loomio/issues{/number}","pulls_url":"https://api.github.com/repos/loomio/loomio/pulls{/number}","milestones_url":"https://api.github.com/repos/loomio/loomio/milestones{/number}","notifications_url":"https://api.github.com/repos/loomio/loomio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/loomio/loomio/labels{/name}","releases_url":"https://api.github.com/repos/loomio/loomio/releases{/id}","deployments_url":"https://api.github.com/repos/loomio/loomio/deployments","created_at":"2011-11-08T03:27:12Z","updated_at":"2018-06-09T17:22:07Z","pushed_at":"2018-06-10T16:09:16Z","git_url":"git://github.com/loomio/loomio.git","ssh_url":"git@github.com:loomio/loomio.git","clone_url":"https://github.com/loomio/loomio.git","svn_url":"https://github.com/loomio/loomio","homepage":"https://www.loomio.org","size":98331,"stargazers_count":1613,"watchers_count":1613,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":546,"mirror_url":null,"archived":false,"open_issues_count":53,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":546,"open_issues":53,"watchers":1613,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/loomio/loomio/pulls/4717"},"html":{"href":"https://github.com/loomio/loomio/pull/4717"},"issue":{"href":"https://api.github.com/repos/loomio/loomio/issues/4717"},"comments":{"href":"https://api.github.com/repos/loomio/loomio/issues/4717/comments"},"review_comments":{"href":"https://api.github.com/repos/loomio/loomio/pulls/4717/comments"},"review_comment":{"href":"https://api.github.com/repos/loomio/loomio/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/loomio/loomio/pulls/4717/commits"},"statuses":{"href":"https://api.github.com/repos/loomio/loomio/statuses/18bf7856bf74a8e8b8f9106c51e91a32aac4eaeb"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"gdpelican"}}