Skip to content

WIP: Allow adjusting the number of projects displayed per page for groups

sandwm requested to merge sandwm/gitlab:add-per_page into master

Allow adjusting the number of projects displayed per page for groups

When displaying a group page like https://gitlab.com/gitlab-org you can currently only see 20 projects per page. It would be very helpful for us, as we also have a group with many projects, to view them (or at least substantial parts of them) on one page. In other words it would be helpful to be able to select how many projects should be shown per page. That is what this merge request does.

It adds a dropdown menu to a group's project listing page allowing you to select up to 100 projects per page. This uses a "new" per_page parameter (like the one already available through the GitLab API).

This MR is currently WIP since I would like some general feedback whether this is feasible and maybe some help at which documentation or test changes are necessary here.

Similar changes might be done to other pages (see e.g. #27970), but one step at a time...

Screenshots

per_page_dropdown

Does this MR meet the acceptance criteria?

Conformity

Performance and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team

Merge request reports