Remove unnecessary loading of discussions in IssuesController#show
Discussions are now done asynchronously via the `IssuesController#discussions` endpoint, so this should no longer be needed. This was taking 32% of the load time for GitLab CE issue 1. Closes #38034
This commit is contained in:
parent
1f4911541d
commit
3b9c45a317
2 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Remove unnecessary loading of discussions in `IssuesController#show`
|
||||
merge_request:
|
||||
author:
|
||||
type: fixed
|
Loading…
Reference in a new issue