Page MenuHomePhabricator

Fix transaction title rendering for AuthenticationConfigs
ClosedPublic

Authored by amckinley on Jul 17 2019, 7:32 PM.
Tags
None
Referenced Files
F13087491: D20655.diff
Thu, Apr 25, 12:59 AM
Unknown Object (File)
Fri, Apr 19, 3:17 AM
Unknown Object (File)
Fri, Apr 19, 3:17 AM
Unknown Object (File)
Fri, Apr 19, 3:17 AM
Unknown Object (File)
Thu, Apr 18, 4:58 AM
Unknown Object (File)
Thu, Apr 11, 4:26 AM
Unknown Object (File)
Sat, Mar 30, 12:24 PM
Unknown Object (File)
Sat, Mar 30, 8:25 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
Branch
master
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 23139
Build 31776: Run Core Tests
Build 31775: arc lint + arc unit

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