diff options
author | Stan Hu <stanhu@gmail.com> | 2017-09-19 06:43:28 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2017-09-19 11:56:39 +0300 |
commit | 3b9c45a317e2197b823cea6676679a2acb3dc336 (patch) | |
tree | 556f8861f24d452243b60bdcd531c20ac64537fd /app/controllers/projects/issues_controller.rb | |
parent | 1f4911541d03a257c38a63c6aa36a1c7ca4c3b43 (diff) |
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
Diffstat (limited to 'app/controllers/projects/issues_controller.rb')
-rw-r--r-- | app/controllers/projects/issues_controller.rb | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/app/controllers/projects/issues_controller.rb b/app/controllers/projects/issues_controller.rb index 42bfa4b9d4f..a3ec79a56d9 100644 --- a/app/controllers/projects/issues_controller.rb +++ b/app/controllers/projects/issues_controller.rb @@ -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 |