Commit 828357fb authored by Douwe Maan's avatar Douwe Maan

Merge branch 'zj-n-1-root-show' into 'master'

Remove N + 1 block for Root#show

Closes #37434 and gitaly#996

See merge request gitlab-org/gitlab-ce!16968
parents 5eb8a023 73bc9d4e
......@@ -13,11 +13,8 @@ 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
end
private
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment