[ENHANCEMENT] [MER-5925][MER-5927] Improve section pool migration - #301
Merged
Merged
Conversation
darrensiegel
approved these changes
Sep 12, 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
This enhances migration of legacy section pools, a rarely used legacy feature that combines heterogeneous questions into sections each containing a group of questions (typically related) to be selected as a unit. This feature does not exist in torus. Migration has handled these by combining all questions in a pool section into a single synthesized Torus multi-input activity to be selected from the activity bank.
A weakness of this translation has been that multiple choice questions in the section may use rich content including images and tables for the choices. But multi-input dropdowns can only contain plain text. In addition, "magic spreadsheet" [skill map] handling did not allow for linking items in the newly synthesized questions to spreadsheet entries with legacy ids.
Motivation
This enhancement was motivated by migration of Argument Diagramming (HTML5), whose section pools contain table-based and image-based choices and whose spreadsheet maps learning objectives to their legacy questions and parts.
Changes
Spreadsheet support
The supporting magic-spreadsheet changes resolve learning-objective references against the preserved section-pool provenance. They also include drive-by compatibility and robustness improvements not strictly required by the motivating tickets: exact and resource-scoped matching precede narrow ordinal fallbacks, legacy Step references are handled, blank Problem rows apply at resource level, and LO Ref is optional when course-defined objectives supply the needed information.
Verification
Section MCQ question to multi-input part with table-based choices:
Section MCQ question to multi-input part with image-based choices: