Skip to content

Trims input fields in maven dependency proxy settings

What does this MR do and why?

Trims Username & URL input fields in maven dependency proxy settings form

Related to Modify UX for dependency proxy project settings... (!140339 - merged)

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

N/A

How to set up and validate locally

The dependency proxy for packages has a few requirements:

  1. have packages -> enabled set to true in gitlab.yml.
  2. have dependency_proxy -> enabled set to true in gitlab.yml.
  3. have the packages feature enabled in the project's settings. Settings -> General -> Visiblity, project features, permissions -> Package registry (checkbox enabled.)
  4. have a GitLab license. Premium or more.
  5. Visit Project > Settings > Packages and Registries
  6. Under the Dependency Proxy settings block, try updating the form
  7. Ensure that adding spaces at the start/end of the URL & Username fields get trimmed while submitting the form. This can be confirmed in developer tools by checking for GraphQL mutation variables

Related to #410726 (closed)

Edited by Rahul Chanila

Merge request reports