Vote #76320
完了Issue show : optimizations
0%
説明
# in app/controllers/issue_controller.rb in
def show
@changesets = @issue.changesets.visible.includes([:repository, :user, :issues]).all
# in app/helper/issues_helper in :
def render_descendants_tree(issue)
issue_list(issue.descendants.visible.includes([:status, :priority, :tracker]).sort_by(&:lft)) do |child, level|
journals
Some optimizations could be made in *parse_redmine_links* too, because issues and priorities are loaded multiple times (from cache though)
--------------------------------------------------------------------------------
Patch committed with slight changes, thanks.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Thanks for having reviewed this patch !
--------------------------------------------------------------------------------