Commit c0e5c785 authored by syasonik's avatar syasonik

Sync EE with CE

parent a7caf914
......@@ -4,8 +4,15 @@ module EE
module Gitlab
module MetricsDashboard
module Processor
extend ::Gitlab::Utils::Override
EE_SEQUENCE = [
Stages::AlertsInserter
].freeze
override :sequence
def sequence
super + [Stages::AlertsInserter]
super + EE_SEQUENCE
end
end
end
......
......@@ -25,8 +25,9 @@ module EE
alerts = ::Projects::Prometheus::AlertsFinder
.new(project: project, environment: environment)
.execute
.pluck(:prometheus_metric_id)
@metrics_with_alerts = Set.new(alerts.map(&:prometheus_metric_id))
@metrics_with_alerts = Set.new(alerts)
end
def alert_path(metric_id, project, environment)
......
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