Page MenuHomePhabricator

Change "Revision Close" story to use commit identities only with no fallback to commit data
ClosedPublic

Authored by epriestley on Apr 22 2019, 7:46 PM.
Tags
None
Referenced Files
F22779988: D20460.diff
Tue, Oct 6, 2:34 AM
Unknown Object (File)
Aug 19 2026, 3:19 AM
Unknown Object (File)
Aug 17 2026, 10:42 PM
Unknown Object (File)
Jul 4 2026, 6:15 AM
Unknown Object (File)
Jul 2 2026, 3:25 AM
Unknown Object (File)
Jul 1 2026, 3:12 AM
Unknown Object (File)
Jun 20 2026, 7:04 PM
Unknown Object (File)
Jun 1 2026, 3:56 PM
Subscribers
None

Details

Summary

See PHI1213. If we don't have identities for "revision X closed by commit Y" stories, just do the plain non-attribution rendering rather than trying to fall back. Falling back won't work since we don't load the data, which should be OK now since identities seem like they're in generally good shape.

(We could probably just throw out the fallback behavior instead, but we can always clean things up later.)

Test Plan

Forced no commit identity on a revision, loaded it, saw reasonable story rendering.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Specifically, the problem is that getAuthorDisplayPHID() does if (!$identity) { $this->getData()->... } which throws, since we didn't needCommitData(). But I want to move toward a future where we really don't need the commit data, and this seems like a good opportunity to step in that direction.

This revision is now accepted and ready to land.Apr 23 2019, 5:47 PM