OLX export: Reverted url_name from a constant to course run
- New exported courses include course run information in: - `url_name` of root course node - file name of root node in course folder - root key name in policy.json - directory name inside policies folder - when imported via management command, the OLX will overwrite an available existing course with the same course key (i.e. same org, course number and course run) - if there is no matching course, one will be created - when imported via the studio web ui (or import API), the OLX will replace the current course (no change in behavior) - courses exported with this commit have been tested to import via management command and studio web UI in hawthorn and ginkgo releases. They should also work in prior releases, but have not been tested.
Showing
- common/lib/xmodule/xmodule/modulestore/tests/test_cross_modulestore_import_export.py 1 addition, 1 deletion...modulestore/tests/test_cross_modulestore_import_export.py
- common/lib/xmodule/xmodule/modulestore/xml_exporter.py 2 additions, 5 deletionscommon/lib/xmodule/xmodule/modulestore/xml_exporter.py
- common/lib/xmodule/xmodule/tests/test_import.py 6 additions, 5 deletionscommon/lib/xmodule/xmodule/tests/test_import.py
- common/lib/xmodule/xmodule/x_module.py 4 additions, 0 deletionscommon/lib/xmodule/xmodule/x_module.py
- common/lib/xmodule/xmodule/xml_module.py 5 additions, 1 deletioncommon/lib/xmodule/xmodule/xml_module.py
Please register or sign in to comment