Improve 14_pipelines seed
What does this MR do and why?
Improve 14_pipelines seed so it can used for viewing repository analytics:
- Accepts
NEW_PROJECT
parameter so the seed create a new group project with repository - Show an error message when a project does not have repository
- Fix rubocop offenses
- Output URL for each project seeded
related to #413264 (closed)
How to set up and validate locally
Without NEW_PROJECT env var
- Run
FILTER=14_pipelines bundle exec rake db:seed_fu
check
Check if projects are seeded correctly
With NEW_PROJECT env var
- Run
FILTER=14_pipelines NEW_PROJECT=1 bundle exec rake db:seed_fu
Verify the seeded project repository analytics. Verify the seeded group repository analytics.
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