VSA display aggregated VSA metadata
What does this MR do and why?
As part of #341739 (closed) we would like to be able to display information for users on how up to date the value stream aggregation data they are viewing is. This MR adds a badge next to the value stream selector that provides a visual indicator of the time since the last data refresh.
Depends on !82303 (merged)
Screenshots or screen recordings
Screen_Recording_2022-03-11_at_5.27.09_pm
How to set up and validate locally
Enable the feature flag
Feature.enable(:use_vsa_aggregated_tables)
Populate the aggregate data tables
-
Ensure you have an EE license, or stub the
cycle_analytics_for_groups
license feature to true -
Create a group
-
(optional) Create a project within a group (make sure to initialize the project with a readme, or create it from a template)
-
Open the rails console with
rails c
-
Update the last incremental run date for all groups, by copying and pasting this into your console
Analytics::CycleAnalytics::Aggregation.all.each { |a| a.update!(enabled: true, last_incremental_run_at: (10 + rand(30)).minutes.ago) }
Navigate to VSA
- Navigate to value stream analytics for the group, ie for a group name
new-vsa-group
it would behttp://<gdk>/group/new-vsa-group/-/analytics/value_stream_analytics
(or you can navigate from the left menu)
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #341739 (closed)