Skip to content

Introduce Ci::Catalog::Resource and Listing models

Fabio Pitino requested to merge create-ci-catalog-models into master

What does this MR do and why?

Related to Create Ci::Catalog::Resource model (#393319 - closed)

In this MR we introduce Ci::Catalog:: namespace and a 2 models:

  • Ci::Catalog::Resource which maps to the newly added catalog_resources table and indicates that a project of components is marked as being a catalog resource.
  • Ci::Catalog::List is a higher-level model that taking in input a Namespace object it lists all catalog resources within the namespace's scope. Eventually this class could be expanded to support other ways of filtering catalog items (e.g. as a finder object), check restrictions, etc. Rather than using Project directly we should be using this class as SSoT for what's supported in the Catalog.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

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 Fabio Pitino

Merge request reports

Loading