Skip to content

feat: command to migrate v1 to v2 lib references#825

Open
asadali145 wants to merge 2 commits into
mainfrom
asad/course-lib-content-migration
Open

feat: command to migrate v1 to v2 lib references#825
asadali145 wants to merge 2 commits into
mainfrom
asad/course-lib-content-migration

Conversation

@asadali145

@asadali145 asadali145 commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

What are the relevant tickets?

https://github.com/mitodl/hq/issues/12148

Description (What does it do?)

Adds a command to update v1 library references to v2 library

How can this be tested?

  • Setup plugin by following the readme.
  • Checkout asad/v1-v2-lib-migration-fixes-and-command for edx-platform branch
  • Create source and target courses and make sure the mapping exists.
  • Create legacy library content in source course and publish it. Verify it exists in target course.
  • Run the command ./manage.py cms migrate_legacy_library_blocks_to_item_bank --course-id <SOURCE_COURSE_ID> --persist-publish-state
  • Verify the block is updated to V2 in both child and source course and published with --publish-if-was-published flag.

@asadali145

Copy link
Copy Markdown
Contributor Author

Marked this as WIP, Will move to review after the upstream PR is merged openedx/openedx-platform#38865

@asadali145

Copy link
Copy Markdown
Contributor Author

@arslanashraf7, this should be ready for review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant