Closed ghost closed 10 months ago
Funny how I spent half an hour writing this, but it only took 10 minutes of going over the source code to realise this feature already exists, it just has to be in quote marks and use && instead of AND:
views {
component DBcontainer {
include "->element.parent==DBcontainer-> && element.type==Component"
}
}
This feature should definitely be explained more clearly in the language reference, the cookbook, and elsewhere in the documentation
For Containers, it works if:
container CONTAINER_NAME "DIAGRAM_KEY" "DIAGRAM_DESCRIPTION" {
include "->element.parent==CONTAINER_NAME-> && element.type==container"
}
Good spot @shahabganji! Just a typo on my part, the parentheses don't work and shouldn't have been there, I've edited my comment to avoid confusion.
Description
This follows on from #348, I believe the feature I'm requesting will solve their problem as well as mine. In my case I have a container representing a DB with components representing tables, and in a separate container there are several different components that interact with particular tables. I wish there was a simple way to express "include all components with direct relationships to the components within this container".
My use case is that I'm trying to model some legacy software that is really poorly organised so we can assess and plan our upgrades. The example in the cookbook that was mentioned in #348 as a solution has two major drawbacks for me:
Being able to use an "AND" statement between "include" expressions would be very powerful and solve this problem with a straightforward expression like the following:
Such that only elements that satisfy both expressions are included. The way it currently works (where you just leave a space between each expression) is effectively like having "OR" between each expression.
Priority
Low
Resolution
I have no budget and there's no rush, please add this feature for free
More information
No response