Preload member roles in group & policy preloaders
What does this MR do and why?
- The custom role query gets run the most amount of times because of
Ability.allowed?(user, <custom_ability>, subject
). This MR adds the custom role preloaders to both inGroupPolicyPreloader
andProjectPolicyPreloader
, behind a feature-flag.
References
Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.
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 #508616 (closed)
Edited by Hinam Mehra