Use compact pagination on explore page when total pages is unavailable
requested to merge 437350-explore-groups-only-shows-20-results-due-to-lacking-pagination-2 into master
What does this MR do and why?
Related to #437350 (closed)
If there are more than 10,000 records then we do not return the X-TOTAL
header. This causes the pagination to not be shown on the groups explore page. This MR updates the pagination component to show the compact pagination when X-TOTAL
header is not available.
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
X-TOTAL
header not available
Before | After |
---|---|
X-TOTAL
header is available
No changes expected
Before | After |
---|---|
How to set up and validate locally
@total = nil
@total_pages = nil
Edited by Peter Hegman