Skip to content

Fix value stream analytics seeds

Felipe Artur requested to merge fa-fix_17_cycle_analytics_seed into master

What does this MR do and why?

Fix development fixtures that seed data for value stream analytics.

  • 17_cycle_analytics.rb - Was not creating a value stream in the project level
  • 30_customizable_cycle_analytics.rb - Was also not creating project value stream and not closing merge requests

This is not a permanent solution as these seeds are still vulnerable, changes in the code could break them easily. There is an epic with an open discussion to prevent further problems &11244.

How to set up and validate locally

  1. Run FILTER=cycle_analytics SEED_VSA=1 bundle exec rake db:seed_fu and go to the project created, visit PROJECT_URL/-/value_stream_analytics and a value stream should be present.
  2. Run FILTER=customizable_cycle_analytics SEED_CUSTOMIZABLE_CYCLE_ANALYTICS=1 bundle exec rake db:seed_fu, visit PROJECT_URL/-/value_stream_analytics and a value stream should be present.

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 Artur

Merge request reports