Fix N+1 queries for Changelog generation
What does this MR do and why?
Contributes to #340941
Problem
#contributor?
check verifies authors' permissions one by one. This
triggers N requests for each commit author.
Solution
Preload commits authors' permissions to generate an optimized query.
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 Vasilii Iakliushin