diff options
author | Oswaldo Ferreira <oswaldo@gitlab.com> | 2017-02-02 21:16:23 -0200 |
---|---|---|
committer | Oswaldo Ferreira <oswaldo@gitlab.com> | 2017-02-03 11:53:58 -0200 |
commit | fd29baa1b55e7cbd4f95b60688e2bbc39ca27642 (patch) | |
tree | e370c43decf84bb679e296da283e13740571194a | |
parent | 4b160ab504ff6dd5c95e8defdd3ee7f00d7c8ab3 (diff) | |
download | gitlab-ce-27267-unnecessary-queries-from-projects-dashboard-atom-and-json.tar.gz |
Remove unnecessary queries for .atom and .json dashboard projects#index27267-unnecessary-queries-from-projects-dashboard-atom-and-json
-rw-r--r-- | app/controllers/dashboard/projects_controller.rb | 4 | ||||
-rw-r--r-- | changelogs/unreleased/27267-unnecessary-queries-from-projects-dashboard-atom-and-json.yml | 4 |
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..28986e87324 --- /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 dashboard projects#index +merge_request: 8956 +author: |