On issues list page we fire `getIssuesEE` graphql query twice
On the Issues list page both project and group level I have set my page size preference to 100 items and I am seeing the list of issues being queried twice when I open or refresh the page.
Recording showing the duplicate query:
Screen_Recording_2024-07-31_at_19.52.23
After some discussions @ntepluhina
suggested the parameters sent for each query might differ and indeed they do:
- first query params:
{ "hideUsers": false, "isProject": true, "isSignedIn": true, "fullPath": "gitlab-org/gitlab", "sort": "MILESTONE_DUE_DESC", "state": "opened", "firstPageSize": 100, "afterCursor": null, "beforeCursor": null, "types": [ "ISSUE", "INCIDENT", "TEST_CASE", "TASK" ] }
- second query params:
{ "hideUsers": false, "isProject": true, "isSignedIn": true, "fullPath": "gitlab-org/gitlab", "sort": "MILESTONE_DUE_DESC", "state": "opened", "firstPageSize": 100, "types": [ "ISSUE", "INCIDENT", "TEST_CASE", "TASK" ] }
Also @nickleonard
mentioned:
- When I load the issues list by clicking "Issues" in the nav (not refreshing a page) I see firstPageSize: 20 in the first query and firstPageSize: 100 in the second