-
Notifications
You must be signed in to change notification settings - Fork 258
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: add query complexity and depth support in server directive #2828
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2828 +/- ##
==========================================
+ Coverage 87.13% 87.27% +0.14%
==========================================
Files 254 257 +3
Lines 25144 25343 +199
==========================================
+ Hits 21910 22119 +209
+ Misses 3234 3224 -10 ☔ View full report in Codecov by Sentry. |
.when(self.index.query_depth().is_some()), | ||
) | ||
.validate(&plan) | ||
.to_result()?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Store the computed query depth in the plan. The builder should not fail if depth or complexity thresholds are exceeded.
} | ||
} | ||
|
||
impl ExecutionRule for QueryDepth { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ExecutionRule is basically Transform with Value = OperationPlan and Error = String. Let's reuse it here.
Action required: PR inactive for 5 days. |
Action required: PR inactive for 5 days. |
Action required: PR inactive for 5 days. |
Action required: PR inactive for 5 days. |
Action required: PR inactive for 5 days. |
PR closed after 10 days of inactivity. |
Action required: PR inactive for 5 days. |
PR closed after 10 days of inactivity. |
Summary:
documentation update pull request: tailcallhq/tailcallhq.github.io#492
Issue Reference(s):
Fixes #2725
Build & Testing:
cargo test
successfully../lint.sh --mode=fix
to fix all linting issues raised by./lint.sh --mode=check
.Checklist:
<type>(<optional scope>): <title>