Skip to content

Destroy On-call Rotation Mutation

Sean Arnold requested to merge 262863-delete-oncall-rotation-graphql into master

What does this MR do?

This adds a mutation for destroying On-call Rotations via the GraphQL API.

Mutation:

mutation destroyRotation($input: OncallRotationDestroyInput!){
  oncallRotationDestroy(input: $input) {
    oncallRotation {
      name
    }
  }
}

Input:

{
  "input": {
    "projectPath": "root/autodevops-deploy-test",
    "scheduleIid": "1",
    "id": "gid://gitlab/IncidentManagement::OncallRotation/4"
  }
}

To do this we have created:

  • An Oncall::Rotations finder
  • An OncallRotations::DestroyService service
  • An OncallRotation::Destroy mutation

Screenshots (strongly suggested)

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

Related to #262863 (closed)

Edited by Sean Arnold

Merge request reports