Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Abierto
#6,307 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
20/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
xml
Área
frontend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Python
Estrellas
192
Forks
310
Merge medio
2 d 6 h
PR fusionados (30 d)
65

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de learningequality/studio

Todos los issues de learningequality/studio

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.