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
fix(templates): introduce ErrMultipleParents sentinel; add unit test
- model/relation.go: declare ErrMultipleParents sentinel; wrap it into
Relations.ParentKey error with %w so errors.Is can detect it
- model/object.go: use errors.Is(err, ErrMultipleParents) in Config.ParentKey
so only the shared-variables case falls back to the structural parent;
all other relation errors are now propagated; update comment to cite
the full VariablesForRelation invariant (NewOtherSideRelation hard-codes
keboola.VariablesComponentID, making both checkDefinedOn guards unreachable)
- mapper/ignore/remote.go: update comment to clarify the > 1 guard fires
only when the variables config was absent from the loaded batch during
relation linking, so the two-pass dedup never ran for it
- mapper/ignore/remote_test.go: add
TestIgnoreMapper_AfterRemoteOperation_Variables_SharedByMultipleConsumers
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments