Closed telune closed 1 month ago
I can see why this is failing ... a workaround is to specify the container instances rather than the containers:
deployment ss prod "SC1DeploymentProdViewBug1" "SC1 Deployment View (BUGGED 1)" {
include "->prod.softwareSystemNode.sc1_vm.sc1_instance->"
autolayout tb
}
Thanks @simonbrowndotje, the workaround works perfectly. For some reason, I didn't think of that. Is this expected? I mean, is it expected that in deployment views you should reference container instances? Is this documented somewhere? If not, wouldn't it be better to document this in https://docs.structurizr.com/dsl/expressions#element-expressions?
The thing that bothers me is that, if I use the container, it draws the container instance, but not the couplings. So it seems like something is missing somewhere.
The thing that bothers me is that, if I use the container, it draws the container instance, but not the couplings. So it seems like something is missing somewhere.
It was ... I've added some code to make this work as expected (the commit is linked above).
Sorry, my bad... I didn't see it was "completed", I thought you closed the issue as the expected behavior was to indicate container instances. I'm not used to such rapid fixes! Kudos!
Expected
When I define a
deployment
view, and I use element expressions to include elements, I would expect all element expressions to work.Actual
If I use element expressions to include the specific element I want, afferent and efferent couplings are not shown; however, they are shown if I include the element I want via a tag.
Steps to reproduce
Here is a sample workspace to illustrate the bug:
Both "SC1DeploymentProdViewBug1" and "SC1DeploymentProdViewBug2" do not show afferent and efferent couplings:
While "SC1DeploymentProdViewWork" shows afferent and efferent couplings:
Version/build information
I am using Structurizr Lite version 2024.09.19, taken from Docker Hub (docker.io/structurizr/lite:2024.09.19)
Severity
Minor
Priority
I have no budget and there's no rush, please fix this for free
More information
No response