Page MenuHomePhabricator

Don't fatal when viewing tags pointing at commits we haven't imported/parsed yet
ClosedPublic

Authored by epriestley on Jul 28 2017, 5:41 PM.
Tags
None
Referenced Files
F14056790: D18290.id43983.diff
Sat, Nov 16, 10:28 PM
F14011612: D18290.id43983.diff
Fri, Nov 1, 3:42 AM
F14009657: D18290.id43983.diff
Wed, Oct 30, 10:15 PM
F14001039: D18290.id43983.diff
Fri, Oct 25, 3:39 AM
F13992275: D18290.id43984.diff
Tue, Oct 22, 3:34 PM
F13962469: D18290.id43983.diff
Oct 15 2024, 10:16 AM
Unknown Object (File)
Oct 11 2024, 12:03 PM
Unknown Object (File)
Oct 7 2024, 7:29 AM
Subscribers
None
Tokens
"Like" token, awarded by jlap.

Details

Summary

In Diffusion, the "Tags" view may read commits which haven't imported or parsed yet, and thus don't have loadable objects.

Most of this logic tests for if ($commit), but the author part did not. Instead, don't render author information if $commit is not present.

Test Plan
  • Loaded tags view with commits present.
  • Faked $commit = null;, loaded tag view, got this instead of a fatal:

Screen Shot 2017-07-28 at 10.39.21 AM.png (903×1 px, 113 KB)

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable