Repository navigation
feat(webex): skip records with unresolved references - #457
Conversation
Deploying infrahub-sync with
|
| Latest commit: |
c708e6f
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://57fdcbaa.infrahub-sync.pages.dev |
| Branch Preview URL: | https://feat-webex-skip-unresolved-r.infrahub-sync.pages.dev |
There was a problem hiding this comment.
All reported issues were addressed across 5 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
- Point the load-order error and docs at the computed order; explicit order is optional. - Do not check references from a mapping to itself. - Copy only the dicts along a rewritten list path instead of deep-copying every record. - Log dict references without an id as the whole dict. - Document that scalar list references need the option. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
All reported issues were addressed across 3 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@pthmas I have nothing further on this one and all checks pass. The cubic comment on |
A self-reference cannot be checked while its mapping is loading, so passing it through let a reference to a filtered-out record reach the destination. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
iddocohen
left a comment
There was a problem hiding this comment.
I verified that the adapter rejects self-references and ran all 49 Webex adapter tests at this commit. All 20 GitHub checks passed or were skipped.
Problem
A Webex mapping can reference records of an earlier mapping that its filters removed, for example a workspace whose
locationIdpoints to a location filtered out of theLocationSitemapping. A scalar reference is passed to the destination without a check, so the Infrahub destination stops the run because it cannot find the peer. The only workarounds today are lists of excluded IDs in the config, or aparentresource that sends one workspaces request per location.Change
New opt-in Webex resource option
skip_unresolved_references(defaultfalse). When it is on, after filters and transforms:order), or the adapter raises aValueError;The change is limited to the Webex adapter, its tests, its docs page and a changelog fragment.
Testing