VSA allow users to toggle aggregated data backend
What does this MR do and why?
Describe in detail what your merge request does and why.
As part of #344803 (closed) this MR adds a toggle to the group VSA page allowing user's to opt into the new 'aggregated data' backend that will soon be defaulted on. In the meantime user's can opt in and out to take a look at the new backend.
When the Toggle is clicked toast message is displayed with the updated status, then the page is refreshed with the toggle in the new state.
Depends on !82389 (merged)
Screenshots or screen recordings
These are strongly recommended to assist reviewers and reduce the time to merge your change.
Feature flag enabled
With the use_vsa_aggregated_tables
feature flag
Tooltip | Toggle behaviour |
---|---|
Screen_Recording_2022-03-09_at_7.55.55_pm | vsa-aggregated-toggle-720 |
Feature flag disabled
How to set up and validate locally
- Enable the
use_vsa_aggregated_tables
feature flag, open the rails console withrails c
and execute the Feature.enable
Feature.enable(:use_vsa_aggregated_tables)
- Apply the diff in !82481 (comment 873438957)
- 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 the group (make sure to initialize the project with a readme, or create it from a template)
- 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 #352428 (closed)