Fix pipelines usage_quotas pagination
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
- You can either have a group with more than 20 projects or change the page size.
- Go to your group's usage quotas:
/groups/group-projects/-/usage_quotas
- Switch to the pipelines tab
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Sheldon Led