Loading
Add ops flag to stop compliance violation writes
What does this MR do and why?
Adds the merge_request_compliance_violations_writes ops feature flag as a kill switch for enqueuing ComplianceManagement::MergeRequests::ComplianceViolationsWorker after a merge.
That worker writes to the legacy merge_requests_compliance_violations table, which is used only by the deprecated old compliance violations report. The table keeps growing, so this gives us a way to stop new writes without a deploy.
- The flag is enabled by default, so merging this changes nothing.
- Turning it off stops new rows in the table. The old violations report and its CSV export then get no new violations.
Relates to #551236 and https://gitlab.com/gitlab-com/gl-infra/capacity-planning-trackers/gitlab-com/-/work_items/3207.
How to use
/chatops gitlab run feature set merge_request_compliance_violations_writes falseMR acceptance checklist
Evaluate this MR against the MR acceptance checklist.