Skip to content

Add fullPath to CatalogResource graphl query

Rajendra Kadam requested to merge 450914-full-path-relative-url into master

What does this MR do and why?

This MR adds the fullPath in the GQL query to fix the bug found in #450914 (closed)

The fullPath is then used in Catalog resource list item to replace the resourceId with fullPath instead of webPath.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

NA

How to set up and validate locally

  1. Setup local gdk on a relative URL following this guide.
  2. Check for /explore/catalog for components. If you do have any catalog resources, you can create some by following step via rails console.

Seed the db with catalog resources using bundle exec rake "gitlab:seed:ci_catalog_resources[Flightjs, 12, true]". This adds 12 components.

  1. Then head to /explore/catalog.
  2. The link for Resource name should work as expected and redirect to details page.

Related to #450914 (closed)

Edited by Rajendra Kadam

Merge request reports