Fix Rubocop Rails/InverseOf violations in CI namespace
What does this MR do and why?
Fix Rubocop Rails/InverseOf
violations.
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