{"action":"created","issue":{"url":"https://api.github.com/repos/edx/edx-platform/issues/10785","labels_url":"https://api.github.com/repos/edx/edx-platform/issues/10785/labels{/name}","comments_url":"https://api.github.com/repos/edx/edx-platform/issues/10785/comments","events_url":"https://api.github.com/repos/edx/edx-platform/issues/10785/events","html_url":"https://github.com/edx/edx-platform/pull/10785","id":119789474,"number":10785,"title":"do orphan deletion in a bulk operation (SUST-21)","user":{"login":"adampalay","id":2748698,"avatar_url":"https://avatars.githubusercontent.com/u/2748698?v=3","gravatar_id":"","url":"https://api.github.com/users/adampalay","html_url":"https://github.com/adampalay","followers_url":"https://api.github.com/users/adampalay/followers","following_url":"https://api.github.com/users/adampalay/following{/other_user}","gists_url":"https://api.github.com/users/adampalay/gists{/gist_id}","starred_url":"https://api.github.com/users/adampalay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adampalay/subscriptions","organizations_url":"https://api.github.com/users/adampalay/orgs","repos_url":"https://api.github.com/users/adampalay/repos","events_url":"https://api.github.com/users/adampalay/events{/privacy}","received_events_url":"https://api.github.com/users/adampalay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-01T19:29:33Z","updated_at":"2015-12-01T19:37:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/edx/edx-platform/pulls/10785","html_url":"https://github.com/edx/edx-platform/pull/10785","diff_url":"https://github.com/edx/edx-platform/pull/10785.diff","patch_url":"https://github.com/edx/edx-platform/pull/10785.patch"},"body":"Right now, when you delete orphans, each orphan is deleted in a separate mongo call. This wraps the orphan deletion in a bulk_operations context manager.\r\n\r\nSee [SUST-21](https://openedx.atlassian.net/browse/SUST-21) for more info.\r\n\r\nReviewers:\r\n- [ ] @awaisdar001 \r\n- [ ] @doctoryes \r\n\r\n@maxrothman , FYI"},"comment":{"url":"https://api.github.com/repos/edx/edx-platform/issues/comments/161072885","html_url":"https://github.com/edx/edx-platform/pull/10785#issuecomment-161072885","issue_url":"https://api.github.com/repos/edx/edx-platform/issues/10785","id":161072885,"user":{"login":"doctoryes","id":7285237,"avatar_url":"https://avatars.githubusercontent.com/u/7285237?v=3","gravatar_id":"","url":"https://api.github.com/users/doctoryes","html_url":"https://github.com/doctoryes","followers_url":"https://api.github.com/users/doctoryes/followers","following_url":"https://api.github.com/users/doctoryes/following{/other_user}","gists_url":"https://api.github.com/users/doctoryes/gists{/gist_id}","starred_url":"https://api.github.com/users/doctoryes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doctoryes/subscriptions","organizations_url":"https://api.github.com/users/doctoryes/orgs","repos_url":"https://api.github.com/users/doctoryes/repos","events_url":"https://api.github.com/users/doctoryes/events{/privacy}","received_events_url":"https://api.github.com/users/doctoryes/received_events","type":"User","site_admin":false},"created_at":"2015-12-01T19:37:54Z","updated_at":"2015-12-01T19:37:54Z","body":":+1: "}}