Don't allow N +1 calls from Root#show

This commit is contained in:
Zeger-Jan van de Weg 2018-02-07 12:29:05 +01:00
parent 826105dfda
commit 73bc9d4eaf
No known key found for this signature in database
GPG Key ID: 65F6A8D64A88ABAC
1 changed files with 1 additions and 4 deletions

View File

@ -13,10 +13,7 @@ class RootController < Dashboard::ProjectsController
before_action :redirect_logged_user, if: -> { current_user.present? }
def index
# n+1: https://gitlab.com/gitlab-org/gitlab-ce/issues/37434
Gitlab::GitalyClient.allow_n_plus_1_calls do
super
end
super
end
private