Skip to content

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
Screenshot_2023-06-15_at_6.34.29_pm Screenshot_2023-06-15_at_6.16.58_pm

How to set up and validate locally

You will need a GitLab Ultimate license

  1. Create a group
  2. Seed cycle analytics data
  3. Seed dora metrics data
  4. Visit the Value streams dashboard
  5. 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.

Related to #413872 (closed)

Edited by Ezekiel Kigbo

Merge request reports

Loading