[QTI] Saving a deleted formula can overwrite another formula

Ouverte
#6,472 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
45/100
Type d'issue
Bug
Clarté
Clairement spécifiée
Activité
Active
Stack technique
javascript, python
Domaine
frontend

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
JavaScript
Étoiles
214
Forks
327
Merge moyen
17 h 5 min
PR mergées (30 j)
25

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de learningequality/studio

Toutes les issues de learningequality/studio

Issues similaires

Plus d'issues JavaScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.