How to create an orphan module
When you're investigating an issue or bug with orphans
Step-by-step guide
- Create a course in Studio
- Add a unit and two problems to that unit
- Publish the course
- Export the course
- In XML, find the vertical: https://www.dropbox.com/s/cvug7srkm2rpjyq/Screenshot%202015-08-17%2014.48.41.png?dl=0
- Remove the pointer to the second problem: https://www.dropbox.com/s/k2czgz3glh3jde8/Screenshot%202015-08-17%2014.49.17.png?dl=0
Tar the course (tar -czvf <name_of_tar>.tar.gz dir_to_tar/)
- Re-import the course
- Voilà, the second problem is no longer in the course tree, but hasn't been removed from the course.
- To verify, in studio, go to /orphan/<course_id>
Note: exporting a course walks the course tree, so if you export a course with orphans, and import it into a new course, that new course won't have any orphans. If you want to play around with a course that currently has orphans in a safe way, you should rerun the course–that does preserve orphans.
Related articles
Filter by label
There are no items with the selected labels at this time.