diff options
author | Luke Duncalfe <lduncalfe@eml.cc> | 2019-03-20 12:07:51 +1300 |
---|---|---|
committer | Luke Duncalfe <lduncalfe@eml.cc> | 2019-03-21 09:58:06 +1300 |
commit | 5d4e02f17318a21a5c2b4fc588cad066a4cf7e59 (patch) | |
tree | 15f71af88858c9316c16eed5cf95d0ac388edf0d /locale | |
parent | 0420c2393beff2dcf045c9eff12ec44b13759c14 (diff) | |
download | gitlab-ce-5d4e02f17318a21a5c2b4fc588cad066a4cf7e59.tar.gz |
Handle blank projects in CommitCollection#enrich!
A project is needed in order to fetch data from gitaly. Projects can be
absent from commits in certain rare situations (like when viewing a MR
of a deleted fork). In these cases, assume that the enriched data is not
needed.
See this comment:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/26144#note_152191106
"It's led to a dilemma about where to "fix" this in code. I'm going
to fix it by allowing CommitCollection#enrich! to just return unenriched
commits when a project is missing, essentially "silently failing". I
hope this is the right decision. It's going with the assumption that
calls in these situations in the future are not needing the full data.
The alternative would be to allow CommitCollection#enrich! to still
error, but handle it in the methods that call #enrich!, however that
might lead to brittleness in future when working with project-less MRs."
Diffstat (limited to 'locale')
0 files changed, 0 insertions, 0 deletions