Skip to content

Fix pipelines usage_quotas pagination

Sheldon Led requested to merge led/340125-fix-pipelines-quota-pagination into master

What does this MR do and why?

Relates to #340125 (closed).

This is a temporary fix until we work on https://gitlab.com/gitlab-org/gitlab/-/issues/345373.

This leverages a custom event emitted by LinkedTabs from Bootstrap to add the hash parameter to the URLs generated by rails' paginate helper method. By doing this, we ensure that the full page reload opens the correct tab.

Screenshots or screen recordings

Before After
pipeline_usage_quotas_pagination_before pipeline_usage_quotas_pagination_after

How to set up and validate locally

  1. You can either have a group with more than 20 projects or change the page size.
  2. Go to your group's usage quotas: /groups/group-projects/-/usage_quotas
  3. Switch to the pipelines tab
  4. Play with the pagination

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Sheldon Led

Merge request reports