Skip to content

Add pagination to `Profile > Groups` page on User Profile

What does this MR do and why?

This MR adds pagination to the https://gitlab.com/users/:username/groups page on User profile.

Currently, this page has no pagination, and hence the queries time out when there are 100s of groups a user is involved with.

More details in !140194 (comment 1700453957)

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: page has been zoomed out to fit everything on one page. You can see that the Next and Previous links are now added to the footer, which did not exist previously. The per page count will be 20 records per page, which is the Kaminari default. This cannot be changed in the request.

Screenshot_2023-12-19_at_12.03.15_PM

Screenshot_2023-12-19_at_12.03.21_PM

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

Before After

How to set up and validate locally

  • Login as root user on local environemnt.
  • Create > 20 groups if you are not already part of > 20 groups.
  • Visit http://localhost:3000/users/root/groups, you should be able to see a paginated list of groups.

Numbered steps to set up and validate the change are strongly suggested.

Related to #211822 (closed)

Edited by Manoj M J

Merge request reports