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
This commit is contained in:
Sean McGivern 2017-02-03 17:00:17 +00:00
commit bd8f2b15b3
2 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -0,0 +1,4 @@
---
title: Remove unnecessary queries for .atom and .json in Dashboard::ProjectsController#index
merge_request: 8956
author: