Skip to content

Delete non-latest merge request diff files upon MRs merge

What does this MR do?

Deletes non-latest merge request diff files upon MRs merge.

This MR doesn't cover the background migration which will cleanup diff files from old MRs (ongoing on https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/20013).

Reviewer should double-check

MergeRequest#merge_request_diff is safe to use in this context? I believe it'll always return a record, since we create a new merge request diff before deleting the non-latest.

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/37639

Edited by Oswaldo Ferreira

Merge request reports