summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2017-02-03 17:00:17 +0000
committerSean McGivern <sean@mcgivern.me.uk>2017-02-03 17:00:17 +0000
commitbd8f2b15b3d5267075a626ce86f3a06cc650fcbf (patch)
tree0ff032af1a7b02099d9d79d60abb800d5a975b7e
parent087a496acb6da14d81fbc4946263e848388efe19 (diff)
parent3d7ace470b1f4c0f4cf90db6b1f7f1243c112de9 (diff)
downloadgitlab-ce-bd8f2b15b3d5267075a626ce86f3a06cc650fcbf.tar.gz
Merge branch '27267-unnecessary-queries-from-projects-dashboard-atom-and-json' into 'master'
Remove unnecessary queries for .atom and .json in Dashboard::ProjectsController#index Closes #27267 See merge request !8956
-rw-r--r--app/controllers/dashboard/projects_controller.rb4
-rw-r--r--changelogs/unreleased/27267-unnecessary-queries-from-projects-dashboard-atom-and-json.yml4
2 files changed, 5 insertions, 3 deletions
diff --git a/app/controllers/dashboard/projects_controller.rb b/app/controllers/dashboard/projects_controller.rb
index c08eb811532..3ba8c2f8bb9 100644
--- a/app/controllers/dashboard/projects_controller.rb
+++ b/app/controllers/dashboard/projects_controller.rb
@@ -10,10 +10,8 @@ class Dashboard::ProjectsController < Dashboard::ApplicationController
@projects = @projects.sort(@sort = params[:sort])
@projects = @projects.page(params[:page])
- @last_push = current_user.recent_push
-
respond_to do |format|
- format.html
+ format.html { @last_push = current_user.recent_push }
format.atom do
event_filter
load_events
diff --git a/changelogs/unreleased/27267-unnecessary-queries-from-projects-dashboard-atom-and-json.yml b/changelogs/unreleased/27267-unnecessary-queries-from-projects-dashboard-atom-and-json.yml
new file mode 100644
index 00000000000..7b307b501f4
--- /dev/null
+++ b/changelogs/unreleased/27267-unnecessary-queries-from-projects-dashboard-atom-and-json.yml
@@ -0,0 +1,4 @@
+---
+title: Remove unnecessary queries for .atom and .json in Dashboard::ProjectsController#index
+merge_request: 8956
+author: