-
-
Notifications
You must be signed in to change notification settings - Fork 59
Structurizr only shows the first relationship between Components #190
Description
Expected
I 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 {
model {
!identifiers hierarchical
user = person "User"
softwareSystem "My System" {
authoringUI = container "Authoring" "Rich Multimedia Content Editor and Template Creator" {
tags "ClientApplication"
authoringClient = component "Authoring Client"
}
authoringService = container "Authoring Service" "Supports persistence and retrieval operations for content and multimedia" {
authoringAPI = component "Authoring API" "Implements the Authoring Contract" {
}
}
user -> authoringUI "Authors content using"
authoringUI.authoringClient -> authoringService.authoringAPI "Gets templates from"
authoringUI.authoringClient -> authoringService.authoringAPI "Persists templates to"
authoringUI.authoringClient -> authoringService.authoringAPI "Gets content from"
authoringUI.authoringClient -> authoringService.authoringAPI "Persists content to"
authoringUI.authoringClient -> authoringService.authoringAPI "Gets content links from"
}
}
views {
container mySystem {
include *
autoLayout tb
}
component mySystem.authoringService "authoring-service" {
include *
autoLayout tb
}
}
}`
Actual
When 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 {
model {
!identifiers hierarchical
user = person "User"
mySystem = softwareSystem "My System" {
authoringUI = container "Authoring" "Rich Multimedia Content Editor and Template Creator" {
tags "ClientApplication"
authoringClient = component "Authoring Client"
}
authoringService = container "Authoring Service" "Supports persistence and retrieval operations for content and multimedia" {
authoringAPI = component "Authoring API" "Implements the Authoring Contract" {
}
}
user -> authoringUI "Authors content using"
authoringUI -> authoringService "Gets templates from"
authoringUI -> authoringService "Persists templates to"
authoringUI -> authoringService "Gets content from"
authoringUI -> authoringService "Persists content to"
authoringUI -> authoringService "Gets content links from"
}
}
views {
container mySystem {
include *
autoLayout tb
}
component mySystem.authoringService "authoring-service" {
include *
autoLayout tb
}
}
}`
Steps to reproduce
Please 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 information
Using latest docker version - structurizr/lite:latest, which is 3 months old.
Severity
Major
Priority
Low (I'm willing to make a pull request - please confirm approach first)
More information
No response