Repository navigation
Read stored merge rewrites in model field order in TypeScript - #527
saurav-shakya wants to merge 3 commits into
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
|
This is PR 1 of 10 you may keep open at a time. |
|
This PR has no linked approved issue. Open an issue, get it discussed and Maintainers: reopen this PR to override the gate (it gets the |
|
This PR has no linked approved issue. Open an issue, get it discussed and Maintainers: reopen this PR to override the gate (it gets the |
|
@arrry-hydraDB this one |
|
This PR has no linked approved issue. Open an issue, get it discussed and Maintainers: reopen this PR to override the gate (it gets the |
Summary
TypeScript now rebuilds each stored merge rewrite, and each evidence record in it, in the model's field order instead of spreading the sorted stored JSON.
entity merges,entity_merges, and thegraph.diffmerge lists print the same JSON as Python.Implementation details
Decisions
decodeMergebuilds eachMergeRewritefield by field and reads its evidence with the existingdecodeEvidence, which already returnsEvidencefield order.Validation
typescript/test/resolution.test.ts: a merge that drops a self-loop relation with evidence, then checks the key order of the stored rewrite and of its evidence record. It fails onmain.merge_key_ordercompares the keys of each rewrite and its evidence across both SDKs, so a key order change is caught even though objects compare equal. It fails againstmain's TypeScript.scripts/precheck.py --base origin/mainpasses; full Python and TypeScript suites pass on Kuzu.Limits
None.
Linked issue
Closes #525
AI Assistance
Checklist
/approved.AGENTS.md).Breaking changes
None.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.