Skip to content
Snippets Groups Projects
Commit ea753d87 authored by Brett Walker's avatar Brett Walker
Browse files

Attempt specs with interpreter enabled

parent e278222f
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment