summaryrefslogtreecommitdiff
path: root/app/graphql
diff options
context:
space:
mode:
authorBrett Walker <bwalker@gitlab.com>2019-04-05 12:30:10 -0500
committerBrett Walker <bwalker@gitlab.com>2019-04-08 12:33:33 -0500
commite86a2e7eb27468de8357f27752a9f86ee926807e (patch)
treed95fce50b5495cb78926adbe3703a81b9478ad8d /app/graphql
parent425377f35747131bed6550170af576d3028b28f9 (diff)
downloadgitlab-ce-e86a2e7eb27468de8357f27752a9f86ee926807e.tar.gz
Increase GraphQL complexity
An IntrospectionQuery required more complexity points.
Diffstat (limited to 'app/graphql')
-rw-r--r--app/graphql/gitlab_schema.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/app/graphql/gitlab_schema.rb b/app/graphql/gitlab_schema.rb
index 53efd9042b1..1afe000c5f8 100644
--- a/app/graphql/gitlab_schema.rb
+++ b/app/graphql/gitlab_schema.rb
@@ -1,12 +1,11 @@
# frozen_string_literal: true
class GitlabSchema < GraphQL::Schema
- # Took our current most complicated query in use, issues.graphql,
- # with a complexity of 19, and added a 20 point buffer to it.
+ # Currently an IntrospectionQuery has a complexity of 179.
# These values will evolve over time.
- DEFAULT_MAX_COMPLEXITY = 40
- AUTHENTICATED_COMPLEXITY = 50
- ADMIN_COMPLEXITY = 60
+ DEFAULT_MAX_COMPLEXITY = 200
+ AUTHENTICATED_COMPLEXITY = 250
+ ADMIN_COMPLEXITY = 300
use BatchLoader::GraphQL
use Gitlab::Graphql::Authorize