Skip to content

Reintroduce project setting for stopping MR code diff transmission

Joe Snyder requested to merge joe-snyder/gitlab:prevent_diff_in_email into master

What does this MR do and why?

Following the discussion in #24733 (closed), reintroduce the reverted code for preventing the sending of the code diff as part of the MR email. This MR adds the back-end parts necessary to introduce this functionality. A follow-up merge request will introduce the front-end updates to allow toggling of the capability.

Screenshots or screen recordings

How to set up and validate locally

  1. Create a project and/or namespace,
  2. Alter the value in the database
  3. Confirm value is returned via console

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Kerri Miller

Merge request reports