[QTI] A gap match question with min-associations reports no validation errors
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 18/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- javascript
- 領域
- frontend
調査の方向性
Start in contentcuration/contentcuration/frontend/shared/views/QTIEditor/validateItem.js around the isSupportedItem gate (lines ~156-159) and read interactions/gapMatch/Descriptor.js to see why min-associations is unsupported. Reproduce both cases with a Jest probe on unstable, then decide where rule validation should run for readable-but-unsupported items, keeping qti-gap-img and match-group reporting only unreadable interactions. Done means validateQtiItem returns EMPTY_ANSWER_CONTENT with min-associations="1" and isEditableItem is false. Note the issue header says it is not open for contribution and the fix is planned to land with #6309.
索引モデルが issue の本文から書いたものです。
説明
❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.
Target branch: unstable
Observed behavior
validateQtiItemreturns[]for a gap match question that carriesmin-associationsand has a gap with no answer. Without the attribute, the same question reportsEMPTY_ANSWER_CONTENT.isSupportedBodyreturns false formin-associations(gapMatch/Descriptor.js#L21-L27), soisSupportedItemis false andvalidateQtiItemreports only unreadable interactions (validateItem.js#L156-L159).- The editor reads this question in full:
min-associationsmakes it read-only because the builder can't keep the count true, not because the body is unreadable.
Expected behavior
- The question opens read-only and still reports the editor's rule errors, as a question with
<qti-modal-feedback>does.
User-facing consequences
- The exercise's completeness check reads the same result (shared/utils/validation.js#L466), so an imported gap match question with an unanswered gap counts as complete.
Steps to reproduce
- Call
validateQtiItemon the item below: it returns[{ code: 'EMPTY_ANSWER_CONTENT', id: 'g' }].<qti-assessment-item xmlns="http://www.imsglobal.org/xsd/imsqtiasi_v3p0" identifier="i" title="t" adaptive="false" time-dependent="false"> <qti-response-declaration identifier="RESPONSE" cardinality="multiple" base-type="directedPair"/> <qti-item-body> <qti-gap-match-interaction response-identifier="RESPONSE" shuffle="true" max-associations="1"> <qti-gap-text identifier="a" match-max="1">A</qti-gap-text> <p>x <qti-gap identifier="g"/></p> </qti-gap-match-interaction> </qti-item-body> </qti-assessment-item> - Add
min-associations="1"to<qti-gap-match-interaction>and call it again: it returns[].
Context
unstableat 2713cbf330, under Jest.- A site closed #6289's fix missed: an unsupported item skips its rule validation and counts as complete.
- #6309 adds
keepsItemContentread-only checks formin-associationson match and associate; this gate moves there.
Acceptance Criteria
-
validateQtiItemreportsEMPTY_ANSWER_CONTENTfor the item above withmin-associations="1". -
isEditableItemis false for that item. - A gap match question with
<qti-gap-img>ormatch-groupstill reports only unreadable interactions.
AI usage
Claude Code found this while checking the plan for #6309, reproduced both results with a Jest probe on unstable, and drafted this issue.
- 主要言語
- JavaScript
- スター
- 214
- フォーク
- 327
- 平均マージ
- 17時間 5分
- マージ済み PR(30日)
- 25
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
learningequality/studio のほかの issue
-
Community library status changes don't update `date_updated`対応中かも @ArpitaSamanta10 が 14 日前に担当しました。 オープンcommunity-contribution-in-progress DEV: backend good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
learningequality/studio#6414 · コメント 8 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Activation key can activate a different account whose email differs only in case対応中かも @Madhu-priya123 が 5 日前に担当しました。 オープンDEV: backend
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
learningequality/studio#6410 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
DEV: backend
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
learningequality/studio#6409 ·
メンテナーはふだん 1 日以内に返信
-
DEV: backend
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
learningequality/studio#6407 ·
メンテナーはふだん 1 日以内に返信
-
Stripe webhook accepts events when no webhook secret is configured対応中かも @adibmbrk が 14 日前に担当しました。 オープンcommunity-contribution-in-progress DEV: backend good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
learningequality/studio#6404 · コメント 3 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
learningequality/studio の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
babalae/bettergi-scripts-list#3905 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Bug] "Configure Colota" opens Colota with "Invalid configuration: No configuration data in URL"オープン
難易度 1/5 1〜3時間 初心者へのやさしさ 87/100
dedicatedcode/reitti#1445 ·
メンテナーはふだん 1 日以内に返信
-
New tool: Uncle Desk対応中かも @github-actions が今日担当しました。 オープンsubmission triage
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
kausalflow/tools#384 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
-
area: css
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信