cf3be218e1
It improves performance in dashboard milestone index page by passing a hint to "IssuesFinder". "IssuesFinder" generates a more performant query when it is limited to authorized projects for user. In the dashboard we already limit the projects to these authorized for user (see "Dashboard::ApplicationController#projects"), so we can safely pass this option to "IssuesFinder".
5 lines
110 B
Ruby
5 lines
110 B
Ruby
class DashboardMilestone < GlobalMilestone
|
|
def issues_finder_params
|
|
{ authorized_only: true }
|
|
end
|
|
end
|