Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Cleanup: conflict handling without checksum

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

メンテナーはふだん 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 の本文から書いたものです。

説明

1. to develop design call discuss discussion ux

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:

  1. Avoid extra conflict dialogs when the file is overwritten with the same content.
  2. 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

環境構築

はじめの一歩

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

nextcloud/text のほかの issue

nextcloud/text の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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