{"action":"created","issue":{"url":"https://api.github.com/repos/amitaibu/og/issues/175","repository_url":"https://api.github.com/repos/amitaibu/og","labels_url":"https://api.github.com/repos/amitaibu/og/issues/175/labels{/name}","comments_url":"https://api.github.com/repos/amitaibu/og/issues/175/comments","events_url":"https://api.github.com/repos/amitaibu/og/issues/175/events","html_url":"https://github.com/amitaibu/og/issues/175","id":146205630,"number":175,"title":"Delete group user roles 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":1,"created_at":"2016-04-06T06:52:44Z","updated_at":"2016-04-06T06:53:33Z","closed_at":null,"body":"When a group is deleted, the group user roles should also be deleted.\r\n\r\nRef.  `og_entity_predelete()`:\r\n\r\n```\r\nfunction og_entity_predelete(EntityInterface $entity) {\r\n  if (Og::isGroup($entity->getEntityTypeId(), $entity->bundle())) {\r\n    ...\r\n    // @todo Delete user roles.\r\n    // og_delete_user_roles_by_group($entity_type, $entity);\r\n  }\r\n  ...\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/amitaibu/og/issues/comments/206156229","html_url":"https://github.com/amitaibu/og/issues/175#issuecomment-206156229","issue_url":"https://api.github.com/repos/amitaibu/og/issues/175","id":206156229,"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-06T06:53:33Z","updated_at":"2016-04-06T06:53:33Z","body":"This is a followup of #162."}}