Skip to content

Make QuerySizeValidator's combined-limit case reachable; add docs - #879

Merged
milessabin merged 2 commits into
mainfrom
topic/query-size-validator-docs
Sep 1, 2026
Merged

Make QuerySizeValidator's combined-limit case reachable; add docs#879
milessabin merged 2 commits into
mainfrom
topic/query-size-validator-docs

Conversation

@rpiotrow

Copy link
Copy Markdown
Contributor

The depth && width case was ordered after the individual limit cases, so "Query is too complex" could never be reported. Reorder the cases, cover all three failure branches with tests, add Scaladoc, and add a "Compiler Phases" tutorial page showing how to enable the validator via compilerPhases.

The depth && width case was ordered after the individual limit cases,
so "Query is too complex" could never be reported. Reorder the cases,
cover all three failure branches with tests, add Scaladoc, and add a
"Compiler Phases" tutorial page showing how to enable the validator
via compilerPhases.

@milessabin milessabin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, but could you fix the header/fmt issues. Thanks!

@milessabin milessabin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@milessabin
milessabin merged commit 4b50d2f into main Sep 1, 2026
23 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