Project

General

Profile

Actions

Patch #19706

closed

Issue show : optimizations

Added by Jérôme BATAILLE about 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Category:
Performance
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

# 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|
Actions

Also available in: Atom PDF