diff options
author | charlieablett <cablett@gitlab.com> | 2019-06-26 22:42:25 +1200 |
---|---|---|
committer | charlieablett <cablett@gitlab.com> | 2019-07-03 22:53:13 +1200 |
commit | a11fe5de4408595cc8b2b091cbbb76e423c98f34 (patch) | |
tree | 4e1331ee717b7f1d3e6b6810c9005546f22c7e8a /app/graphql/types/repository_type.rb | |
parent | f4890d90782ad42a802b89c2a17c83bf9fb9d123 (diff) | |
download | gitlab-ce-a11fe5de4408595cc8b2b091cbbb76e423c98f34.tar.gz |
Wrap proc properly in gitaly call counts
- Add `calls_gitaly: true` to some fields missing (hey, it works!)
- Clarify proc wrapping
- Add kwargs argument to `mount_mutation`
Diffstat (limited to 'app/graphql/types/repository_type.rb')
-rw-r--r-- | app/graphql/types/repository_type.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/graphql/types/repository_type.rb b/app/graphql/types/repository_type.rb index 5987467e1ea..b024eca61fc 100644 --- a/app/graphql/types/repository_type.rb +++ b/app/graphql/types/repository_type.rb @@ -6,9 +6,9 @@ module Types authorize :download_code - field :root_ref, GraphQL::STRING_TYPE, null: true - field :empty, GraphQL::BOOLEAN_TYPE, null: false, method: :empty? + field :root_ref, GraphQL::STRING_TYPE, null: true, calls_gitaly: true + field :empty, GraphQL::BOOLEAN_TYPE, null: false, method: :empty?, calls_gitaly: true field :exists, GraphQL::BOOLEAN_TYPE, null: false, method: :exists? - field :tree, Types::Tree::TreeType, null: true, resolver: Resolvers::TreeResolver + field :tree, Types::Tree::TreeType, null: true, resolver: Resolvers::TreeResolver, calls_gitaly: true end end |