Fix Kaminari pagination for file blame
What does this MR do and why?
Contributes to #225174 (closed)
Problem
Kaminari does not work correctly when the limit is over the
max_per_page
value (100 by default).
Solution
Increase the max_per_page
limit during the Kaminari initialization.
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
- Enable feature flag
Feature.enable(:blame_page_pagination)
- Visit http://127.0.0.1:3000/gitlab-org/gitlab-test/-/blame/master/files/markdown/ruby-style-guide.md
- Verify that page 1 in the paginator is active
- Click on the second page
- Verify that the second page is loaded
- Verify that the page 2 in the paginator is active
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 Vasilii Iakliushin