Add feature flag to stop legacy audit_events table writes
What does this MR do and why?
Add feature flag to stop legacy audit_events table writes
Introduce the stop_legacy_audit_event_writes feature flag to control dual-writes to the legacy audit_events table. When enabled, audit events are written only to the new scoped tables (project_audit_events, group_audit_events, instance_audit_events, user_audit_events).
This allows gradual rollout and instant rollback of the migration away from the legacy table. The new tables use a shared sequence for ID generation, ensuring uniqueness across all audit event tables.
Changelog: added
References
Screenshots or screen recordings
| Before | After |
|---|---|
How to set up and validate locally
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.