Added count in project_type
What does this MR do and why?
Adds count to ProjectType for showing number of pages on UI pagination
Refs: https://gitlab.com/gitlab-org/gitlab/-/issues/346364
Screenshots or screen recordings
How to set up and validate locally
- Validate GraphQL projects have count in them, visit http://127.0.0.1:3000/-/graphql-explorer and use the following query
{
projects {
count
edges {
node {
id
}
}
}
}
- Validate that
count
isn't resulting in an Error - Check for a valid response
{
"data": {
"projects": {
"count": 2,
"edges": [
{
"node": {
"id": "gid://gitlab/Project/21"
}
},
{
"node": {
"id": "gid://gitlab/Project/20"
}
}
]
}
}
}
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.
Edited by Peter Leitzen