Commit 60dfe676 authored by Peter Leitzen's avatar Peter Leitzen

Merge branch 'remove-add_severity_system_note-feature-flag' into 'master'

Remove add severity system note feature flag

See merge request gitlab-org/gitlab!43998
parents e5644ec4 b2b5f567
......@@ -10,8 +10,6 @@ module SystemNotes
#
# Returns the created Note object
def change_incident_severity
return unless Feature.enabled?(:add_severity_system_note, noteable.project)
severity = noteable.severity
if severity_label = IssuableSeverity::SEVERITY_LABELS[severity.to_sym]
......
---
title: Add system note on incident severity change
merge_request: 43998
author:
type: added
---
name: add_severity_system_note
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/42358
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/251110
group: group::health
type: development
default_enabled: false
......@@ -15,11 +15,6 @@ RSpec.describe ::SystemNotes::IncidentService do
allow(Gitlab::AppLogger).to receive(:error).and_call_original
end
context 'with add_severity_system_note feature flag enabled' do
before do
stub_feature_flags(add_severity_system_note: project)
end
it_behaves_like 'a system note' do
let(:action) { 'severity' }
end
......@@ -61,19 +56,4 @@ RSpec.describe ::SystemNotes::IncidentService do
end
end
end
context 'with add_severity_system_note feature flag disabled' do
before do
stub_feature_flags(add_severity_system_note: false)
end
it 'does not create system note' do
expect { change_severity }.not_to change { noteable.notes.count }
end
it 'does not write error to logs' do
expect(Gitlab::AppLogger).not_to have_received(:error)
end
end
end
end
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