Filter violations for existing approval rules
What does this MR do and why?
This MR fixes a case that can happen as a result of race condition where we have violations, but there are no related approval rules. The feature is behind a feature flag.
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.
Related to #433403 (closed)
Edited by Martin Čavoj