Load project invited groups and members eagerly in ProjectTeam#fetch_members
What does this MR do?
Load project invited groups and members eagerly in ProjectTeam#fetch_members
, reducing number of queries to DB.
Are there points in the code the reviewer needs to double check?
N/A
Why was this MR needed?
ProjectTeam#fetch_members
is part of the code path of Participable#raw_participants
, so it should improve its performance a bit.
What are the relevant issue numbers?
Screenshots (if relevant)
N/A
Does this MR meet the acceptance criteria?
-
CHANGELOG entry added [ ] Documentation created/updated[ ] API support added-
Tests[ ] Added for this feature/bug[ ] All builds are passing
-
Conform by the style guides -
Branch has no merge conflicts with master
(if you do - rebase it please) -
Squashed related commits together