Skip to content

Migration to execute SelfMonitoring::Project::CreateService

Reuben Pereira requested to merge ee-56883-migration into master

What does this MR do?

This MR adds a migration to create a project for self-monitoring the GitLab instance by executing the SelfMonitoring::Project::CreateService service. The service is copied into the migration to prevent changes to the service from causing migration failures later. There is a migration spec as well, which should also help to prevent code changes from causing migration failures.

The db/post_migrate/20190809072552_set_self_monitoring_project_alerting_token.rb migration is EE only. It generates an alertmanager token for the above project, and stores it in the project_alerting_settings DB table.

Issue: https://gitlab.com/gitlab-org/gitlab-ce/issues/56883

CE MR: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/31389

Does this MR meet the acceptance criteria?

Conformity

Performance and testing

Edited by 🤖 GitLab Bot 🤖

Merge request reports

Loading