-
Notifications
You must be signed in to change notification settings - Fork 60
Upgrade Script #2
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
Conversation
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.
@bradenmacdonald heads up - parse_xml is going to be removed: open-craft/xblock-mentoring#16
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.
@e-kolpakov Yep, that's great. Thanks :)
c6d1659 to
c31038a
Compare
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.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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. |
problem_builder/v1/upgrade.py
Outdated
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.
Same nit @e-kolpakov expressed earlier about other strings being unicode-- this one isn't.
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.
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. |
* 15697 Remove unused variable * 15697 change logic * Use Batches * Use Batches
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: