structurizr / lite

Structurizr Lite
https://docs.structurizr.com/lite
MIT License
226 stars 26 forks source link

Multiple relationships between containers of 2 systems do not render properly - only the last one declared is rendered #53

Closed yvesaston closed 1 year ago

yvesaston commented 1 year ago

Description

When there are 2 relationships between containers of 2 software systems (for example because the technology underpinning those relationships is not the same), only the last relationship declared in the DSL is rendered ; expectation is to have both relationships rendered. Example 1 (relationship a.c2 -> b.c2 not rendered) :

 workspace {
    !identifiers hierarchical
    model {
          a = softwareSystem "System A" {
              c1 = container "Container A1"
              c2 = container "Container A2"
          }
          b = softwareSystem "System B" {
              c1 = container "Container B1"
              c2 = container "Container B2"
          }
          a.c1 -> b.c1 "Does 1" "Techno 1"
          a.c2 -> b.c2 "Does 2" "Techno 2"
    }
    views {
        systemLandscape test-ab "Test 4 bug"
            include *
            autolayout lr
    }
}

On the contrary, if:

Steps to reproduce

Render the Description' Example 1 in Structurizr/lite

Screenshot

No response

Code sample

No response

Configuration

Docker for Structurizr/lite 3046.

Severity

Major

Priority

Medium

Resolution

I have no budget, please fix this for free

More information

No response