Repository navigation
A tombstone pushed to an api source with an external_id no longer needs a filename, so {"external_id":"note-7","deleted":true} marks the document missing instead of being rejected - #1487
Merged
Conversation
…ds a filename, so {"external_id":"note-7","deleted":true} marks the document missing instead of being rejected
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
4 tasks done
gedaiu
added a commit
to re-cinq/utopia
that referenced
this pull request
Nov 10, 2026
Sync upstream dev into re-dev (2026-11-10): deeplethe#1487, deeplethe#1488, deeplethe#1490, deeplethe#1491
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
重提 #1393(原作者 @QuintinBotes 发现的问题,谢谢),带上 10-24 评审要的三处测试修改。
IngestBody.filename加#[serde(default)]:墓碑的身份是external_id,处理路径本来就不看文件名,但字段必填让{"external_id": …, "deleted": true}在反序列化那一步就被拒。其余情况不变:有内容的推送缺文件名仍然 400(filename.trim().is_empty()的校验还在)。文档表里的filename一行注明墓碑可省。怎么验证的
an_api_tombstone_needs_only_its_external_id:推一条note-7,再推只带external_id的墓碑,断言api:note-7这份文档的missing_since真的设了(回复对没推过的 id 也是marked_missing,所以不看回复看文档);再推一条有内容没文件名的,断言不是 200;结尾f.cleanup().await。cargo test -p utopia-server an_api_tombstone_needs_only_its_external_id通过。Closes #1393 的讨论;关联 #1393。
🤖 Generated with Claude Code