Fix Rubocop Rails/InverseOf violations
What does this MR do and why?
Fix Rubocop Rails/InverseOf violations.
app/models/alert_management/alert.rbapp/models/alert_management/alert_assignee.rbapp/models/application_setting.rbapp/models/audit_event.rbapp/models/board.rbapp/models/bulk_imports/entity.rbapp/models/bulk_imports/tracker.rb
This change will hint Rails to use already loaded data instead of fetching it again through a relationship.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
- Run the following command to generate existing violations
rake rubocop:todo:generate[Rails/InverseOf] - Confirm that there are no additional change to the
.rubocop_todo/rails/inverse_of.yml
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Tan Le