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/commit_collection.rb')
-rw-r--r--app/models/commit_collection.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/models/commit_collection.rb b/app/models/commit_collection.rb
index b8653f47392..07c49ed48e6 100644
--- a/app/models/commit_collection.rb
+++ b/app/models/commit_collection.rb
@@ -47,7 +47,10 @@ class CommitCollection
pipelines = project.ci_pipelines.latest_pipeline_per_commit(map(&:id), ref)
each do |commit|
- commit.set_latest_pipeline_for_ref(ref, pipelines[commit.id])
+ pipeline = pipelines[commit.id]
+ pipeline&.number_of_warnings # preload number of warnings
+
+ commit.set_latest_pipeline_for_ref(ref, pipeline)
end
self