Skip to content

Move CreateEventService and ProcessPrometheusAlertWorker from EE to CE

Summary

Contributes to #42640 (closed)

Move CreateEventService, ProcessPrometheusAlertWorker, and theirs dependencies from EE domain to CE.

Dependencies:

  • PrometheusAlertEvent and factory
  • SelfManagedPrometheusAlertEvent and factory
  • AlertEventLifecycle
  • Associations in Project and Environment
graph TD
  CES[CreateEventService] --> PAE
  PPAW[ProcessPrometheusAlertWorker] --> PAE
  PPAW --> SMPAE[SelfManagedPrometheusAlertEvent]
  PAE[PrometheusAlertEvent] --> PAEF[Factory]
  PAE --> AEL[AlertEventLifecycle]
  SMPAE --> SMPAEF[Factory]
  SMPAE --> AEL
  SMPAE --> assoc(Associations: Project, Environment)
  PAE --> assoc

Improvements

Moving Prometheus alerts from EE to CE requires a lot of code changes. All the required changes can be split and moved in several steps (as described here).

Risks

Involved components

Optional: Intended side effects

Optional: Missing test coverage

Edited by Vitali Tatarintev