Skip to content
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

Merged
merged 5 commits into from
Jul 12, 2013

Conversation

ichuang
Copy link
Contributor

@ichuang ichuang commented Jul 12, 2013

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.

@chrisndodge
Copy link
Contributor

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())
Copy link
Contributor

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.

@chrisndodge
Copy link
Contributor

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

ichuang added a commit that referenced this pull request Jul 12, 2013
Add management command to Studio for exporting all courses; useful for periodic backups of course content in Studio
@ichuang ichuang merged commit 547f230 into master Jul 12, 2013
chrisrossi pushed a commit to jazkarta/edx-platform that referenced this pull request Mar 31, 2014
…tatic_mangling

When in debug mode, check the staticfiles.finders before mangling urls
ok, confirmed working.  thanks.
antoviaque referenced this pull request in open-craft/edx-platform Feb 6, 2015
…messages-css-class

Discussion bug fixes and improvements
diegomillan pushed a commit to eduNEXT/edx-platform that referenced this pull request Sep 14, 2016
…t-edit-course-tabs

Revert "Merge pull request #287 from Stanford-Online/azimpradhan/sysadmin-course-tabs"
Agrendalath pushed a commit that referenced this pull request Aug 18, 2021
…can be driven by MFEs. (#27313) (#381)

(cherry picked from commit 161e356)
Sujeet1379 pushed a commit to chandrudev/edx-platform that referenced this pull request Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants