Skip to content

Hide dependency proxy page when disabled for the group

What does this MR do and why?

This MR removes the Dependency Proxy menu entry when the proxy is disabled and renders 404 if the users tries to access it manually from the URL

We are also cleaning some leftover frontend code that is not being used anymore (because when the proxy is disabled the page is not reachable at all)

We are also removing some leftover backend code and relative tests: the dependency proxy page does not perform the update with a form anymore but we rely completely on the Graphql API

Screenshots or screen recordings

RemoveDependencyProxyMenu

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Go to your group packages_and_registries settings page
  2. Disable the dependency proxy
  3. Verify that the proxy link in the menu does not exist ( after a page refresh )
  4. Verify that navigating to the page manually does shows 404

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 #346249 (closed)

Edited by Nicolò Maria Mezzopera

Merge request reports