Use persisted diff data instead fetching Git on discussions
Today, when fetching diffs of a note, we always go to Gitaly in order to diff between commits and return the diff of each discussion note. With this change we avoid doing that for notes on the "current version" of the MR.
显示
- app/models/diff_note.rb 14 个添加, 1 个删除app/models/diff_note.rb
- changelogs/unreleased/osw-use-cached-highlighted-content-for-discussions.yml 5 个添加, 0 个删除...ed/osw-use-cached-highlighted-content-for-discussions.yml
- lib/gitlab/diff/file_collection/base.rb 2 个添加, 0 个删除lib/gitlab/diff/file_collection/base.rb
- spec/models/diff_note_spec.rb 28 个添加, 5 个删除spec/models/diff_note_spec.rb
加载中
想要评论请 注册 或 登录