Skip to content

Add fixture for DORA metrics

Felipe Cardozo requested to merge issue_377805 into master

What does this MR do and why?

Add a seeder for DORA metrics for a project. The data can be consumed on project/group VSA and group VSD.

This also changes 17_cycle_analytics.rb seed to include DORA metrics when creating data for value stream analytics.

related to #377805 (closed)

How to set up and validate locally

  1. ExecuteFILTER=cycle_analytics SEED_VSA=1 bundle exec rake db:seed_fuand visit the project URL provided when the script finishes, create a value stream. It should contain DORA metrics.
  2. Execute SEED_DORA=1 FILTER=dora_metrics bundle exec rake db:seed_fu and visit the project URL when the script finishes, create a value stream. It should contain DORA metrics.
  3. It is also possible to seed DORA metrics to an existing project providing a PROJECT_ID environment variable, for example, SEED_DORA=1 PROJECT_ID=10 FILTER=dora_metrics bundle exec rake db:seed_fu.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Felipe Cardozo

Merge request reports