Implement support for relationship!=
expressions
#378
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello,
This is my first contribution to Structurizr, and I’d like to take a moment to thank you for building this project. We use it extensively for representing our architecture, and it has been incredibly useful.
We’ve found that some of our system context diagrams can become quite large. To create smaller, more focused views, we’ve been using the following script to remove relationships that are not directly connected to the target system:
It would be better to achieve this directly using view expressions, so I implemented support for relationship not equals expressions.
This PR introduces:
•
relationship.source!=
•
relationship.destination!=
•
relationship!=
With these expressions, for example:
one can simplify a complex diagram, such as:
or
into a cleaner version that only includes direct relationships to the system, removing relationships between other systems, if not relevant for the view:
or
This significantly improves readability and makes it easier to understand direct dependencies for the system in question.
I hope this change can be helpful to others in improving their diagrams. I’m not very familiar with the codebase, so please let me know if I’ve missed anything. Looking forward to your feedback!