structurizr / ui

UI code for Structurizr Lite, on-premises, and cloud service.
https://docs.structurizr.com/ui
MIT License
43 stars 27 forks source link

Diagram rendering problem when relation is present between to-be-emptied-by-exclude elements #69

Closed vadim-thesis closed 4 months ago

vadim-thesis commented 4 months ago

Description

Hi. Please see minimal workspace.dsl attached.

Uncommenting both commented lines gives pretty broken results to me. Hope it reproduces. What I expected to see is two deploymentNodes, each with "Dummy" component inside.

Thanks!

Steps to reproduce

Uncomment BOTH commented lines in workspace.dsl attached.

Screenshot

image

Code sample

workspace {
    !identifiers hierarchical
    model {
        ss = softwareSystem "System" {
            c1 = container "C1"
            c2 = container "C2"
        }
        dummy_ss = softwareSystem "Dummy System" {
            dummy = container "Dummy"
        }
        de = deploymentEnvironment "Env" {
            vm1 = deploymentNode "VM1" {
                dn = deploymentNode "Source" {
                    containerInstance ss.c1
                }
                containerInstance dummy_ss.dummy
            }
            vm2 = deploymentNode "VM2" {
                deploymentNode "Replica" {
                    containerInstance ss.c1
                    //-> de.vm1.dn
                }
                containerInstance dummy_ss.dummy
            }
        }
    }
    views {
        deployment * "Env" "deployment" {
            include de.vm1 de.vm2
            //exclude "element.parent==ss"
            autoLayout
        }
    }
}

Configuration

Structurizr Lite build: 2024.03.03 OpenJDK Runtime Environment Temurin-21.0.3+9 (build 21.0.3+9-LTS) Windows 10

Severity

Minor

Priority

I have no budget and there's no rush, please fix this for free

More information

No response