[QTI] Saving a deleted formula can overwrite another formula

Abierto
#6,472 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
45/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
javascript, python
Área
frontend

Línea de trabajo

The issue identifies TipTap transactions and the formula dialog but names no source file or test. Start by searching the repository for the formula dialog and its save behavior, then inspect the existing tests around formula deletion. Done when saving after the target is deleted leaves the surviving formula unchanged, including when both formulas have identical LaTeX.

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

Descripción

bug

❌ 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 the formula dialog after its target is removed changes the formula left at the old position.

Expected behavior

Saving changes only the formula that opened the dialog.

User-facing consequences

An edit can overwrite a surviving formula without the author selecting it.

Steps to reproduce

  1. Load a prompt with two adjacent editor-made x formulas and open the dialog on the first.
  2. While the dialog is open, apply a TipTap transaction deleting only the first formula.
  3. Save y in the dialog and inspect the remaining formula.

Acceptance Criteria

  • Saving after a transaction deletes the dialog's target leaves the surviving formula unchanged, even if it has identical LaTeX.

Context

Reproduced in Jest/jsdom on unstable at 2713cbf33.

AI usage

Codex drafted the issue from the #6309 review. It ran the deletion and save in a real TipTap editor under Jest and inspected the serialized result.

Lenguaje dominante
JavaScript
Estrellas
214
Forks
327
Merge medio
17 h 5 min
PR fusionados (30 d)
25

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 JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.