Skip to content

LC Course Prototype - #36909

Closed
kdmccormick wants to merge 35 commits into
masterfrom
lc-course-prototype
Closed

LC Course Prototype#36909
kdmccormick wants to merge 35 commits into
masterfrom
lc-course-prototype

Conversation

@kdmccormick

Copy link
Copy Markdown
Member

@kdmccormick

Copy link
Copy Markdown
Member Author

kdmccormick and others added 15 commits June 17, 2025 16:35
This commit stops this error:

   ContainerVersion.unitversion.RelatedObjectDoesNotExist: ContainerVersion has no unitversion.

from happening when accessing migrated content.

You will have to re-migrate the content to fix. You may even have to discard the
original broken migrated content.
…tline

feat: Migrate an OutlineRoot into a library
we were missing the unique_together on modulestoreblocksource,
meaning we had multiple modulestoreblocksources for the
same legacy usage key.

also, replace bulk_create with a series of saves to un-bork
forwarding for now.

also, this renames forwarded_by -> forwarded
@kdmccormick kdmccormick added the create-sandbox open-craft-grove should create a sandbox environment from this PR label Jun 24, 2025
@open-craft-grove

Copy link
Copy Markdown

Sandbox deployment failed 💥
Please check the settings and requirements.
Retry deployment by pushing a new commit or updating the requirements/settings in the pull request's description.
📜 Failure Logs
ℹ️ Grove Config, Tutor Config, Tutor Requirements

@open-craft-grove

Copy link
Copy Markdown

Sandbox deployment failed 💥
Please check the settings and requirements.
Retry deployment by pushing a new commit or updating the requirements/settings in the pull request's description.
📜 Failure Logs
ℹ️ Grove Config, Tutor Config, Tutor Requirements

@open-craft-grove

Copy link
Copy Markdown

Sandbox deployment failed 💥
Please check the settings and requirements.
Retry deployment by pushing a new commit or updating the requirements/settings in the pull request's description.
📜 Failure Logs
ℹ️ Grove Config, Tutor Config, Tutor Requirements

@open-craft-grove

Copy link
Copy Markdown

Sandbox deployment successful 🚀
🎓 LMS
📝 Studio
ℹ️ Grove Config, Tutor Config, Tutor Requirements

Also special case ignore "discussion" blocks, for those libraries where
we already wrote that data into the structures in places.
@open-craft-grove

Copy link
Copy Markdown

Sandbox deployment successful 🚀
🎓 LMS
📝 Studio
ℹ️ Grove Config, Tutor Config, Tutor Requirements

@bradenmacdonald

Copy link
Copy Markdown
Contributor

For the record, here's how I set up the sandbox for this:

  1. Import the demo course
  2. Create an empty library
  3. Go to https://studio.pr-36909-139931.sandboxes.opencraft.hosting/admin/modulestore_migrator/modulestoresource/add/
    Add source with key course-v1:... from step 1.
  4. Go to https://studio.pr-36909-139931.sandboxes.opencraft.hosting/admin/modulestore_migrator/modulestoresource/
    Action: Start migration (select the course from step 3), Target: library key from step 2 (e.g. lib:OpenedX:Demo), Replace: YES, Aggregate up to CourseRun, Go
  5. Go to the library and publish all.
  6. Repeat steps 4 and 5 (workaround required for issues in the prototype)
  7. Verify at https://studio.pr-36909-139931.sandboxes.opencraft.hosting/admin/xblock_new/learningcorelearningcontext/ that the course is now enabled for Learning Core
  8. Go to https://app.pr-36909-139931.sandboxes.opencraft.hosting/learner-dashboard/ and view the course!

@kdmccormick

Copy link
Copy Markdown
Member Author

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

Labels

create-sandbox open-craft-grove should create a sandbox environment from this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants