Cleanup: conflict handling without checksum
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- リファクタリング
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- javascript
調査の方向性
Start by reading lib/Listeners/NodeWrittenResetDocumentListener.php around line 58 and trace how checksum checks interact with file locks and conflict handling. Compare the listed alternatives, including the linked Nextcloud server issue; the issue does not settle which approach to take. Done means agreeing on and implementing a conflict-handling approach that avoids unnecessary full-file reads while preserving conflict detection.
索引モデルが issue の本文から書いたものです。
説明
We currently store a checksum on every .md file save:
https://github.com/nextcloud/text/blob/19951abbbaca10923da261a74935ec08a85d2e7f/lib/Listeners/NodeWrittenResetDocumentListener.php#L58
This is for two reasons:
- Avoid extra conflict dialogs when the file is overwritten with the same content.
- Detect actual conflicts when the file is written twice in the same second.
Computing the checksum requires reading the entire file and can be costly for large files on external storage.
While this exists for historical reasons we now ship the files_lock app by default which prevents overwriting a text file that is being edited because it's locked.
Alternatives to the status quo
a) Rely on files_lock to prevent most conflicts. Trigger conflicts without checking checksum when the lock is broken or the file is written.
b) Use a server wide checksum implementation https://github.com/nextcloud/server/issues/56057
c) only check checksums when files_lock is not there
d) Rely on files_lock and update live editing sessions with the new content when a lock is broken.
- 主要言語
- JavaScript
- スター
- 665
- フォーク
- 133
- 平均マージ
- 1日 17時間
- マージ済み PR(30日)
- 172
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nextcloud/text のほかの issue
-
0. Needs triage bug
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
nextcloud/text#9482 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
0. Needs triage bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
folder description not shows when using folder tree to navigate再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンbug feature: folder description
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
nextcloud/text#9334 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Deleting a file from the editor's own "⋯" menu fails with 423 Locked: Text's own lock blocks itオープンbug
難易度 4/5 3〜5日 初心者へのやさしさ 56/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
bug 優先: 低
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
admission-deferred priority: medium status: ready work-class: scoped
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
melodic-software/claude-code-plugins#10887 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
-
難易度 1/5 1〜3時間 初心者へのやさしさ 91/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 2 日以内に返信