Upgrade Script - #2
Conversation
There was a problem hiding this comment.
@bradenmacdonald heads up - parse_xml is going to be removed: open-craft/xblock-mentoring#16
c6d1659 to
c31038a
Compare
There was a problem hiding this comment.
@bradenmacdonald does it work fine with mentorings with comments? It should at least convert them right removing comments, but preserving comments would be ideal (but it might be non-trivial)
There was a problem hiding this comment.
@bradenmacdonald nevermind, I've checked it out and it indeed works just fine with comments
|
@bradenmacdonald also, there's a dangling statement in xm_changes.py:187 - it was introduced earlier, but now is a good enough moment to remove it. |
|
@bradenmacdonald 👍 conditional exception is fixed. |
There was a problem hiding this comment.
Same nit @e-kolpakov expressed earlier about other strings being unicode-- this one isn't.
There was a problem hiding this comment.
Yeah, there are actually a lot of non-unicode strings in this file that contain unicode characters. My bad. Because they're just being treated as bytes and getting piped directly to stdout, it hasn't caused a problem, but you're right that they should be marked as Unicode.
|
Looks like @e-kolpakov found all the good stuff already, save for one other unicode nit. 👍 conditional on you fixing the issue he mentioned with string formatting. |
c31038a to
8ff1779
Compare
|
Rebased and addressed all your comments. I added in code to automatically fix the url_names if a Note: extra commits are showing up because I should be merging to |
…and v2 installed in parallel
8ff1779 to
a475187
Compare
|
@bradenmacdonald I've added a PR to include import-export fix. It targets this branch though, as I tried to simplify your work of merging this all, so please, take a look at #5 and merge. |
When testing the upgrade path from mentoring v1 to problem builder (mentoring v2), I found a few bugs in the upgrade script:
<tip>elements had awidthorheight, they wouldn't workmentoringtoproblem-builderI also added a check for multiple blocks that have the same
url_name, since that should not happen but it is the case on some courses I worked with.Note: