Commit 95047f1d authored by Valery Sizov's avatar Valery Sizov

Make diff discussion more reliable

parent c2173a14
...@@ -861,11 +861,13 @@ class MergeRequest < ActiveRecord::Base ...@@ -861,11 +861,13 @@ class MergeRequest < ActiveRecord::Base
paths: paths paths: paths
) )
transaction do
active_diff_notes.each do |note| active_diff_notes.each do |note|
service.execute(note) service.execute(note)
Gitlab::Timeless.timeless(note, &:save) Gitlab::Timeless.timeless(note, &:save)
end end
end end
end
def keep_around_commit def keep_around_commit
project.repository.keep_around(self.merge_commit_sha) project.repository.keep_around(self.merge_commit_sha)
......
---
title: Make MR-review-discussions more reliable
merge_request:
author:
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment