Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#6,307 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
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
スター
191
フォーク
308
平均マージ
2日 17時間
マージ済み PR(30日)
64

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

learningequality/studio のほかの issue

learningequality/studio の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。