Skip to content

Only the first 100 files are shown when browsing a package in the Package Registry

Context

Only the first 100 files are shown when browsing a package in the Package Registry.

Problem to solve

This is problematic if you have a package with more than 100 files as you have no way of viewing those files in the UI.

Proposal

Add pagination to the Package Registry UI for package files. This will allow users to view all of the files associated with a given package.

NOTE: it is not about the list of packages, but specifically about the list of files inside a package.

Example Project

https://gitlab.com/atanayno/package-registry-test/-/packages/5331933

Implementation guide

  • Remove packageFiles related fragment from packageDetails query - handled by #365232 (closed)
  • Update query to request package files with pagination arguments
  • Use GlPagination/GlKeysetPagination with GlTable to render pagination
Edited by Rahul Chanila