Efficiently fetch avatar from Gitaly
What does this MR do and why?
Contributes to #386627
Problem
The same way as in !108609 (merged), we inefficiently fetch avatar from the repository. We use two Gitaly calls, however only one is enough.
Solution
Apply the same logic as for readme_url
discovery.
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Enable feature flag
readme_from_gitaly
- Use a profiler for URL: http://127.0.0.1:3000/api/v4/projects
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