Class TrackerViewFactory
java.lang.Object
com.arc_e_tect.gradle.trackerlens.dashboard.TrackerViewFactory
Builds a
TrackerView from a tracker's raw records, ready for
DashboardHtmlWriter to render.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild(String trackerId, List<String> stages, List<LifecycleRecord> records, Optional<Projection> projection, Instant now, boolean stagesFormADependencyChain) Builds the view for one tracker.
-
Constructor Details
-
TrackerViewFactory
public TrackerViewFactory()Creates a newTrackerViewFactory.
-
-
Method Details
-
build
public TrackerView build(String trackerId, List<String> stages, List<LifecycleRecord> records, Optional<Projection> projection, Instant now, boolean stagesFormADependencyChain) Builds the view for one tracker.- Parameters:
trackerId- the tracker's registered idstages- the tracker's canonical stage names, in orderrecords- the tracker's recordsprojection- the tracker's completion projection, if availablenow- the instant to render as ofstagesFormADependencyChain- whether an item can only reach a later stage by having already passed through every earlier one, e.g. Gherkin scenarios (true). Whentrue, metric card counts are each item's single current stage (mutually exclusive, summing to the total). Whenfalse, e.g. API contracts, stages are independent conditions an item may reach in any combination, so metric card counts stay cumulative "reached at least this stage" counts.- Returns:
- the built view
-