Uses shared registry-list component to render package other versions
What does this MR do and why?
Refactor packages other versions list to use shared component so that bulk delete can be implemented in the follow-up MR.
Screenshots or screen recordings
No visual changes
How to set up and validate locally
- Follow instructions to publish new packages
- Publish more than 20 packages with same name & different versions, as mentioned in https://gitlab.com/gitlab-org/ci-cd/package-stage/package/-/wikis/Packages-Tips-&-Tricks#how-to-create-a-list-of-packages-artificially
-
rails c
- Open the rails console -
p = Project.find(1)
- Find one of your GDK projects. Project id can be found on the project home page -
FactoryBot.create_list(:npm_package, 25, project: p, name: p.name)
- Creates 25 npm packages - Add this line if above fails during the creation of the files
def fixture_file_upload(*args, **kwargs) Rack::Test::UploadedFile.new(*args, **kwargs) end
-
- Visit package registry list page for groups & projects.
- Visit the package detail page >
Other versions
tab - Should be able to paginate between pages
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.
Related to #374295 (closed) #361304 (closed)
Edited by Rahul Chanila