Structurizr only shows the first relationship between Components #191
-
ExpectedI have created a workspace and model similar to the following. I expect to see multiple relationships between components in different containers and by proxy their containers depending on the level of the view. `workspace {
container mySystem { component mySystem.authoringService "authoring-service" {
}` ActualWhen I view this model using Structurizr, only the first of the multiple relationships that should show up between components and containers displays. If I, however, make multiple relationships between the containers, as follows, that will display multiple relationships correctly. `workspace {
container mySystem { component mySystem.authoringService "authoring-service" {
}` Steps to reproducePlease see attached models. I have included one with only container relationships that displays the multiple relationships and another with components that does not display the multiple relationships to show the difference. Version/build informationUsing latest docker version - structurizr/lite:latest, which is 3 months old. SeverityMajor PriorityLow (I'm willing to make a pull request - please confirm approach first) More informationNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I imagine you're seeing the implied relationships feature. |
Beta Was this translation helpful? Give feedback.
Yes - it prevents the model/diagrams from becoming cluttered. As it says in the docs, you can change this behaviour ... just add the following into your workspace definition:
See https://docs.structurizr.com/java/implied-relationships#createimpliedrelationshipsunlesssamerelationshipexistsstrategy for an explanation of how this works.