DSL, CLI: A container/component view includes all elements, filter approach does not work as-is #245
-
Description(the title is not the greatest, sorry) As-isIf I have: two systems s1 & s2, they have several containers, c1 to c4 - and there is a relation This is described on the page I link to below:
There is an example image on the page but I am choosing to provide another one where the model has more elements, which is needed to illustrate the issue further on: ExpectedWhat I would want, as well, is something like this: What to do? Well, if one wants to display the relationship using elements from the same abstraction layer/level, e g container to container or component to component - two approaches are suggested on this page: https://docs.structurizr.com/dsl/cookbook/container-view-multiple-software-systems/
This does display the relationship, but first, it does not display the rest of s1 containers, the filter is "absolute". Secondly, I would ideally like to avoid having to repeat the model in the views. As far as possible.
So, I get all containers of system 2, not just the ones that are dependencies to the elements that are in focus for the view (system s1). Here is the plantuml render, but the problem is not with the rendering and appears regardless of chosen render: Full example 2 below. I also found that: All systems will have its containers in this view. Not just the system in focus (s1 in example) and any dependencies (s2 in example), but any s3, s4, etc. So the approach seems to miss something. It seems that only the filters are used and the statement indicating what system/container is in focus ( Full example 1:
Full example 2:
Full example 3:
Steps to reproduce
ScreenshotNo response Code sampleNo response ConfigurationI used online https://structurizr.com/dsl to reproduce with generic example code. SeverityMajor PriorityI have no budget and there's no rush, please fix this for free More informationI find this rather limiting, and a surprise to me. Ideally, there would be a way to say that I want a component or container level view, where all constituent elements are on the chosen view level. But maybe this is a philosophical / approach question? I understand that you certainly would find a view e g focusing on one system (s1) containers and wanting to abstract away / not view the detailed level of the dependencies, but in many cases this does not make alot of sense: A reader would have to click around to two different diagrams to get a consistent view of what is going on at a certain abstraction level/layer for one single interaction/depedency. Thinking about it further, maybe the dynamic view construct that you have would be a solution to that, in a way. I have not yet explored those! But I still feel that a static view that is consistently on the indicated abstraction layer would be very useful, and is a very common part of my approach / philosophy to explaining, reading and understanding things. (Thanks again for your work. I really hope I can make our little poc gain traction here.) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I'm not sure I understand what you're trying to do here. Take example 3, just
|
Beta Was this translation helpful? Give feedback.
Thanks for the clarifications. Here's a modified example 3: