Exclude relationship behaviour doesn't work as expected when there are multiple implied relationships #307
-
DescriptionThis is a follow-up for #303. It looks like Structurizr always selects the first relationship as an implied relationship, even when this relationship is excluded. Steps to reproduce
Expected behaviour
Actual behaviour
ScreenshotCode sample
ConfigurationNo response SeverityMajor PriorityMedium ResolutionI have no budget, please fix this for free More informationNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
This is as expected; see https://github.com/structurizr/dsl/tree/master/docs/cookbook/implied-relationships#multiple-implied-relationships for an explanation. |
Beta Was this translation helpful? Give feedback.
-
Even if I explicitly excluded the first relationship from the view? |
Beta Was this translation helpful? Give feedback.
Yes - if you inspect the model (e.g. the JSON version of the workspace), you'll see that relationship
4 -> 2
does not get propagated to the system level, which is as designed withCreateImpliedRelationshipsUnlessAnyRelationshipExistsStrategy
. You'll need to use a different implied relationships strategy if you want different behaviour; for example: