fix delete_orphans view (and add management command)

Description

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

None

Current Behavior

None

Expected Behavior

None

Reason for Variance

None

Release Notes

None

User Impact Summary

None

Activity

Show:
ehuR
January 5, 2015, 8:52 PM

Awesome. Thanks for all your help and !

Adam Palay
January 5, 2015, 8:45 PM

, the fix is now on the release candidate, and should be live on Wednesday. We'll be able to run the command then too

Zubair Afzal
January 2, 2015, 12:44 PM

I have updated the PR but I will need review from and before we merge it.

Zubair Afzal
December 31, 2014, 2:59 PM

I am working on this. The code need some refactor, I will update you tomorrow.

ehuR
December 31, 2014, 2:55 PM

any updates on this?

Fixed

Assignee

Adam Palay

Reporter

Adam Palay

Labels

Reach

None

Impact

None

Platform Area

None

Customer

None

Partner Manager

None

URL

None

Contributor Name

None

Groups with Read-Only Access

None

Actual Points

None

Category of Work

None

Platform Map Area (Levels 1 & 2)

None

Platform Map Area (Levels 3 & 4)

None

Priority

CAT-2