Skip to content

Conversation

@bradenmacdonald
Copy link
Member

When testing the upgrade path from mentoring v1 to problem builder (mentoring v2), I found a few bugs in the upgrade script:

  • if <tip> elements had a width or height, they wouldn't work
  • Warnings from the XML upgrade script were not displayed to the user
  • Did not convert the actual block type from mentoring to problem-builder

I 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:

Copy link
Contributor

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

Copy link
Member Author

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 :)

@bradenmacdonald bradenmacdonald force-pushed the mcka-upgrade-bug-fix branch 2 times, most recently from c6d1659 to c31038a Compare April 3, 2015 23:35
Copy link
Contributor

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)

Copy link
Contributor

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

@e-kolpakov
Copy link
Contributor

@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.

@e-kolpakov
Copy link
Contributor

@bradenmacdonald 👍 conditional exception is fixed.

Copy link
Member

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.

Copy link
Member Author

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.

@Kelketek
Copy link
Member

Kelketek commented Apr 6, 2015

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.

@bradenmacdonald
Copy link
Member Author

Rebased and addressed all your comments. I added in code to automatically fix the url_names if a --force argument is given. Thanks @e-kolpakov and @Kelketek. I'll merge tomorrow based on your tentative thumbs up, but if you can review again, that would be ideal.

Note: extra commits are showing up because I should be merging to develop, not master. I will fix that when merging.

@e-kolpakov
Copy link
Contributor

@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.

bradenmacdonald added a commit that referenced this pull request Apr 8, 2015
@bradenmacdonald
Copy link
Member Author

Merged this to develop via ba65ce0, merging Eugeny's import fix as #7.

@bradenmacdonald bradenmacdonald deleted the mcka-upgrade-bug-fix branch April 9, 2015 00:43
mudassir-hafeez pushed a commit to mudassir-hafeez/problem-builder that referenced this pull request Jan 31, 2022
* 15697 Remove unused variable

* 15697 change logic

* Use Batches

* Use Batches
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.

4 participants