Create email notifications for merge request reviewers

What does this MR do?

Related to #216054 (closed)

This MR adds email notifications to new merge request reviewers. Reviewers feature is currently behind a feature flag :merge_request_reviewers.

Migration

$ rake db:migrate:up VERSION=20200909083339

== 20200909083339 AddChangeReviewerMergeRequestToNotificationSettings: migrating
-- add_column(:notification_settings, :change_reviewer_merge_request, :boolean)
   -> 0.0010s
== 20200909083339 AddChangeReviewerMergeRequestToNotificationSettings: migrated (0.0011s)

$ rake db:migrate:down VERSION=20200909083339

== 20200909083339 AddChangeReviewerMergeRequestToNotificationSettings: reverting
-- remove_column(:notification_settings, :change_reviewer_merge_request, :boolean)
   -> 0.0019s
== 20200909083339 AddChangeReviewerMergeRequestToNotificationSettings: reverted (0.0046s)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Sincheol (David) Kim

Merge request reports

Loading