diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-13 15:12:20 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-13 15:12:20 +0300 |
commit | 429a0c87c1f36ff9ebfe131ebb6c71a83d9f917c (patch) | |
tree | ffe9ecb8fc29c6fd9aaeef295bd92d3da3d0a312 /app/models/bulk_import.rb | |
parent | bc2f7ab125361e4180018b1b933f42a8709df356 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/bulk_import.rb')
-rw-r--r-- | app/models/bulk_import.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/app/models/bulk_import.rb b/app/models/bulk_import.rb index dee55675304..818ae04ba29 100644 --- a/app/models/bulk_import.rb +++ b/app/models/bulk_import.rb @@ -4,7 +4,8 @@ # projects to a GitLab instance. It associates the import with the responsible # user. class BulkImport < ApplicationRecord - MINIMUM_GITLAB_MAJOR_VERSION = 14 + MIN_MAJOR_VERSION = 14 + MIN_MINOR_VERSION_FOR_PROJECT = 4 belongs_to :user, optional: false @@ -34,6 +35,14 @@ class BulkImport < ApplicationRecord end end + def source_version_info + Gitlab::VersionInfo.parse(source_version) + end + + def self.min_gl_version_for_project_migration + Gitlab::VersionInfo.new(MIN_MAJOR_VERSION, MIN_MINOR_VERSION_FOR_PROJECT) + end + def self.all_human_statuses state_machine.states.map(&:human_name) end |