Skip to content

fix: callers, callees and impact tell a page from a same-named microflow - #2774

Merged
ako merged 1 commit into
mainfrom
claude/issue-triage-prioritization-24rqgv
Dec 2, 2026
Merged

ako merged 1 commit into
mainfrom
claude/issue-triage-prioritization-24rqgv

Conversation

@ako

@ako ako commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Fixes #2771 (upstream mendixlabs#2032).

Problem

callers (also --transitive), callees, refs and impact looked 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 on TargetType and 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 a TargetType column when the name names several kinds, as show references does since [up#2004] SEC012 conflates a microflow with a snippet of the same name #2730. The shared rule is now namesSeveralKinds.
  • execShowCallers and execShowCallees are split into their catalog check plus a function that prints from the loaded catalog (showCallers, showCallees), as showReferences already was, so they can be tested against a seeded catalog.

Evidence

  • Test first: mdl/executor/callers_same_name_2771_test.go uses the reporter's three-document chain.
    • With the type conditions stripped (the old behaviour), the direct and transitive tests fail with RevokeStart as a depth-1 caller of the microflow.
    • It also covers callees following types and impact's target type.
  • Live, Mendix 11.12.6, the reporter's documents:
    • Callers of the MICROFLOW are RevokeConfirm (1), the PAGE (2), RevokeStart (3).
    • Callers of the PAGE are RevokeStart (1).
  • make ci-local passed.

Generated by Claude Code

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
@ako
ako merged commit 6813a9b into main Dec 2, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[up#2032] callers, refs and impact merge a page and a microflow that share a name (lookup by name only)

2 participants