Page MenuHomePhabricator

Fix transaction title rendering for AuthenticationConfigs
ClosedPublic

Authored by amckinley on Jul 17 2019, 7:32 PM.
Tags
None
Referenced Files
F15463205: D20655.diff
Tue, Apr 1, 9:25 PM
F15454596: D20655.id49271.diff
Sat, Mar 29, 7:14 PM
F15449999: D20655.id.diff
Fri, Mar 28, 1:25 PM
F15445433: D20655.diff
Thu, Mar 27, 1:53 PM
F15444339: D20655.diff
Thu, Mar 27, 9:07 AM
F15382305: D20655.diff
Fri, Mar 14, 11:48 AM
Unknown Object (File)
Mar 2 2025, 6:19 PM
Unknown Object (File)
Feb 10 2025, 1:42 AM
Subscribers

Details

Summary

I was poking around in PhabricatorAuthProviderViewController and noticed that none of the subclass-specific rendering was working. Figured out that no one ever calls PhabricatorAuthProviderConfigTransaction->setProvider(), so instead of adding all those calls, just pull the provider out of the config object.

Test Plan

Before:

Screen Shot 2019-07-17 at 12.28.51 PM.png (541×479 px, 46 KB)

After:
Screen Shot 2019-07-17 at 12.29.00 PM.png (565×579 px, 52 KB)

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This seems very likely to always work properly when we expect it to.

It's possible for a transaction to not have an object but it looks like getObject() throws in this case rather than returning null so we should get a helpful exception even if something bizarre is afoot on some pathway here.

This revision is now accepted and ready to land.Jul 17 2019, 7:39 PM