structurizr / dsl

Structurizr DSL
https://docs.structurizr.com/dsl
Apache License 2.0
1.41k stars 266 forks source link

Deployment view doesn't show the Software System in scope #272

Closed gravis closed 1 year ago

gravis commented 1 year ago

Question

I'm trying to get my head around the deployment view for a specified scope:

workspace {
    model {
        u = person "User"

        a = softwareSystem "A" {
            aa = container "AA" 
            ab = container "AB"
        }

        b = softwareSystem "B" {
            ba = container "BA"
        }

       u -> a
       a -> b

        development = deploymentEnvironment "Development" {
            deploymentNode "Developer Laptop" {
                softwareSystemInstance a
                softwareSystemInstance b
            }
        }   
    }

    views {
        deployment a development "a_dev" {
            include *
            autoLayout
        }

        deployment b development "b_dev" {
            include *
            autoLayout
        }

        theme default
    }  
}

This only results in 2 two views:

structurizr-a_dev

structurizr-b_dev

With more complex models, it seems all software systems are presented, except for the one in scope. I'm sure to understand how this view works, could you please help with this?

Thanks