summaryrefslogtreecommitdiff
path: root/app/models/commit.rb
diff options
context:
space:
mode:
authorAdam Niedzielski <adamsunday@gmail.com>2017-01-13 10:12:27 -0500
committerAdam Niedzielski <adamsunday@gmail.com>2017-01-16 11:58:16 -0500
commitcf3be218e17d147cb9b1395af6b968d47b56ce0a (patch)
treeddd59c0f77ce8824843b253bd5b8981598afb303 /app/models/commit.rb
parent0ff88ac56281db18afa37981530d97da0ea8e38a (diff)
downloadgitlab-ce-cf3be218e17d147cb9b1395af6b968d47b56ce0a.tar.gz
Speed up dashboard milestone index by scoping IssuesFinder to user authorized projectsspeed-up-dashboard-milestone-index
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".
Diffstat (limited to 'app/models/commit.rb')
0 files changed, 0 insertions, 0 deletions