Skip to content

Efficiently fetch avatar from Gitaly

Vasilii Iakliushin requested to merge 386627_fetch_avatar_from_gitaly into master

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.

  1. Enable feature flag readme_from_gitaly
  2. 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.

Edited by Vasilii Iakliushin

Merge request reports