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

[QTI] Saving a question drops data-catalog-idref from its prompt

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
20/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
xml
领域
frontend

调研方向

The issue names no files or tests; start by locating the QTI choice-item editor and the path that emits its raw_data. Trace how the prompt is opened and serialized, then add the requested test from opening the item through emitted raw_data. Done means edits preserve the prompt's data-catalog-idref, including when prompt text around the element changes.

由索引模型根据 Issue 内容生成。

描述

bug DEV: frontend

❌ 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

  • Saving a QTI choice question rewrites <qti-prompt> without its <span data-catalog-idref="…">, even when only a hint changed.
  • The item still carries the referenced <qti-catalog> (kept since #6290), now with nothing pointing at it.

User-facing consequences

  • An imported item's glossary term stops being a glossary term for learners after any edit in Studio.

Steps to reproduce

  1. Open a QTI choice item with this prompt and catalog:
    <qti-prompt>Pick the <span data-catalog-idref="g1">vowel</span>.</qti-prompt>
    …
    <qti-catalog id="g1">
      <qti-card support="glossary-on-screen"><qti-html-content><p>A letter like A, E, I, O, U.</p></qti-html-content></qti-card>
    </qti-catalog>
    
  2. Click Edit, expand Hints, click Add hint, type any text, click Close.
  3. The emitted raw_data has <qti-prompt><p>Pick the vowel.</p></qti-prompt>.

Context

  • Seen on the #6290 branch (90c5b6190) in the QTI editor dev demo page, Chromium.

Acceptance Criteria

  • Editing any part of such an item keeps data-catalog-idref on the prompt element that carried it.
  • Editing the prompt text around such an element keeps the attribute.
  • A test covers it from opening the item to the emitted raw_data.

AI usage

Claude Code found this during manual QA of #6290 and drafted the issue.

主要语言
Python
星标
213
派生
314
平均合并
2 天 17 小时
30 天内合并 PR
68

环境准备

  • 提供 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 摘要。