Skip to content
GitLab
Next
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
GitLab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
GitLab.org
GitLab
Commits
ea753d87
Commit
ea753d87
authored
3 years ago
by
Brett Walker
Browse files
Options
Downloads
Patches
Plain Diff
Attempt specs with interpreter enabled
parent
e278222f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/graphql/gitlab_schema.rb
+7
-7
7 additions, 7 deletions
app/graphql/gitlab_schema.rb
with
7 additions
and
7 deletions
app/graphql/gitlab_schema.rb
+
7
−
7
View file @
ea753d87
...
...
@@ -10,11 +10,11 @@ class GitlabSchema < GraphQL::Schema
DEFAULT_MAX_DEPTH
=
15
AUTHENTICATED_MAX_DEPTH
=
20
if
Feature
.
enabled?
(
:graphql_interpreter
)
#
if Feature.enabled?(:graphql_interpreter)
use
GraphQL
::
Execution
::
Interpreter
# And, when you have updated your analyzers:
use
GraphQL
::
Analysis
::
AST
end
#
end
use
GraphQL
::
Subscriptions
::
ActionCableSubscriptions
use
GraphQL
::
Pagination
::
Connections
...
...
@@ -23,13 +23,13 @@ class GitlabSchema < GraphQL::Schema
use
Gitlab
::
Graphql
::
GenericTracing
use
Gitlab
::
Graphql
::
Timeout
,
max_seconds:
Gitlab
.
config
.
gitlab
.
graphql_timeout
if
Feature
.
enabled?
(
:graphql_interpreter
)
#
if Feature.enabled?(:graphql_interpreter)
query_analyzer
Gitlab
::
Graphql
::
QueryAnalyzers
::
AST
::
LoggerAnalyzer
query_analyzer
Gitlab
::
Graphql
::
QueryAnalyzers
::
AST
::
RecursionAnalyzer
else
query_analyzer
Gitlab
::
Graphql
::
QueryAnalyzers
::
LoggerAnalyzer
.
new
query_analyzer
Gitlab
::
Graphql
::
QueryAnalyzers
::
RecursionAnalyzer
.
new
end
#
else
#
query_analyzer Gitlab::Graphql::QueryAnalyzers::LoggerAnalyzer.new
#
query_analyzer Gitlab::Graphql::QueryAnalyzers::RecursionAnalyzer.new
#
end
max_complexity
DEFAULT_MAX_COMPLEXITY
max_depth
DEFAULT_MAX_DEPTH
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment