Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#6,307 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
20/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
xml
Ambito
frontend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
191
Fork
308
Merge medio
2g 6h
PR unite (30g)
65

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di learningequality/studio

Tutte le issue di learningequality/studio

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.