Add reset_course_content Studio management command (#25653)
Given a course key and a split-mongo version GUID, it resets the course run's draft branch to a specified version and publishes. The purpose of this is to allow us to restore overwritten course content without having to write to Mongo via a dbshell. Adds `reset_course_to_version` method to modulestore API. TNL-7705
Showing
- cms/djangoapps/contentstore/management/commands/reset_course_content.py 62 additions, 0 deletions.../contentstore/management/commands/reset_course_content.py
- cms/djangoapps/contentstore/management/commands/tests/test_reset_course_content.py 42 additions, 0 deletions...re/management/commands/tests/test_reset_course_content.py
- common/lib/xmodule/xmodule/modulestore/mixed.py 13 additions, 0 deletionscommon/lib/xmodule/xmodule/modulestore/mixed.py
- common/lib/xmodule/xmodule/modulestore/split_mongo/split_draft.py 14 additions, 0 deletions...ib/xmodule/xmodule/modulestore/split_mongo/split_draft.py
- common/lib/xmodule/xmodule/modulestore/tests/test_mixed_modulestore.py 91 additions, 0 deletions...odule/xmodule/modulestore/tests/test_mixed_modulestore.py
Loading
Please register or sign in to comment