Skip to content

Show associated registries before maven upstream deletion

What does this MR do and why?

Query list of registries associated with upstream added in Adds mavenUpstreamRegistry top-level GraphQL query (!203463 - merged).

Extracts delete upstream logic & modal into a separate modal component which can be reused.

Shows names of associated registries in the modal before maven upstream deletion.

EE: true

References

Screenshots or screen recordings

Description Before After
Default Screenshot_2025-09-04_at_4.00.52_pm Screenshot_2025-09-04_at_3.42.17_pm
Modal Screenshot_2025-09-04_at_3.59.47_pm
Modal when registries are associated Screenshot_2025-09-04_at_3.42.22_pm
Modal when more than 5 registries are associated Screenshot_2025-09-04_at_3.46.27_pm
When there are no registries associated Screenshot_2025-09-04_at_3.47.31_pm

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. Go to a group
  2. Go to Deploy -> Virtual Registry
  3. Create a new maven registry
  4. Click on the Add upstream button
  5. The required fields are name, url. For the URL, you can use https://repo.maven.apache.org/maven2/
  6. Click on Create upstream and observe the list update.
  7. Click on the pencil icon for the newly created upstream. This should take you to the edit upstream page.
  8. Click on Delete upstream button should show modal with the registry names listed.
  9. Create at least 5 more maven registries. Link the same upstream to each of the virtual registry.
  10. Clicking on Delete upstream button should show modal with the registry names listed & truncated.

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

Edited by Rahul Chanila

Merge request reports

Loading