You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Two-way relationships: restore partner-side dedup via pair-key set
Source emits both sides of a two-way relationship as separate Column
resources, but processing one side already reconciles both physical
columns + both Appwrite-level meta docs (utopia's createRelationship/
deleteRelationship cascade). Without dedup, the partner pass can fire
DropAndRecreate again — partner's source createdAt is independent of
parent's and may not match what we just stamped on dest's partner meta
(parent's createdAt).
Reintroduces the pair-key dedup that existed in 791dbb1 and was removed
in 6e6f825 when relationships routed exclusively through UpdateInPlace.
Commit 786a27b reopened the DropAndRecreate path for createdAt-different
without restoring the dedup; this fixes that gap.
Pair-key is canonical (sorted, scoped to dbSeq) so both sides resolve to
the same string. Set after Tolerate, after UpdateInPlace success, and
after the create-path completion. Skip check at the top of createField.
0 commit comments