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-05-27 06:08:03 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-05-27 06:08:03 +0300
commitc258498bd253e0dbb038d51f237cee1ebf0d0f56 (patch)
tree2fafd83d60bf1b104b2bd39b199c79ddf91564a7 /app/models/bulk_imports
parent17f6b320a11fc5bc1261994a7a93b34096e365e3 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/bulk_imports')
-rw-r--r--app/models/bulk_imports/entity.rb13
1 files changed, 1 insertions, 12 deletions
diff --git a/app/models/bulk_imports/entity.rb b/app/models/bulk_imports/entity.rb
index dee533944e9..cad2fafe640 100644
--- a/app/models/bulk_imports/entity.rb
+++ b/app/models/bulk_imports/entity.rb
@@ -99,18 +99,7 @@ class BulkImports::Entity < ApplicationRecord
end
def pipeline_exists?(name)
- pipelines.any? { |_, pipeline| pipeline.to_s == name.to_s }
- end
-
- def create_pipeline_trackers!
- self.class.transaction do
- pipelines.each do |stage, pipeline|
- trackers.create!(
- stage: stage,
- pipeline_name: pipeline
- )
- end
- end
+ pipelines.any? { _1[:pipeline].to_s == name.to_s }
end
def entity_type