Skip to content

Add pagination even when there

Zamir Martins requested to merge add_pagination_even_without_total_pages into master

What does this MR do and why?

Add pagination even when there is no total of pages. Pagination headers won't be fully set if this condition is evaluated to true.

EE: true

Issue has been raised in this discussion.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

No records records within limit records over the limit
Screenshot_2023-08-28_at_13.36.16 Screenshot_2023-08-28_at_13.28.46 Screenshot_2023-08-28_at_13.28.04

How to set up and validate locally

  1. Fetch the content the branch: add_pagination_even_without_total_pages.
  2. Turn on the feature flag to make Dependency list appear in groups:
echo "Feature.enable(:group_level_dependencies)" | rails c
  1. Create one project under a group with the following content:
  • .gitlab-ci.yml:
include:
  - template: Security/Dependency-Scanning.gitlab-ci.yml
  1. Run a pipeline for the default branch
  2. Go group related to the project created above and click on the menu option Secure -> Dependency list
  3. Change this condition to true in order to trigger the above threshold behaviour.

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 Zamir Martins

Merge request reports

Loading