-
- Downloads
Fix showing diff when it has legacy diff notes
Do not try to unfold `LegacyDiffNote`s as they don't support `position` even though they're in the same `notes` table as `DiffNote`s. This is done by using `Gitlab::Diff::PositionCollection` which will be responsible for filtering the positions.
Showing
- app/controllers/projects/merge_requests/diffs_controller.rb 5 additions, 3 deletionsapp/controllers/projects/merge_requests/diffs_controller.rb
- changelogs/unreleased/27715-fix-unrenderable-notes.yml 5 additions, 0 deletionschangelogs/unreleased/27715-fix-unrenderable-notes.yml
- lib/gitlab/diff/position_collection.rb 15 additions, 3 deletionslib/gitlab/diff/position_collection.rb
- spec/controllers/projects/merge_requests/diffs_controller_spec.rb 2 additions, 2 deletions...trollers/projects/merge_requests/diffs_controller_spec.rb
- spec/lib/gitlab/diff/position_collection_spec.rb 11 additions, 2 deletionsspec/lib/gitlab/diff/position_collection_spec.rb
Please register or sign in to comment