Adds support for updating maven dependency proxy settings
What does this MR do and why?
Adds support for updating maven dependency proxy settings
Adds submit button
Splits form into separate component
Calls mutation when maven form is submitted
This MR is follow-up to Calls mutation when dependency proxy packages s... (!139379 - merged)
Screenshots or screen recordings
Demo:
Screen_Recording_2023-12-13_at_1.08.31_am
How to set up and validate locally
The dependency proxy for packages has a few requirements:
-
have
packages
->enabled
set totrue
ingitlab.yml
. -
have
dependency_proxy
->enabled
set totrue
ingitlab.yml
. -
have the
packages
feature enabled in the project's settings.Settings
->General
->Visiblity, project features, permissions
->Package registry
(checkbox enabled.) -
have a GitLab license.
Premium
or more. -
have the related feature flag turned on:
Feature.enable(:packages_dependency_proxy_maven)
-
Visit Project > Settings > Packages and Registries
-
Under the Dependency Proxy settings block, try updating the Maven form
-
Ensure the following:
- Submit button is visible & gets disabled when submitting.
- Submitting the form shows a toast when successful.
- Submitting the form shows error alert with correct message when request fails.
- Toggling the toggle does not change form state.
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.
Closes #410726 (closed)