Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Cleanup: conflict handling without checksum

Đang mở
#9,342 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
JavaScript
Star
665
Fork
133
Merge trung bình
1 ngày 17 giờ
Pull request đã merge (30 ngày)
172

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của nextcloud/text

Tất cả issue của nextcloud/text

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.