Course cannot import if url_names changed in XML
Please note that this is urgent as this course launches on Thursday so it's a critical time in the development process and their production is totally blocked with this issue.
The MITx 3.091x team (https://studio.edx.org/course/course-v1:MITx+3.091x_4+1T2015) is having the following issue with import:
1. Try to import
2. Repeatedly receive the following error:
There was an error while importing the new course to our database. BlockKey(type=u'chapter', id=u'Week_2_x’)
The course imports perfectly fine on my local environment. I also created a test course on edge and it imported perfectly fine. Joe Martis was previously on the course and he said that he ran into this issue before when he removed some content. He said that the solution was to delete the content of the course and start anew.
The course launches on Thursday so. I am wondering if you can get this taken of quickly.
Steps to Reproduce
1) create simple course in studio (I did this in split)
2) export the course
3) In the XML, go to course.xml, and rename the chapter_url to "chapter"
4) Rename the relevant chapter file to "chapter.xml"
5) reimport the course
Reason for Variance
User Impact Summary
, thanks! This approach makes intuitive sense to me. We'll take it from here.
Here's a PR with the beginnings of a fix:
A test should be added for this particular case. Feel free to add many more tests related to editing course exports and re-importing them!
Downgrading to CAT-2 because 3.091x is good to go right now. But, this bug still exists. , until this bug is fixed, please do not change this course's url_names
It is giving the error currently on deleting the orphans but looking into that matter.
Would it be possible to just delete all of the orphans?