Return only published catalog resources
What does this MR do and why?
This MR will change the results visible on the ci catalog index page. The current requirement is to only show the published
catalog resources in that view. A new Ci::Catalog::Resource
trait is introduced: published
.
This MR resolves issue.
Screenshots or screen recordings
Query where one published resource was found:
My local has currently 13 catalog resources and only one is published
, id:7.
How to set up and validate locally
- Make sure you have published and unpublished catalog resources
- Run below query via
http://127.0.0.1:3000/-/graphql-explorer
query {
ciCatalogResources {
nodes {
id
rootNamespace {
id
name
path
}
}
}
}
- See the returned catalog resources to only include published resources
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 Furkan Ayhan