Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-12-03 18:07:15 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-12-03 18:07:15 +0300
commitfdd5c2a476dade1dd0874e37ab0c0b9ff88381ab (patch)
tree4abb334a7f0fab9698e20e2e6e672abc66c37113 /lib/gitlab/graphql
parenta3759fc2e1f8aa1493840ab0d4ebd4a2e5f495aa (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/graphql')
-rw-r--r--lib/gitlab/graphql/queries.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/graphql/queries.rb b/lib/gitlab/graphql/queries.rb
index b97a003813d..cf06a2729d9 100644
--- a/lib/gitlab/graphql/queries.rb
+++ b/lib/gitlab/graphql/queries.rb
@@ -78,7 +78,7 @@ module Gitlab
# remove variable definitions only used in skipped (client) fields
vars = op.variables.reject do |v|
- @skipped_arguments.include?(v.name) && @printed_arguments.exclude?(v.name)
+ @skipped_arguments.include?(v.name) && !@printed_arguments.include?(v.name)
end
if vars.any?
@@ -109,7 +109,7 @@ module Gitlab
end
def print_fragment_definition(fragment_def, indent: "")
- if skips? && @skipped_fragments.include?(fragment_def.name) && @used_fragments.exclude?(fragment_def.name)
+ if skips? && @skipped_fragments.include?(fragment_def.name) && !@used_fragments.include?(fragment_def.name)
return ''
end