Commit 7e992b0b authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'dashboards-projects-controller' into 'master'

Eager load namespace owners for project dashboards

Closes #27376

See merge request !14188
parents 0d3f6a54 615ba007
...@@ -48,7 +48,7 @@ class Dashboard::ProjectsController < Dashboard::ApplicationController ...@@ -48,7 +48,7 @@ class Dashboard::ProjectsController < Dashboard::ApplicationController
ProjectsFinder ProjectsFinder
.new(params: finder_params, current_user: current_user) .new(params: finder_params, current_user: current_user)
.execute .execute
.includes(:route, :creator, namespace: :route) .includes(:route, :creator, namespace: [:route, :owner])
end end
def load_events def load_events
......
---
title: Eager load namespace owners for project dashboards
merge_request:
author:
type: other
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