Repository navigation
fix(catalog): reference the mappings a flow applies and a mapping's JSON structure (#1861) - #2019
Merged
Merged
Conversation
…SON structure (#1861) A flow that applies an import or export mapping (import/export action, REST or web service call) and a mapping built on a JSON structure made no refs row, so refs, show callers and orphan checks reported mappings and structures in use as unreferenced. On FactoryManagement (11.16) 54 of 55 import mappings, 42 of 44 export mappings and 65 of 66 JSON structures had no inbound edge. refs gains mapping_call (flow -> IMPORT_MAPPING / EXPORT_MAPPING, a caller kind) and structure (mapping -> JSON_STRUCTURE) edges, and an import/export activity's ActionRef names its mapping. Schema 35. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Closes #1861.
Problem
#1861 reported three gaps in
CATALOG.REFS. The first is already covered elsewhere:snippet_calledges).So
refs,show callersand orphan checks reported mappings and JSON structures that are in use as unreferenced.ActionRefwas also empty for these actions.Change
New ref kinds:
show callersmapping_callstructureMultiple mappings per action: a REST or web service call can name a request (export) mapping and a response (import) mapping.
microflowMappingRefstherefore returns a list, next to the single-targetmicroflowActionRef.ActionRef: an import or export activity'sActionRefis its mapping. For a REST call with mappings it's the response mapping, or the request mapping if there's no response one.RefTargetObjectTypes: gains IMPORT_MAPPING, EXPORT_MAPPING and JSON_STRUCTURE.Schema version 35, plus updates to the lint-rule skill, the catalog docs, a finding record and the CHANGELOG.
Conflict with fix(catalog): record a snippet call as a snippet_call edge to the SNIPPET (#2017) #2018: both PRs bump the schema; this one is now 36, after fix(catalog): record a snippet call as a snippet_call edge to the SNIPPET (#2017) #2018 took 35.
Evidence
TestMappingRefs_Issue1861andTestMappingActionRef_Issue1861failed first with the reported symptom: no rows and an emptyActionRef.New references:
No new reference points at a document that doesn't exist.
Documents with no reference to them at all:
ActionRefis filled for 53 import, 47 export and 18 REST-call activities.Lint output is identical: 1834 findings with the bundled Starlark rules.
make ci-localpasses exceptcheck-skill-pack-js, which needsnode, andnodeisn't installed in this container. The targets after it pass when run on their own.Not covered
TransformJsonActionget no edge.🤖 Generated with Claude Code