Merge branch 'sh-stop-loading-issue-discussions' into 'master'

Remove unnecessary loading of discussions in `IssuesController#show`

Closes #38034

See merge request gitlab-org/gitlab-ce!14351
This commit is contained in:
Douwe Maan 2017-09-19 11:14:54 +00:00
commit 706426d527
2 changed files with 5 additions and 3 deletions

View file

@ -71,9 +71,6 @@ class Projects::IssuesController < Projects::ApplicationController
@noteable = @issue
@note = @project.notes.new(noteable: @issue)
@discussions = @issue.discussions
@notes = prepare_notes_for_rendering(@discussions.flat_map(&:notes), @noteable)
respond_to do |format|
format.html
format.json do

View file

@ -0,0 +1,5 @@
---
title: Remove unnecessary loading of discussions in `IssuesController#show`
merge_request:
author:
type: fixed