Skip to content

UX updates to maven registries list & edit pages

What does this MR do and why?

UX updates to maven registries list & edit pages

Update the cancel button logic in the edit registry form to redirect to the registry detail page instead of the list page.

Implement logic to hide the Create registry button when a top-level group has 20 or more Maven virtual registries.

EE: true

References

Screenshots or screen recordings

Before After
172.16.123.1_3000_groups_kalcifer_-virtual_registries_maven__1 172.16.123.1_3000_groups_kalcifer_-_virtual_registries_maven

How to set up and validate locally

  1. Ensure you have enabled the following feature flags
$ gdk rails console
Feature.enable(:maven_virtual_registry)
Feature.enable(:ui_for_virtual_registries)
  1. Then run the following to create 20 Maven registries
g = Group.find(<group-id>)
20.times.each { |i|  VirtualRegistries::Packages::Maven::Registry.create(group: g, name: "maven registry - #{i}") }
  1. Go to top-level group
  2. Go to Deploy -> Virtual Registry, then click on Maven
  3. With the changes in this MR confirm that Create registry button is not visible for maintainer+ users
  4. Click on the edit icon should load the Edit registry page.
  5. confirm that clicking cancel button takes you to registry detail page & not the registries list page.
  6. Delete a registry from the Edit registry page.
  7. Confirm that Create registry button is now visible

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #569351 (closed)

Edited by Rahul Chanila

Merge request reports

Loading