Skip to content

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

  1. Ensure you have an EE license, or stub the cycle_analytics_for_groups license feature to true

  2. Create a group

  3. (optional) Create a project within a group (make sure to initialize the project with a readme, or create it from a template)

  4. Open the rails console with rails c

  5. 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

  1. Navigate to value stream analytics for the group, ie for a group name new-vsa-group it would be http://<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.

Related to #341739 (closed)

Edited by Ezekiel Kigbo

Merge request reports

Loading