Commit 4c98ec27 authored by Peter Leitzen's avatar Peter Leitzen

Remove remaining FF alert_management_minimal

Follow-up to
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/31171
parent 2a2e39e9
...@@ -117,8 +117,6 @@ module Projects ...@@ -117,8 +117,6 @@ module Projects
end end
def process_prometheus_alerts def process_prometheus_alerts
return unless Feature.enabled?(:alert_management_minimal, project)
alerts.each do |alert| alerts.each do |alert|
AlertManagement::ProcessPrometheusAlertService AlertManagement::ProcessPrometheusAlertService
.new(project, nil, alert.to_h) .new(project, nil, alert.to_h)
......
...@@ -225,11 +225,6 @@ describe Projects::Prometheus::Alerts::NotifyService do ...@@ -225,11 +225,6 @@ describe Projects::Prometheus::Alerts::NotifyService do
create(:project_alerting_setting, project: project, token: token) create(:project_alerting_setting, project: project, token: token)
end end
context 'when alert_management_minimal feature enabled' do
before do
stub_feature_flags(alert_management_minimal: true)
end
context 'with multiple firing alerts and resolving alerts' do context 'with multiple firing alerts and resolving alerts' do
let(:payload_raw) do let(:payload_raw) do
payload_for(firing: [alert_firing, alert_firing], resolved: [alert_resolved]) payload_for(firing: [alert_firing, alert_firing], resolved: [alert_resolved])
...@@ -248,20 +243,6 @@ describe Projects::Prometheus::Alerts::NotifyService do ...@@ -248,20 +243,6 @@ describe Projects::Prometheus::Alerts::NotifyService do
end end
end end
context 'when alert_management_minimal feature disabled' do
before do
stub_feature_flags(alert_management_minimal: false)
end
it 'does not process Prometheus alerts' do
expect(AlertManagement::ProcessPrometheusAlertService)
.not_to receive(:new)
subject
end
end
end
context 'process incident issues' do context 'process incident issues' do
before do before do
create(:prometheus_service, project: project) create(:prometheus_service, project: project)
......
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