Skip to content

Sidekiq worker to delete self-monitoring project

Reuben Pereira requested to merge 32351-delete-api into master

What does this MR do?

Create a Sidekiq worker which executes the Gitlab::DatabaseImporters::SelfMonitoring::Project::DeleteService:

  1. The worker has an .in_progress? class method that takes a job_id parameter and checks Sidekiq::Status to return true if the job is enqueued or in progress.

  2. Move specs from spec/workers/self_monitoring_project_create_worker_spec.rb into shared_examples so that they can be used in spec/workers/self_monitoring_project_delete_worker_spec.rb.

Issue: #32351 (closed)

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by 🤖 GitLab Bot 🤖

Merge request reports