Increase the page size for the contributions GraphQL query
What does this MR do and why?
This change increases the max page size for the contributions
query. Clients may request up to 500 records per page. The main user of this query is the Contribution Analytics feature, where we noticed that large volume of batching (pagination) queries affect the page load significantly: https://gitlab.com/gitlab-com/gitlab-OKRs/-/work_items/4084#note_1644920882
By default, we preserve the default page size (100) for backward compability reason. The frontend controls the page size which is currently behind a feature flag: use_500_page_size_for_contribution_analytics
How to set up and validate locally
- Ensure that you're on premium.
- Go to a group and visit
Analyze > Contribution Analytics
- Inspect the GraphQL request and notice that it uses
first: null
(means: fall back to the default page size. - Enable the
use_500_page_size_for_contribution_analytics
feature flag. - Not the same request should sent the
first: 500
argument.
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.
Related to #431546 (closed)