summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-09-12 10:40:50 +0000
committerJarka Kadlecova <jarka@gitlab.com>2017-09-12 13:10:03 +0200
commit9db5bfb7e787c090df9aad23c86e2e08333258b2 (patch)
tree37a4616d9b6d3b1d013fb35f9411175362d06cbf
parentaf326e2331e981576c5bd745a627ea92472225c8 (diff)
downloadgitlab-ce-9db5bfb7e787c090df9aad23c86e2e08333258b2.tar.gz
Merge branch 'dashboards-projects-controller' into 'master'
Eager load namespace owners for project dashboards Closes #27376 See merge request !14188
-rw-r--r--app/controllers/dashboard/projects_controller.rb2
-rw-r--r--changelogs/unreleased/dashboards-projects-controller.yml5
2 files changed, 6 insertions, 1 deletions
diff --git a/app/controllers/dashboard/projects_controller.rb b/app/controllers/dashboard/projects_controller.rb
index f71ab702e71..cd94a36a6e7 100644
--- a/app/controllers/dashboard/projects_controller.rb
+++ b/app/controllers/dashboard/projects_controller.rb
@@ -48,7 +48,7 @@ class Dashboard::ProjectsController < Dashboard::ApplicationController
ProjectsFinder
.new(params: finder_params, current_user: current_user)
.execute
- .includes(:route, :creator, namespace: :route)
+ .includes(:route, :creator, namespace: [:route, :owner])
end
def load_events
diff --git a/changelogs/unreleased/dashboards-projects-controller.yml b/changelogs/unreleased/dashboards-projects-controller.yml
new file mode 100644
index 00000000000..8b350f70a80
--- /dev/null
+++ b/changelogs/unreleased/dashboards-projects-controller.yml
@@ -0,0 +1,5 @@
+---
+title: Eager load namespace owners for project dashboards
+merge_request:
+author:
+type: other