Skip to content

Read GraphQL PackageLinks to render link to package details page

What does this MR do and why?

This MR:

Screenshots or screen recordings

No visual changes

How to set up and validate locally

  1. Follow instructions to publish a new packages

  2. Visit package registry list page for groups & projects.

  3. Should be able to click the link and view the package detail page

  4. Now change package status to error. This updates the status for the last created package

      Packages::Package.last.update!(status: "error")
  5. Replace app/graphql/types/packages/package_links_type.rb Line14-16 with

       def web_path
         return unless object.default?
    
         package_path(object)
       end
  6. Confirm that the package is not clickable on the package registry list page.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #344257 (closed)

Edited by Rahul Chanila

Merge request reports