Shared fields lose updates across locales

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

Hướng nghiên cứu

Start in ContentService.cs:727-781 to trace the If-Match check, then read ContentService.Publishing.cs:681-698 for how other locales are recomputed. Follow the shared-row version and publish-copy paths, and inspect the provider tests. Done when stale ETags return 412 after shared-field changes, publish skips a changed shared row, and tests pass on every provider.

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

Mô tả

area:content area:localization type:bug

Problem

If-Match is compared with the written locale's draft version only (ContentService.cs:727-781). When a save changes shared (non-localizable) fields, RecomputeOtherLocalesAsync (ContentService.Publishing.cs:681-698) recomputes the other locales' status but not their versions. Editor A saves en and changes price; editor B then PUTs fr with an ETag read earlier, which is still valid, and reverts price. Publish has the same gap: the shared copy is not conditional on the shared row being unchanged.

Proposal

Version the shared row and include it in the ETag, or bump every locale's draft version when shared fields change; make the publish copy conditional.

Acceptance

  • A PUT in one locale with an ETag read before a shared-field change in another locale answers 412
  • Publish does not copy a shared row changed since the publisher's read
  • Tests on every provider

Found in the code review of 17 Nov 2026 (B2).

Ngôn ngữ chính
C#
Star
569
Fork
107
Merge trung bình
2 giờ 49 phút
Pull request đã merge (30 ngày)
397

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 fluentcms/FluentCMS

Tất cả issue của fluentcms/FluentCMS

Issue tương tự

Thêm issue về C#

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.