Skip to content

Improve 14_pipelines seed

Felipe Cardozo requested to merge issue_413264 into master

What does this MR do and why?

Improve 14_pipelines seed so it can used for viewing repository analytics:

  1. Accepts NEW_PROJECT parameter so the seed create a new group project with repository
  2. Show an error message when a project does not have repository
  3. Fix rubocop offenses
  4. Output URL for each project seeded

related to #413264 (closed)

How to set up and validate locally

Without NEW_PROJECT env var

  1. Run FILTER=14_pipelines bundle exec rake db:seed_fu check

Check if projects are seeded correctly

With NEW_PROJECT env var

  1. 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.

Edited by Felipe Cardozo

Merge request reports