Introduce Ci::Catalog::Resource and Listing models
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 addedcatalog_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 aNamespace
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 usingProject
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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Fabio Pitino