Skip to content

Return only published catalog resources

Kasia Misirli requested to merge 415414/Update_ci_catalog_index into master

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: Screenshot_2023-11-10_at_17.20.02 My local has currently 13 catalog resources and only one is published, id:7. Screenshot_2023-11-10_at_17.21.13

How to set up and validate locally

  1. Make sure you have published and unpublished catalog resources
  2. Run below query via http://127.0.0.1:3000/-/graphql-explorer
query {
  ciCatalogResources {
    nodes {
      id
      rootNamespace {
        id
        name
        path
      }
    }
  }
}
  1. 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.

Edited by Furkan Ayhan

Merge request reports

Loading