Skip to content

Updating library version of a pasted library_content component loses learner state #33910

Description

@kdmccormick

Reproduction

  • In Studio:
    • Create a library ("libX") and add a problem to it.
    • Within a course unit, create a Library Content component ("LC1") and point it at libX.
    • Go to libX and make an edit. For example, you could change the question prompt slightly.
    • Go back to the unit with LC1. It should prompt you to "Update Now". Don't update.
    • Copy LC1 and paste it into the same unit (creating "LC2"). It should also prompt you to "Update Now". Don't update.
    • Publish the unit.
  • In LMS:
    • Go to LC1. Submit the correct answer.
    • Go to LC2. Submit the correct answer.
  • In Studio:
    • Go to the unit with LC1 and LC2.
    • Hit "Update Now" on both LC1 and LC2.
    • Publish the unit.
  • Back in LMS:
    • Go to LC1. Your correct answer should still be submitted.
    • Go to LC2.
      • Expected: Your correct answer should still be submitted.
      • Actual: The problem is unanswered. Your learner state has been lost.

Explanation

Slack: https://openedx.slack.com/archives/C05NT2YN820/p1702058122859519?thread_ts=1702047279.641349&cid=C05NT2YN820

Fix

We've discussed a fix in the #content-libraries-v2 channel in Slack: https://openedx.slack.com/archives/C05NT2YN820/p1702072194157149?thread_ts=1702047279.641349&cid=C05NT2YN820

Affects

master (confirmed)

Quince (assumed but not confirmed)

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions