Skip to content

Conversation

@AlexanderNZ
Copy link

Summary

Fixes a bug in formatConnections where outgoing connections were iterating over incomingConnections instead of outgoingConnections.

Problem

The getModelObjectRelationships tool was returning incorrect data for outgoing connections. When a user queried "what does Service A connect to?", they would see incoming connections mislabeled as outgoing.

Solution

Changed line 236 in src/format.ts from:

  • const connectionString = incomingConnections.map(c => {
  • const connectionString = outgoingConnections.map(c => {

Verified the fix by calling getModelObjectRelationships and confirming outgoing connections now display the correct source/target relationships.

The formatConnections function was incorrectly iterating over
incomingConnections when formatting outgoing connections, causing
the getModelObjectRelationships tool to return wrong data.
@AlexanderNZ AlexanderNZ closed this Dec 9, 2025
@AlexanderNZ AlexanderNZ deleted the fix/outgoing-connections-bug branch December 9, 2025 21:24
@AlexanderNZ AlexanderNZ restored the fix/outgoing-connections-bug branch December 9, 2025 21:29
@AlexanderNZ AlexanderNZ reopened this Dec 9, 2025
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.

1 participant