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
F19615395: D18290.id.diff
Wed, Feb 4, 12:04 AM
F19233550: D18290.id43983.diff
Dec 21 2025, 5:42 PM
F19103758: D18290.id.diff
Dec 5 2025, 11:40 AM
F19097718: D18290.diff
Dec 4 2025, 2:42 PM
F18874043: D18290.diff
Nov 5 2025, 12:49 PM
F18869417: D18290.id.diff
Nov 4 2025, 11:42 AM
F18865901: D18290.diff
Nov 3 2025, 2:32 PM
F18782895: D18290.id43983.diff
Oct 13 2025, 2:54 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