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:
authorJacob Vosmaer <jacob@gitlab.com>2018-07-17 12:07:44 +0300
committerJacob Vosmaer <jacob@gitlab.com>2018-07-17 12:07:44 +0300
commite5854814f654de0cee3f43a5de8ce504c49a5ea3 (patch)
tree184fbf8d9c7217e20a6d130d5ee6d7dde58a99ce /app/models/project.rb
parent05b25f5a5f0b6d1b694d27dea136a4c3341aba8d (diff)
Add cross-link to N+1 issue
[ci-skip]
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 4b57aa0242f..ae0a13b17dc 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -2171,6 +2171,7 @@ class Project < ActiveRecord::Base
merge_requests = source_of_merge_requests.opened
.where(allow_collaboration: true)
+ # Issue for N+1: https://gitlab.com/gitlab-org/gitlab-ce/issues/49322
Gitlab::GitalyClient.allow_n_plus_1_calls do
if branch_name
merge_requests.find_by(source_branch: branch_name)&.can_be_merged_by?(user)