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
Unknown Object (File)
Sun, Dec 22, 6:07 AM
Unknown Object (File)
Thu, Dec 19, 8:48 PM
Unknown Object (File)
Wed, Dec 11, 10:33 PM
Unknown Object (File)
Sun, Dec 8, 3:51 AM
Unknown Object (File)
Nov 17 2024, 11:53 AM
Unknown Object (File)
Nov 17 2024, 11:46 AM
Unknown Object (File)
Nov 16 2024, 10:28 PM
Unknown Object (File)
Nov 1 2024, 3:42 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