Skip to content

Implement BranchRules::DestroyService

Joe Woodward requested to merge feat/branch_rule-destroy_service into master

What does this MR do and why?

Implement BranchRules::DestroyService

Contributes towards Branch rules MVC: Add GraphQL endpoint to delet... (#362219 - closed)

Branch rules come in 3 flavours. Projects::BranchRule which is a delegated ProtectedBranch record. Projects::AllBranchesRule and Projects::AllProtectedBranchesRule which are both aggregators.

This service handles destroying a Projects::BranchRule. In EE will will implement the ability to also pass Projects::AllBranchesRule and Projects::AllProtectedBranchesRule

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Merge request reports