Skip to content

Migrate project VSA metrics to use dedicated project metrics endpoints

Ezekiel Kigbo requested to merge 327435-migrate-project-vsa-metrics into master

What does this MR do?

This MR updates the project level VSA metrics, currently the project VSA metrics differ to the metrics available at the group level, but as part of &5194 (closed) we want to adopt the same metrics measures and UI as the group level.

This MR:

  • Adds project level VSA metrics requests, extracts group requests to the analytics_api module
  • Updates the UI for project VSA metrics to match group level metrics
  • Refactors the metrics.vue (renamed to value_stream_metrics) component and moves it to FOSS
  • Updates the metrics component to take requests used as a prop, so we can reuse the component at the group level and project level (the metrics to be displayed and their config are returned from the API endpoints)
  • Adds additional frontend fixtures to update the FOSS specs

Screenshots or Screencasts (strongly suggested)

Before After
With cycle_analytics_for_groups Screen_Shot_2021-08-11_at_2.58.24_pm Screen_Shot_2021-08-11_at_12.47.16_pm
Without cycle_analytics_for_groups Screen_Shot_2021-08-11_at_1.07.45_pm Screen_Shot_2021-08-11_at_1.04.28_pm

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Related to #327435 (closed)

Edited by Ezekiel Kigbo

Merge request reports