-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add management command to Studio for exporting all courses #381
Conversation
Thanks for the submission. I'll take a look at this. |
@@ -30,4 +30,4 @@ def handle(self, *args, **options): | |||
root_dir = os.path.dirname(output_path) | |||
course_dir = os.path.splitext(os.path.basename(output_path))[0] | |||
|
|||
export_to_xml(modulestore('direct'), contentstore(), location, root_dir, course_dir) | |||
export_to_xml(modulestore('direct'), contentstore(), location, root_dir, course_dir, modulestore()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching this missing 'draft' modulestore - it was an oversight on my part.
I ran a quick test on the on my localdev for both the older 'export' (since there was a change to that) and new 'export_all_courses'. Seemed OK Looked at code: 3 violations. Can you clean them up? Then you can merge. Thanks |
Add management command to Studio for exporting all courses; useful for periodic backups of course content in Studio
…tatic_mangling When in debug mode, check the staticfiles.finders before mangling urls ok, confirmed working. thanks.
…messages-css-class Discussion bug fixes and improvements
…t-edit-course-tabs Revert "Merge pull request #287 from Stanford-Online/azimpradhan/sysadmin-course-tabs"
This reverts commit 8c0cafa.
Studio currently keeps no history of courses authored in the system. This is an issue for researchers studying course data, as well as for course teams who may need to look back to see what changes were made, or who need to recover earlier revisions.
This PR adds a management script to allow all courses stored in the mongo db to be exported to a directory.
At MIT, we're using this with a cronjob and a git repository, to regularly take snapshots of all Studio course content.