Problem with synchronisation with spreadsheet

Đang mở
#2,941 6 bình luận 2 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
javascript
Lĩnh vực
backend

Hướng nghiên cứu

Bắt đầu bằng cách đọc issue 2165 của Forms được liên kết và phần tích hợp richdocuments xung quanh PostWriteListener, tập trung vào cách các lần lưu bảng tính tương tác với việc gửi biểu mẫu. Tái hiện chuỗi ghi đè từ các bước được liệt kê và theo dõi cách các thay đổi tệp làm mất hiệu lực hoặc duy trì các phiên đang hoạt động. Công việc được xem là hoàn tất khi một lần lưu của richdocuments không thể âm thầm ghi đè lần gửi mới nhất và người dùng bị ảnh hưởng được nhắc tải lại hoặc tải xuống phiên bản đã cập nhật.

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

Mô tả

0. Needs triage bug

Please use the 👍 reaction to show that you are affected by the same issue. Please don't comment if you have no relevant information to add!

Describe the bug

Continuation of the story https://github.com/nextcloud/forms/issues/2165. I noticed that this does not always work.

To Reproduce

Steps:

  1. Open the file via richdocuments.
  2. Fill out the form.
  3. After completing the form, make changes to the open file and save.

Result: The last submission will be overwritten by the version from richdocuments.

Expected behavior

It will not allow saving in richdocuments. It will ask to download the updated version first.

Additional context

The solution I found:
In richdocuments, listen to PostWriteListener and if it is CLI, invalidate (delete) all tokens for this file.

Result: All users of the file will receive a message that they need to reload the page. They reload and get the latest version.

Disadvantage: If users had unsaved changes, they will be lost. In my opinion, this is less critical because the user will see that their connection has been lost and will understand that they need to check if all changes are there (plus richdocuments has auto-save, so the impact is minimal). Because now, when richdocuments overwrites Submission, there is no way to track it, and it causes a lot of problems.

Ngôn ngữ chính
JavaScript
Star
385
Fork
133
Merge trung bình
7 giờ 54 phút
Pull request đã merge (30 ngày)
157

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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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/forms

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

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.