Skip to content

Conversation

@bradenmacdonald
Copy link
Member

JIRA: OC-805

It was discovered that when migrating from the old gsehub version of xblock-mentoring, "Question" titles get added to every question even though they were never an option in that version. When migrating from the edx-solutions version, "Question" titles are added because they are the default in that version.

I have added a new option to the migration script that allows the user to toggle "v0" upgrade, which will set "show_title" to False by default on each answer/mcq/etc. We cannot change the behavior in general, because titles are shown by default in the most recent versions of xblock-mentoring v1.

Example usage:

SERVICE_VARIANT=cms \
  DJANGO_SETTINGS_MODULE="cms.envs.devstack" \
  python -m problem_builder.v1.upgrade \
  "course-v1:HGSE+1x+2015" --version=v0

Default behavior (without the --version=v0 flag):
screen shot 2015-07-24 at 1 14 43 pm

New behavior (with the --version=v0 flag):
screen shot 2015-07-24 at 1 14 53 pm

@mtyaka
Copy link
Member

mtyaka commented Jul 26, 2015

@bradenmacdonald The change looks good to me. The tests fail because convert_xml_v1_to_v2 was renamed, but is still being imported under the old name in the test. 👍 once the test is fixed.

bradenmacdonald added a commit that referenced this pull request Jul 27, 2015
Allow toggling show_title behaviour during upgrade (OC-805)
@bradenmacdonald bradenmacdonald merged commit 21fc19e into master Jul 27, 2015
@bradenmacdonald bradenmacdonald deleted the fix-hgse-upgrade-ii branch July 27, 2015 20:41
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.

3 participants