Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[QTI] - Validation issues for question of type 'Associate'

未关闭
#6,316 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 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 内容生成。

描述

bug DEV: frontend P0 - critical

❌ 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:

Image
  1. It's possible to have duplicate matching pairs:
    The editor allows identical matching pairs (e.g., Pair 3 and Pair 4 both set to The Colosseum → Italy) to be created and saved without triggering a validation error or warning.
  2. The distractor validation error is duplicated. Entering duplicate distractors (e.g., Greece added twice) triggers the inline validation error: "Distractors cannot repeat another item".
  3. 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".
  4. 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

  1. Sign in to Studio at unstable
  2. Go to Channel > Channel editor > New exercise
  3. Create an exercise and add a question of type "Associate"
  4. 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 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

learningequality/studio 的其他 Issue

查看 learningequality/studio 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。