Implements maven upstream registries table
What does this MR do and why?
Implements maven upstream registries table
Adds search by upstream name functionality
EE: true
What this MR does not do:
This MR does not implement:
-
Used by registries
column. This data is not available on the REST API & we will be moving this over GraphQL query Add group field to query all maven virtual regi... (!205320) once it is merged. - Pagination of upstreams
-
Clear cache
button -
Delete upstream
dropdown
These will be implemented in follow-up MRs.
References
- Previous MR which adds tabs Adds tabs to maven registries and upstreams page (!205962 - merged)
- Design: #556837[UpstreamsList.png]
- MR to add GraphQL query Add group field to query all maven virtual regi... (!205320)
- Once the MR is merged, we will use that query instead. It lets us show
Used by registries
column and show all shared registries in the delete upstream modal.
- Once the MR is merged, we will use that query instead. It lets us show
Screenshots or screen recordings
Before | After |
---|---|
![]() |
|
![]() |
OPTIONAL: For responsive UI changes, you can use the viewport size table below. Delete this table if not needed or delete rows that are not relevant to your changes.
Viewport size | Before | After |
---|---|---|
xs (<576px) |
![]() |
How to set up and validate locally
- Ensure you have enabled the following feature flags
$ gdk rails console
Feature.enable(:maven_virtual_registry)
Feature.enable(:ui_for_virtual_registries)
- Go to top-level group
- Go to
Deploy -> Virtual Registry
- Create a new maven registry
- Click on the
Add upstream
button -
Confirm that description related to using locally hosted repositories is added for
Upstream URL
andPassword
fields. - The required fields are
name
,url
. For the URL, you can usehttps://repo.maven.apache.org/maven2
- Click on
Create upstream
- The newly created upstream should be visible on the list. Click on
pencil
icon to edit newly created upstream. - Click on the
Maven upstreams
breadcrumb to see the page mentioned in the screenshot. - Confirm that edit and show link work.
- Confirm that no results component is shown when search returns empty results.
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 #556837
Edited by Rahul Chanila