[QTI] Saving a deleted formula can overwrite another formula

オープン
#6,472 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
javascript, python
領域
frontend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
JavaScript
スター
214
フォーク
327
平均マージ
17時間 5分
マージ済み PR(30日)
25

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

learningequality/studio のほかの issue

learningequality/studio の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。