Skip to content

Update ci resource seeder to publish resources

What does this MR do and why?

Update ci resource seeder to publish resources

  • Allow user to create new resources in draft or published
  • Allow same resources to be created in different groups

Screenshots or screen recordings

None

How to set up and validate locally

Published resources:

  • In terminal, run bundle exec rake "gitlab:seed:ci_catalog_resources[Twitter, 4, false]"
  • These resources should exist in the database as projects and as ci resources, but not be published (so hidden in the catalog)
  • Then run bundle exec rake "gitlab:seed:ci_catalog_resources[Flightjs, 4, true]"
  • All 4 of these resources should now exists!
  • Also by running these 2 commands and the fact that it worked, means that the bug where we couldn't create resources for different projects is also fixed 😸

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports