Repository navigation
fix: callers, callees and impact tell a page from a same-named microflow - #2774
Merged
Merged
Conversation
callers and callees built their queries on the target or source name alone, so with a page and a microflow both named Sales.Order_Revoke a flow that only opens the page was a direct caller of the microflow, and the transitive walk counted everything upstream of the page. Walk nodes are now type and name; a name of several kinds prints one block per kind with the callers' types, and impact adds the target type as refs does. Fixes #2771 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
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.
Fixes #2771 (upstream mendixlabs#2032).
Problem
callers(also--transitive),callees,refsandimpactlooked a document up by qualified name only. When a page and a microflow share a name (Sales.Order_Revoke), the reference walks merged them. A flow that only opens the page was reported as a direct caller of the microflow, and the transitive walk counted everything upstream of the page against the microflow. On the reporter's model that gave 17 "callers" for a microflow with 2.Fix
callers: walk nodes are (type, name). The recursive CTE seeds onTargetTypeand joins on name and type. When the name is the target of more than one kind of document, the output is one block per kind (Callers of Sales.Order_Revoke (MICROFLOW)), with each caller's type. A name of one kind prints as before.callees: seeds only on the flow of that name and joins on type.impact: adds aTargetTypecolumn when the name names several kinds, asshow referencesdoes since [up#2004] SEC012 conflates a microflow with a snippet of the same name #2730. The shared rule is nownamesSeveralKinds.execShowCallersandexecShowCalleesare split into their catalog check plus a function that prints from the loaded catalog (showCallers,showCallees), asshowReferencesalready was, so they can be tested against a seeded catalog.Evidence
mdl/executor/callers_same_name_2771_test.gouses the reporter's three-document chain.make ci-localpassed.Generated by Claude Code