Note Overwrite Issue Report

This is a report on a phenomenon in which a note was overwritten.
Please note that this occurred for the first time this time, and it has not been reproduced.

バグ報告

Prerequisites

Target Data

There are the following notes:

  • A. note:nVJ3sYZS
  • B. note:4pMRHMib

Phenomenon

  • I was working in Discussion Mode with the preview enabled.
  • I had one unrelated note open in a separate pane.

Steps

  1. Edited A
  2. Selected B
  3. Edited B
  4. When I went to check A by looking at the note list, there were two copies of note B, and A had disappeared (or at least, it appeared that way).
    Checking the revision history, it appears that at either step 2 or step 3, A was overwritten with B’s title and entire contents.
    The subsequent edits were actually being made to A.

Recovery

I recovered the note by using “Restore this revision” in A’s revision history.
Note that although the contents were restored, the title was not, so I fixed the title manually.

利用環境

  • Platform: macOS
  • Platform version: Golden Gate 27.0.1
  • App Version: 6.3.0

再現方法

Hi @Yuu_Terachi さん

Thanks for the report. That sounds weird.
I’ll look into it next week!
By the way, do you mean “Distraction-free Mode”?
Do you mean you have two notes A & B, and when editing B, A was overwritten unexpectedly, in the same window? Is it possible to share the revision history screen of these two?
日本語で説明していただいても構いません。ご回答お願いいたします!

It smells like a race condition bug :thinking:

こんばんわ

>By the way, do you mean “Distraction-free Mode”?

「Toggle Destraction Free」+「Toggle Side by Side」で作業してました。

>Do you mean you have two notes A & B, and when editing B, A was overwritten unexpectedly, in the same window?

はい。その通りです。

もう少し正確に言うと

  1. Aを集中モード+SideBySideで編集後
  2. CMD+/でリストを表示させ、Bを選択して
  3. Bを集中モード+SideBySideで編集開始
  4. Aを参照しようとCMD+/でリストを見てみるとAが見当たらずBと同じタイトルのノートがもう一つ出来ていました。(実際にはAがBの内容で上書きされており、3の編集は上書きされたAに対して行われていました)

>Is it possible to share the revision history screen of these two?

AのノートがBで上書きされた部分のリビジョンヒストリの画面を添付いたしました。

尚、この時、Bは更新されていませんでした。(リストの更新表記及び、リビジョンヒストリで確認)

なんだかややこしいですね。。(?_?)

よろしくお願い申し上げます。

情報ありがとうございます!
race condition bugで間違いなさそうです。おそらく直近のパフォーマンス改善によりノートを開く速度が速すぎて、開いた後にエディタの保存がトリガーされて上書きされてしまう…という流れのようです。次のバージョンで修正します!