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:
Diffstat (limited to 'lib/bulk_imports/clients/graphql.rb')
-rw-r--r--lib/bulk_imports/clients/graphql.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/bulk_imports/clients/graphql.rb b/lib/bulk_imports/clients/graphql.rb
index e1e78f52801..94bbdfaa681 100644
--- a/lib/bulk_imports/clients/graphql.rb
+++ b/lib/bulk_imports/clients/graphql.rb
@@ -38,12 +38,9 @@ module BulkImports
@url = Gitlab::Utils.append_path(url, '/api/graphql')
@token = token
@client = Graphlient::Client.new(@url, options(http: HTTP))
- @compatible_instance_version = false
end
def execute(...)
- validate_instance_version!
-
client.execute(...)
end
@@ -57,19 +54,6 @@ module BulkImports
}
}.merge(extra)
end
-
- def validate_instance_version!
- return if @compatible_instance_version
-
- response = client.execute('{ metadata { version } }')
- version = Gitlab::VersionInfo.parse(response.data.metadata.version)
-
- if version.major < BulkImport::MIN_MAJOR_VERSION
- raise ::BulkImports::Error.unsupported_gitlab_version
- else
- @compatible_instance_version = true
- end
- end
end
end
end