Extend Danger bot to check scope definitions for database review
What does this MR do and why?
Update the BulkDatabaseActions danger plugin to detect ActiveRecord scope definitions in addition to bulk operations. Scopes can introduce performance issues when their query conditions change, so they should trigger the same database review prompt as bulk operations.
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.
Related to #583046 (closed)