[QTI] Saving a deleted formula can overwrite another formula

Aperta
#6,472 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
45/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript, python
Ambito
frontend

Direzione di ricerca

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.

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

Descrizione

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.

Lingua principale
JavaScript
Stelle
214
Fork
327
Merge medio
17h 5m
PR unite (30g)
25

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 JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.