[QTI] - Validation issues for question of type 'Associate'
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 22/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 领域
- frontend
调研方向
The issue is in the question editor's validation for the Associate question type, which shows the inline error "Distractors cannot repeat another item". Reproduce it by creating an exercise on unstable and adding an Associate question, then find where the matching pairs and distractors are validated. The issue is marked not open for contribution, and the wording and upper-limit points still need a maintainer decision, so confirm with the maintainers before starting.
由索引模型根据 Issue 内容生成。
描述
❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.
Observed behavior
Observed while testing: https://github.com/learningequality/studio/pull/6113
See the screenshot:
- It's possible to have duplicate matching pairs:
The editor allows identical matching pairs (e.g., Pair 3 and Pair 4 both set toThe Colosseum→Italy) to be created and saved without triggering a validation error or warning. - The distractor validation error is duplicated. Entering duplicate distractors (e.g.,
Greeceadded twice) triggers the inline validation error: "Distractors cannot repeat another item". - The current phrasing "Distractors cannot repeat another item" sounds a bit vague. Perhaps we should change it to "Distractors cannot match an existing item or distractor". A note that if I enter a distractor string that is identical to a target answer in one of the pairs (e.g., Pair 1 target is Japan, and Distractor 1 is also set to Japan) then currently I would see the same message ""Distractors cannot repeat another item".
- Seems that there is no upper limit on the number of matching pairs/distractors which could be problematic but not sure at this point...
Expected behavior
The issues should be addressed and fixed.
Steps to reproduce the issue
- Sign in to Studio at
unstable - Go to Channel > Channel editor > New exercise
- Create an exercise and add a question of type "Associate"
- Check the validation
Usage Details
- Studio Unstable
- OS: Windows 11
- Browser: Chrome, Firefox
- 主要语言
- Python
- 星标
- 192
- 派生
- 310
- 平均合并
- 2 天 17 小时
- 30 天内合并 PR
- 69
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
learningequality/studio 的其他 Issue
-
DEV: frontend P3 - low
难度 2/5 1-3 小时 新手友好度 74/100
learningequality/studio#5868 ·
维护者通常 1 天内回复
-
TAG: tech update / debt
难度 2/5 1-3 小时 新手友好度 62/100
learningequality/studio#2245 ·
维护者通常 1 天内回复
-
bug
难度 4/5 1-2 天 新手友好度 35/100
learningequality/studio#6315 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 4/5 1-2 天 新手友好度 25/100
learningequality/studio#6314 ·
维护者通常 1 天内回复
-
bug
难度 3/5 1-2 天 新手友好度 25/100
learningequality/studio#6313 ·
维护者通常 1 天内回复
查看 learningequality/studio 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 82/100
EchoTools/nevr-runtime#651 ·
维护者通常 1 天内回复
-
bug frontend rt sev-3
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
noontide-co/mainbranch#1211 · 1 条评论 ·
维护者通常 1 天内回复
-
[1.x Bug] run-operation --sql reports success but rolls back writes on transaction-capable adapters未关闭triage
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 1 天内回复