Skip to content

Fix registry list extra padding between list items

What does this MR do and why?

Fix registry list extra padding between list items

Added in Update registry_list & list_item to use unorder... (!152565 - merged)

Loop added on the ul element causes extra padding between list items

Instead of using li on the list_item component, we add the li element within the registry_list component.

Related to #462956 (closed)

Changelog: fixed

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

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Screenshot_2024-05-24_at_11.55.39_PM Screenshot_2024-05-24_at_11.54.57_PM
Screenshot_2024-05-24_at_11.58.12_PM Screenshot_2024-05-24_at_11.58.32_PM
Screenshot_2024-05-24_at_11.57.47_PM Screenshot_2024-05-24_at_11.58.47_PM

How to set up and validate locally

Package Registry

List & Details

  1. rails c - Open the rails console

  2. p = Project.find(1) - Find one of your GDK projects. Project id can be found on the project home page

  3. FactoryBot.create_list(:npm_package, 10, project: p, name: p.name) - Creates 10 npm packages

  4. Add this line if above fails during the creation

     def fixture_file_upload(*args, **kwargs)
       Rack::Test::UploadedFile.new(*args, **kwargs)
     end
  5. Visit groups & projects package list page.

  6. visit package registry detail page Other versions tab via groups & projects package list page

Container Registry

Images list

  1. Setup & enable Container Registry https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/doc/howto/registry.md

  2. Follow steps in https://gitlab.com/gitlab-org/ci-cd/package-stage/package/-/wikis/Packages-Tips-&-Tricks#how-to-add-images-with-tags-quickly-to-the-registry

  3. To see pagination, run the following in the terminal

    $ ./publish.sh <project-path> 2 10 127.0.0.1:5000 # creates 10 images with 2 tags each
  4. Visit the container registry list page for the project

Tags list

  1. After following previous instructions, visit the container registry list page for the project
  2. Clicking one of the images should take you the tags list(details) page

Dependency proxy

  1. Enable dependency proxy on GDK.

  2. Visit Gitlab-org Group > Packages and registries > Dependency proxy

  3. Assuming 172.16.123.1:3000/gitlab-org/dependency_proxy/containers is the Dependency proxy image prefix on the page, run the following on the terminal:

    versions=("latest" "1.33.1" "1.33" "1.32.1"); proxy_url="172.16.123.1:3000/gitlab-org/dependency_proxy/containers"; for version in "${versions[@]}"; do docker pull "${proxy_url}/busybox:${version}"; done

Abuse reports list

Visit http://172.16.123.1:3000/admin/abuse_reports

Model registry

Go to rails console using bin/rails c

Feature.enable(:model_registry)
project = Project.find(26)
model = Ml::CreateModelService.new(project, 'FooModel6').execute.payload
model_version = Ml::CreateModelVersionService.new(model,version: '3.1.4').execute
``

* Go to the project URL in your browser
* Open the "Deploy" and "Model registry" under it.

### Terraform registry

* Visit `Project > Operate > Terraform modules`
* Use [API](https://docs.gitlab.com/ee/user/packages/terraform_module_registry/#using-the-api) to publish modules to project
* Upload few more packages to confirm the versions tab.

<!-- template sourced from https://gitlab.com/gitlab-org/gitlab/-/blob/master/.gitlab/merge_request_templates/Default.md -->
Edited by Rahul Chanila

Merge request reports