Page MenuHomePhabricator

Fix transaction title rendering for AuthenticationConfigs
ClosedPublic

Authored by amckinley on Jul 17 2019, 7:32 PM.
Tags
None
Referenced Files
F14843053: D20655.diff
Sun, Feb 2, 3:32 AM
Unknown Object (File)
Mon, Jan 27, 11:33 PM
Unknown Object (File)
Fri, Jan 24, 7:50 PM
Unknown Object (File)
Wed, Jan 22, 6:25 PM
Unknown Object (File)
Wed, Jan 22, 6:19 PM
Unknown Object (File)
Tue, Jan 21, 9:41 AM
Unknown Object (File)
Thu, Jan 16, 10:33 PM
Unknown Object (File)
Sat, Jan 11, 9:48 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