{"action":"created","issue":{"url":"https://api.github.com/repos/Elgg/Elgg/issues/7051","labels_url":"https://api.github.com/repos/Elgg/Elgg/issues/7051/labels{/name}","comments_url":"https://api.github.com/repos/Elgg/Elgg/issues/7051/comments","events_url":"https://api.github.com/repos/Elgg/Elgg/issues/7051/events","html_url":"https://github.com/Elgg/Elgg/issues/7051","id":37559515,"number":7051,"title":"Split delete user event into before/after","user":{"login":"mrclay","id":170687,"avatar_url":"https://avatars.githubusercontent.com/u/170687?v=3","gravatar_id":"","url":"https://api.github.com/users/mrclay","html_url":"https://github.com/mrclay","followers_url":"https://api.github.com/users/mrclay/followers","following_url":"https://api.github.com/users/mrclay/following{/other_user}","gists_url":"https://api.github.com/users/mrclay/gists{/gist_id}","starred_url":"https://api.github.com/users/mrclay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrclay/subscriptions","organizations_url":"https://api.github.com/users/mrclay/orgs","repos_url":"https://api.github.com/users/mrclay/repos","events_url":"https://api.github.com/users/mrclay/events{/privacy}","received_events_url":"https://api.github.com/users/mrclay/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Elgg/Elgg/labels/adds%20api","name":"adds api","color":"0052cc"},{"url":"https://api.github.com/repos/Elgg/Elgg/labels/dev%20usability","name":"dev usability","color":"444444"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-07-10T12:58:47Z","updated_at":"2015-12-14T02:57:21Z","closed_at":null,"body":"General procedure: \r\n\r\n1. call `elgg_trigger_before_event` first (if false, cancel)\r\n2. change `elgg_trigger_event` to a deprecated event. See https://github.com/Elgg/Elgg/blob/1.9/engine/lib/sessions.php#L321\r\n3. call `elgg_trigger_after_event` very last.\r\n4. change core handlers to use before/after events\r\n\r\nI don't expect this to be as easy as it sounds."},"comment":{"url":"https://api.github.com/repos/Elgg/Elgg/issues/comments/164329450","html_url":"https://github.com/Elgg/Elgg/issues/7051#issuecomment-164329450","issue_url":"https://api.github.com/repos/Elgg/Elgg/issues/7051","id":164329450,"user":{"login":"mrclay","id":170687,"avatar_url":"https://avatars.githubusercontent.com/u/170687?v=3","gravatar_id":"","url":"https://api.github.com/users/mrclay","html_url":"https://github.com/mrclay","followers_url":"https://api.github.com/users/mrclay/followers","following_url":"https://api.github.com/users/mrclay/following{/other_user}","gists_url":"https://api.github.com/users/mrclay/gists{/gist_id}","starred_url":"https://api.github.com/users/mrclay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrclay/subscriptions","organizations_url":"https://api.github.com/users/mrclay/orgs","repos_url":"https://api.github.com/users/mrclay/repos","events_url":"https://api.github.com/users/mrclay/events{/privacy}","received_events_url":"https://api.github.com/users/mrclay/received_events","type":"User","site_admin":false},"created_at":"2015-12-14T02:57:21Z","updated_at":"2015-12-14T02:57:21Z","body":"For existing events like this, let's just add the after event."}}