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

feat(settings): add setting to limit query depth #2138

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

winged
Copy link
Contributor

@winged winged commented Jan 31, 2024

This should avoid overly comples GraphQL queries which might overload the backend. Note: We do not yet have experience with the exact useful value of this settings, so the default is zero (which implies the limit is disabled)

Edit: Ran some manual tests (It's hard to do automated tests for stuff like that). The setting works, but I'm still not sure what a reasonable limit would be. I assume it will be around 15-20 realistically

image

This should avoid overly comples GraphQL queries which might overload
the backend. Note: We do not yet have experience with the exact useful
value of this settings, so the default is zero (which implies the limit
is disabled)
Copy link
Contributor

@derrabauke derrabauke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@winged winged marked this pull request as ready for review January 31, 2024 12:52
@winged
Copy link
Contributor Author

winged commented Jan 31, 2024

Let's wait with this until 10.0.0 is released and tagged (just to avoid having to update/redo the changelog etc)

@winged winged merged commit 13ac309 into projectcaluma:main Jan 31, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants