Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

control-service: Remove upper limit of the graphql query for page size #232

Merged
merged 3 commits into from
Sep 15, 2021

Conversation

kostoww
Copy link
Contributor

@kostoww kostoww commented Sep 15, 2021

Why:
When using the graphql endpoint, current implementation fetch all jobs from database and all deployments from k8s cluster. There is actually no need to provide the limit. Removing the limit will provide graphql client extensibility and actually reducing # of queries, when need to fetch all jobs. (from N/100 to 1)

What is done:
Documentation is changed in order to notify client that there is no limit.

Testing:
Local run of tests and manual testing with number of jobs

Type of change:
Improvement of the Swagger docs in Graphql Schema

Signed-off-by: Plamen Kostov [email protected]

Why:
When using the graphql endpoint, current implementation fetch all jobs from database and all deployments from k8s cluster. There is actually no need to provide the limit. Removing the limit will provide graphql client extensibility and actually reducing # of queries, when need to fetch all jobs. (from N/100 to 1)

What is done:
Documentation is changed in order to notify client that there is no limit.

Testing:
Local run of tests and manual testing with number of jobs

Type of change:
Improvement of the Swagger docs in Graphql Schema

Signed-off-by: Plamen Kostov <[email protected]>
@kostoww kostoww enabled auto-merge (squash) September 15, 2021 10:08
@kostoww kostoww merged commit 8b06288 into main Sep 15, 2021
@kostoww kostoww deleted the person/kostoww/remove_graphql_pageSize_upper_limit branch September 15, 2021 13:09
gabrielgeorgiev1 pushed a commit that referenced this pull request Sep 15, 2021
#232)

Why:
When using the graphql endpoint, current implementation fetch all jobs from database and all deployments from k8s cluster. There is actually no need to provide the limit. Removing the limit will provide graphql client extensibility and actually reducing # of queries, when need to fetch all jobs. (from N/100 to 1)

What is done:
Documentation is changed in order to notify client that there is no limit.

Testing:
Local run of tests and manual testing with number of jobs

Type of change:
Improvement of the Swagger docs in Graphql Schema

Signed-off-by: Plamen Kostov <[email protected]>

Co-authored-by: Plamen Kostov <[email protected]>
Co-authored-by: Antoni Ivanov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants