Closed Riduidel closed 1 year ago
@AcevedoR In this issue we're talking about updating views after having let all enhancers run. What would you prefer ?
ViewUpdater
currently do)do I have to include or exclude some elements for the filtered view?
No, you take all elements added during discovery to current diagram. That's exactly what ViewUpdater do. However, if you have any idea on how to have some views updated while others are not it could be very cool.
So, steps are
ArchitectureEnhancer#enhancerVisitViews(...)
to add handling of FilteredView
FilteredView
in ViewEnhancer
ViewEnhancerAdapter
ViewUpdater
in base moduleif
in ViewUpdaterViewUpdater to process only
ComponentViewand
ContainerViewhaving the property
aadarchi.update.viewset to
true` (or anything non false)Seems like updating structurizr to latest version would allow definition of properties in views (see https://github.com/structurizr/java/releases/tag/v1.16.1) which in turn would allow us to reuse the initial view updated with an aadarchi.auto.include
property set to true
(or any non-false value).
@Sese-collab Can you take a look at that possibility ?
Currently, views are created at workspace.dsl loading. This prevents enhancements (typically maven ones).
Hopefully, the enhancer already exists : it is
ViewUpdater
, located into architecture-documentation.So
ViewUpdater
intobase
projectorg.ndx.aadarchi.base.enhancers.graph
packageViewUpdater
, remove the name based check and only apply view updating on filtered view (https://github.com/structurizr/dsl/blob/master/docs/language-reference.md#filtered-view)