Normalize legacy multi-answer text-entry QTI items on publish - #6227
Closed
rtibblesbot wants to merge 1 commit into
Closed
rtibblesbot wants to merge 1 commit into
rtibblesbot wants to merge 1 commit into
Conversation
Contributor
Author
|
Outside this PR's scope — tracked under #6103:
@rtibblesbot's comments are generated by an LLM, and should be evaluated accordingly How was this generated?
|
rtibblesbot
marked this pull request as ready for review
September 30, 2026 16:46
rtibblesbot
force-pushed
the
issue-6223-6e656b
branch
2 times, most recently
from
September 30, 2026 17:21
abe6ab2 to
329e9b9
Compare
Rewrite legacy text-entry response declarations (multiple cardinality) to single cardinality with the map_response template when building the QTI archive. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
rtibblesbot
force-pushed
the
issue-6223-6e656b
branch
from
September 30, 2026 22:07
329e9b9 to
3455c72
Compare
Member
|
The erroneous code has not yet reached production. So far, there are no QTI assessment items in the production DB. The only items potentially at risk are the QA items; in that case, we will ask our QA team to edit them again only after we have applied the fix for #6187. |
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
cardinality="multiple"+match_correct, so Kolibri scores every response incorrect.cardinality="single", first answer in<qti-correct-response>, one<qti-map-entry>per answer,map_response.xmltemplate.raw_data -> raw_datafunction (qti/normalize.py) called from_create_native_qti_item; storedraw_datais untouched.qti-text-entry-interactionchange.<qti-mapping>is kept, preserving per-answercase-sensitive.qti-valueare skipped with a warning.References
Fixes #6223. Siblings under #6103: #6187, #6220.
Reviewer guidance
pytest contentcuration/contentcuration/tests/utils/qti contentcuration/contentcuration/tests/utils/test_exercise_creation.pyraw_datadeliberately: the old shape lists every answer in<qti-correct-response>, which_derive_textneeds.AI usage
I used Claude Code to plan and implement this from the issue, with tests written alongside the code. I reviewed the diff and trimmed it for simplicity.
Deviations from the issue spec
qti-valueare left as written (logged) and stay unscored; rewriting them safely needs per-item rule handling.@rtibblesbot's comments are generated by an LLM, and should be evaluated accordingly
How was this generated?
🟡 Waiting for feedback
Last updated: 2026-09-30 22:16 UTC