[QTI] A gap match question with min-associations reports no validation errors
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 18/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript
- Lĩnh vực
- frontend
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
❌ 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.
- Ngôn ngữ chính
- JavaScript
- Star
- 214
- Fork
- 327
- Merge trung bình
- 17 giờ 5 phút
- Pull request đã merge (30 ngày)
- 25
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của learningequality/studio
-
Community library status changes don't update `date_updated`Có thể đã có người làm @ArpitaSamanta10 đã nhận 14 ngày trước. Đang mởcommunity-contribution-in-progress DEV: backend good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
learningequality/studio#6414 · 8 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Activation key can activate a different account whose email differs only in caseCó thể đã có người làm @Madhu-priya123 đã nhận 5 ngày trước. Đang mởDEV: backend
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
learningequality/studio#6410 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
DEV: backend
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
learningequality/studio#6409 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
DEV: backend
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
learningequality/studio#6407 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Stripe webhook accepts events when no webhook secret is configuredCó thể đã có người làm @adibmbrk đã nhận 14 ngày trước. Đang mởcommunity-contribution-in-progress DEV: backend good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
learningequality/studio#6404 · 3 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của learningequality/studio
Issue tương tự
-
[bug] 提瓦特记事本原石检测框宽度较窄Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
babalae/bettergi-scripts-list#3905 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] "Configure Colota" opens Colota with "Invalid configuration: No configuration data in URL"Đang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 87/100
dedicatedcode/reitti#1445 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
New tool: Uncle DeskCó thể đã có người làm @github-actions đã nhận hôm nay. Đang mởsubmission triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
kausalflow/tools#384 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add spaced repetition schedulingĐang mởgood first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
-
Fuzz: css syntax bug foundĐang mởarea: css
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày