Commit e7e63e68 authored by Peter Leitzen's avatar Peter Leitzen

Add a comment why we are sending emails

parent 39b98f96
......@@ -31,6 +31,11 @@ module Projects
end
def send_email?
# Send email if the `incident_management` feature flag is disabled.
# This is done in order to keep the old behavior of sending emails for
# any project which does not have the new `incident_management` feature.
# See point 3 in
# https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/9830#what-does-this-mr-do
return firings.any? unless incident_management_available?
incident_management_setting.send_email && firings.any?
......
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