Client Migration: Gitlab::Git::Blob#load_all_data!

~Conversation: #331 (closed)

Feature flag: gitaly_git_blob_load_all_data


Make Gitlab::Git::Blob#load_all_data! use the BlobService::GetBlob endpoint

https://gitlab.com/gitlab-org/gitlab-ce/blob/823000b9be93a1c5085ad3b9f47b0cf747d2e624/lib/gitlab/git/blob.rb#L164-172

Can be implemented using TreeEntry. This is Ruby only.

  • use Blob#path and Blob#commit_id to do a new call to TreeEntry (limit 0, i.e. no limiting) -> wrong, Blob#path can be nil
  • put the blob contents in @data

Update: This needs #331 (closed) BlobService::GetBlob

Edited Jul 11, 2017 by Jacob Vosmaer
Assignee Loading
Time tracking Loading