fix delete_orphans view (and add management command)
Right now the delete_orphans view in studio will find an orphan and recursively delete all of its descendents. This is undesirable because a unit may have two parents, one of which is an orphan, and the other of which is in the course tree. The view should be updated to address this scenario.
Note: this is one way to address
Steps to Reproduce
Reason for Variance
User Impact Summary
Awesome. Thanks for all your help and !
, the fix is now on the release candidate, and should be live on Wednesday. We'll be able to run the command then too
I have updated the PR but I will need review from and before we merge it.
I am working on this. The code need some refactor, I will update you tomorrow.
any updates on this?