Repository navigation
[BUG FIX] [MER-5979] Preserve scored superactivity wrapper links - #304
Merged
Merged
Conversation
rgachuhi
approved these changes
Sep 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes MER-5979, a regression introduced by #303 when generated superactivity wrapper pages and their embedded activities began retaining the same legacy resource ID for provenance.
With that shared ID, derivative-reference resolution preferred the activity for every
wb:inlineplaceholder. An inline reference from another workbook page therefore embedded the activity directly instead of linking to its scored wrapper page. In the Discrete Math Primer, this left the five Simplification wrapper pages unreachable and removed their expected assignment and assessment-reporting behavior.Fix
activity_linkbehavior.This retains the shared legacy ID needed for activity provenance and skill-model spreadsheet processing.
Coverage
Regression tests cover:
Verification
AWS_S3_PORT=9000 npm test -- --runInBand— 148 tests passednpm run lint— no errors; three pre-existing warnings insrc/resources/webcontent.tsgit diff --checkv_1_9-echo_migrationbranch using itsinlineorganization and inspected the generated digest. Simplification problems 1–5 each appear once as a link from the ungraded Simplification lesson to a distinct graded wrapper page; every wrapper contains exactly one reference to the matchingoli_embeddedactivity. The unreferenced Problem 6 descriptor is correctly absent.Related legacy DMP migration source: https://svn.oli.cmu.edu/svn/content/principles_of_computing/discrete_math_primer/branches/v_1_9-echo_migration