Skip to content

Fix getTableRows to aggregate rows from all DataTable instances#4

Merged
timtebeek merged 1 commit intomainfrom
fix/aggregate-data-table-rows
Feb 23, 2026
Merged

Fix getTableRows to aggregate rows from all DataTable instances#4
timtebeek merged 1 commit intomainfrom
fix/aggregate-data-table-rows

Conversation

@timtebeek
Copy link
Member

Summary

  • getTableRows previously returned rows from only the first matching DataTable instance, silently dropping rows from other instances of the same table class
  • When multiple recipes populate the same data table (e.g., ServiceEndpoints from both Java and Node.js discovery), the classToEntityId registry was incomplete, causing CALM relationship entity IDs to remain unresolved
  • Now aggregates rows from all instances of the matching table class

Test plan

  • Verify existing GenerateCalmArchitectureTest tests still pass
  • Verify CALM relationships resolve entity IDs when multiple recipes populate the same data table

Previously, getTableRows returned rows from only the first matching
DataTable instance, silently dropping rows from other instances of
the same table class. When multiple recipes populate the same data
table (e.g. ServiceEndpoints from both Java and Node.js discovery),
the classToEntityId registry was incomplete, causing CALM relationship
entity IDs to remain unresolved.
@github-project-automation github-project-automation bot moved this to In Progress in OpenRewrite Feb 23, 2026
@timtebeek timtebeek requested a review from MBoegers February 23, 2026 18:20
@timtebeek timtebeek added the bug Something isn't working label Feb 23, 2026
@timtebeek timtebeek moved this from In Progress to Ready to Review in OpenRewrite Feb 23, 2026
@timtebeek timtebeek merged commit 67b9f8e into main Feb 23, 2026
1 check passed
@timtebeek timtebeek deleted the fix/aggregate-data-table-rows branch February 23, 2026 18:30
@github-project-automation github-project-automation bot moved this from Ready to Review to Done in OpenRewrite Feb 23, 2026
@timtebeek
Copy link
Member Author

Merged already given the clear issue now that we produce multiple instances of the same data table.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant