Skip to content

Update policies list to account for a large number of policies

Why are we doing this work

  • The policies list does not have infinite scrolling or pagination, which could lead to performance issues with many policies
  • Currently, no more than 5 policies per type are allowed to be enabled,
  • Over time, we want to lift the limit from 5
  • But a user could have many more policies that are disabled

Relevant links

Non-functional requirements

  • Documentation:
  • Feature flag:
  • Performance:
  • Testing:

Implementation plan

  • frontend implement infinite scrolling on the policy list_component
    • the list is an amalgamation of several API requests, so we may have to fetch the first page for every request and make that the "first page" and then fetch the next page for all the requests, meaning that our "page size" will be variable. 🤔

Verification steps

  1. Upload a GitLab Ultimate license
  2. Navigate to a group/project => Secure => Policies
  3. Create a large number of policies; it may be easier to create a security policy project and manually create the policies in the .gitlab/security-policies/policy.yml file. One could copy this one and add even more by copy/pasting
  4. Verify the policies list handles large number of policies without any issues