Fix customizable cycle analytics seed
What does this MR do and why?
Fixes CustomizableCycleAnalytics
seed, the fixture is used to populate
test data for VSA with custom stages.
There were two problems happening:
- When running without a PROJECT_ID parameter it was throwing 'path already taken' error. The solution was replace factories with active record when creating records and groups.
- There was a problem with authorization when closing merge requests because group did not have
traversal_ids
set. We set it manually during the transaction.
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.
How to set up and validate locally
run FILTER=customizable_cycle_analytics SEED_CUSTOMIZABLE_CYCLE_ANALYTICS=1 bundle exec rake db:seed_fu
Edited by Felipe Cardozo