Skip to content
Snippets Groups Projects
Commit 706426d5 authored by Douwe Maan's avatar Douwe Maan
Browse files

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
parents 404a5623 3b9c45a3
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
---
title: Remove unnecessary loading of discussions in `IssuesController#show`
merge_request:
author:
type: fixed
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment