Skip source writes when the content is unchanged
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ó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 62/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript
- Lĩnh vực
- api
Hướng nghiên cứu
Start from the PUT handler that already reads the current object to evaluate If-Match, since the stored ETag for comparison comes from that read. Add the MD5-vs-ETag short-circuit after condition checks but before the write, metadata and audit paths, and confirm POST /versionsource and restores still create versions. Read the existing conditional-PUT tests (412 on mismatch) and add cases for an identical PUT returning the current ETag; done means no metadata or audit change on a no-op write, plus a release note.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Every PUT writes, even with identical content. last-modified, "last modified by", and the audit log change with no real change, and change detection (indexes, sync tools, translation status) gets false positives.
Change
- Before writing, compare the MD5 of the new body with the current object's ETag. da-admin already reads the current object for
If-Match, so this adds no storage read. - On a match: no write, no metadata change, no audit entry. Return success with the current ETag; optionally
x-da-unchanged: true. - Conditions are evaluated first: an
If-Matchmismatch is still412, even with identical content. POST /versionsourceand restore points still create a version.
Compatibility: a plain PUT creates no version today (only POST /versionsource and restore points do), so no caller loses versions. What changes: an identical PUT no longer bumps last-modified or "last modified by", or adds an audit entry. A search of first-party repos (2026-11-23) found no caller that re-writes identical content on purpose. The remaining risk is external scripts that re-save a page only to bump last-modified (e.g. to make it show as needing preview); that stops working, so add a release note.
Same change for Helix 6: helix-api-service — skip unchanged writes.
- Ngôn ngữ chính
- JavaScript
- Star
- 6
- Fork
- 18
- Merge trung bình
- 5 giờ 12 phút
- Pull request đã merge (30 ngày)
- 5
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không 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 adobe/da-admin
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
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 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ 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
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
adobe/da-admin#305 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của adobe/da-admin
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
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 80/100
speakeasy-api/speakeasy#2159 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Queued deferred selectors still run after unmountCó thể đã có người làm @LexaTang đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
ianstormtaylor/slate#6375 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
sync cache dist/imgĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
oleeskild/digitalgarden#435 ·
-
broken-links
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
ShaftHQ/shafthq.github.io#1201 ·
Maintainer thường phản hồi trong vòng 1 ngày