Skip source writes when the content is unchanged
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 62/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- javascript
- 领域
- api
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- JavaScript
- 星标
- 6
- 派生
- 18
- 平均合并
- 5 小时 12 分钟
- 30 天内合并 PR
- 5
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
adobe/da-admin 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 68/100
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 25/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 73/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 80/100
speakeasy-api/speakeasy#2159 ·
维护者通常 1 天内回复
-
Queued deferred selectors still run after unmount可能已有人在做 @LexaTang 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 70/100
ianstormtaylor/slate#6375 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 82/100
oleeskild/digitalgarden#435 ·
-
broken-links
难度 2/5 1-3 小时 新手友好度 78/100
ShaftHQ/shafthq.github.io#1201 ·
维护者通常 1 天内回复