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
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Go to your group
packages_and_registries
settings page - Disable the dependency proxy
- Verify that the proxy link in the menu does not exist ( after a page refresh )
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #346249 (closed)
Edited by Nicolò Maria Mezzopera