Fix value stream analytics seeds
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 (closed).
How to set up and validate locally
- Run
FILTER=cycle_analytics SEED_VSA=1 bundle exec rake db:seed_fu
and go to the project created, visitPROJECT_URL/-/value_stream_analytics
and a value stream should be present. - Run
FILTER=customizable_cycle_analytics SEED_CUSTOMIZABLE_CYCLE_ANALYTICS=1 bundle exec rake db:seed_fu
, visitPROJECT_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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Felipe Cardozo