{"action":"created","issue":{"url":"https://api.github.com/repos/amitaibu/og/issues/162","repository_url":"https://api.github.com/repos/amitaibu/og","labels_url":"https://api.github.com/repos/amitaibu/og/issues/162/labels{/name}","comments_url":"https://api.github.com/repos/amitaibu/og/issues/162/comments","events_url":"https://api.github.com/repos/amitaibu/og/issues/162/events","html_url":"https://github.com/amitaibu/og/pull/162","id":139626241,"number":162,"title":"WIP: Delete memberships when a group is deleted","user":{"login":"pfrenssen","id":442924,"avatar_url":"https://avatars.githubusercontent.com/u/442924?v=3","gravatar_id":"","url":"https://api.github.com/users/pfrenssen","html_url":"https://github.com/pfrenssen","followers_url":"https://api.github.com/users/pfrenssen/followers","following_url":"https://api.github.com/users/pfrenssen/following{/other_user}","gists_url":"https://api.github.com/users/pfrenssen/gists{/gist_id}","starred_url":"https://api.github.com/users/pfrenssen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfrenssen/subscriptions","organizations_url":"https://api.github.com/users/pfrenssen/orgs","repos_url":"https://api.github.com/users/pfrenssen/repos","events_url":"https://api.github.com/users/pfrenssen/events{/privacy}","received_events_url":"https://api.github.com/users/pfrenssen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":27,"created_at":"2016-03-09T16:26:40Z","updated_at":"2016-04-06T12:10:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/amitaibu/og/pulls/162","html_url":"https://github.com/amitaibu/og/pull/162","diff_url":"https://github.com/amitaibu/og/pull/162.diff","patch_url":"https://github.com/amitaibu/og/pull/162.patch"},"body":"When a group is deleted we also need to delete the memberships. This was originally handled in `og_entity_delete()`. The roles and content was also deleted, but let's do this in separate PRs.\r\n\r\nThere are two ways of deleting memberships, depending on how large the site is: queued and non-queued. There is also a mechanism of preventing the deletion from taking place, to allow developers to provide their own implementation."},"comment":{"url":"https://api.github.com/repos/amitaibu/og/issues/comments/206343413","html_url":"https://github.com/amitaibu/og/pull/162#issuecomment-206343413","issue_url":"https://api.github.com/repos/amitaibu/og/issues/162","id":206343413,"user":{"login":"pfrenssen","id":442924,"avatar_url":"https://avatars.githubusercontent.com/u/442924?v=3","gravatar_id":"","url":"https://api.github.com/users/pfrenssen","html_url":"https://github.com/pfrenssen","followers_url":"https://api.github.com/users/pfrenssen/followers","following_url":"https://api.github.com/users/pfrenssen/following{/other_user}","gists_url":"https://api.github.com/users/pfrenssen/gists{/gist_id}","starred_url":"https://api.github.com/users/pfrenssen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfrenssen/subscriptions","organizations_url":"https://api.github.com/users/pfrenssen/orgs","repos_url":"https://api.github.com/users/pfrenssen/repos","events_url":"https://api.github.com/users/pfrenssen/events{/privacy}","received_events_url":"https://api.github.com/users/pfrenssen/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T12:10:31Z","updated_at":"2016-04-06T12:10:31Z","body":"Going to work on adding test coverage for `Og::getGroups()`, `Og::getGroupIds()` and `Og::getGroupCount()` now."}}