Skip to content

Add LegacyValueStreamMetrics component for graphql migration

What does this MR do and why?

As part of Value Stream Analytics: Migrate lifecycle metri... (#498179) we need to migrate ValueStreamMetrics from REST to apollo + graphql. Unfortunately the component is used for both CI/CD Analytics and Value Stream Analytics.

This MR breaks up the work needed to migrate both pages, deprecates the existing component and introduces the new component that will be used going forward.

This MR:

  • Adds LegacyValueStreamMetrics - a clone of the existing REST based value stream metrics component
  • Replaces ValueStreamMetrics with LegacyValueStreamMetrics for CI/CD Analytics and Value Stream Analytics
  • Adds the new ValueStreamMetrics component using graphql + apollo
  • Refactors some shared constants + updates related tests

References

Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

No visual changes introduced with this MR

How to set up and validate locally

All tests passing

Related to #498179

Edited by Ezekiel Kigbo

Merge request reports

Loading