Drop projects order in IssuableFinder

When grabbing the projects to filter issues by we don't care about the
order they're returned in. By removing the ORDER BY the resulting query
can be quite a bit faster.
This commit is contained in:
Yorick Peterse 2016-01-06 17:33:43 +01:00
parent 0d0049c058
commit fc443ea7bc
1 changed files with 2 additions and 2 deletions

View File

@ -79,9 +79,9 @@ class IssuableFinder
if project?
@projects = project
elsif current_user && params[:authorized_only].presence && !current_user_related?
@projects = current_user.authorized_projects
@projects = current_user.authorized_projects.reorder(nil)
else
@projects = ProjectsFinder.new.execute(current_user)
@projects = ProjectsFinder.new.execute(current_user).reorder(nil)
end
end