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 'app/models/bulk_import.rb')
-rw-r--r--app/models/bulk_import.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/models/bulk_import.rb b/app/models/bulk_import.rb
index c2d7529f468..fde528e3fa0 100644
--- a/app/models/bulk_import.rb
+++ b/app/models/bulk_import.rb
@@ -58,6 +58,10 @@ class BulkImport < ApplicationRecord
Gitlab::VersionInfo.new(MIN_MAJOR_VERSION, MIN_MINOR_VERSION_FOR_PROJECT)
end
+ def self.min_gl_version_for_migration_in_batches
+ Gitlab::VersionInfo.new(16, 2)
+ end
+
def self.all_human_statuses
state_machine.states.map(&:human_name)
end
@@ -68,4 +72,8 @@ class BulkImport < ApplicationRecord
update!(has_failures: true)
end
+
+ def supports_batched_export?
+ source_version_info >= self.class.min_gl_version_for_migration_in_batches
+ end
end