Fix VSD fails to load on the 1st of the month
What does this MR do and why?
Updates the time periods used on the VSD page, we should calculate date for the current month to date, unless it's the 1st of the month. On the 1st, we should show the previous month as our first time period.
Note: the bugfunctional behaviour in #413872 (closed) occurs with the vsd_graphql_dora_and_flow_metrics
feature flag enabled, but this fix will apply to both the graphql and the REST queries so we have the same behaviour.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
You will need a GitLab Ultimate license
- Create a group
- Seed cycle analytics data
- Seed dora metrics data
- Visit the Value streams dashboard
- Apply this patch to test the new behaviour (simulate the 1st of the month)
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 #413872 (closed)
Edited by Ezekiel Kigbo