Cleanup: conflict handling without checksum
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
- Lĩnh vực
- backend, distributed-systems
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ả
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.
- 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
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của nextcloud/text
-
0. Needs triage bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
nextcloud/text#9482 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
0. Needs triage bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
folder description not shows when using folder tree to navigateCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mởbug feature: folder description
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
nextcloud/text#9334 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Deleting a file from the editor's own "⋯" menu fails with 423 Locked: Text's own lock blocks itĐang mởbug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 56/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của nextcloud/text
Issue tương tự
-
admission-deferred priority: medium status: ready work-class: scoped
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
melodic-software/claude-code-plugins#10887 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 91/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Channel access dropdown: "Private" option is not translated into Japanese in Zulip Server 12Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 2 ngày
-
enhancement ui-dashboard
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày