Page MenuHomePhabricator

Don't show an auth provider as enabled if it's still being created
ClosedPublic

Authored by amckinley on Feb 11 2017, 12:57 AM.
Tags
None
Referenced Files
F19804861: D17337.diff
Mon, Mar 2, 1:45 PM
F19573591: D17337.id.diff
Feb 1 2026, 5:26 AM
F19553977: D17337.id.diff
Jan 29 2026, 4:27 PM
F19503357: D17337.diff
Jan 8 2026, 11:16 PM
F18808153: D17337.id.diff
Oct 19 2025, 5:02 AM
F18623220: D17337.diff
Sep 15 2025, 2:52 PM
F18088582: D17337.id41696.diff
Aug 6 2025, 8:27 AM
F17915374: D17337.id.diff
Jul 29 2025, 8:33 PM
Subscribers

Details

Test Plan

attempted to create a new auth provider; observed that "enabled" ui element does not render. viewed existing auth provider and observed that "enabled" ui element still renders

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Maybe a little simpler like this? Should be the same logically, I think.

if (!$is_new) {
  if ($config->getIsEnabled()) {
    // ...
  } else {
    // ...
  }
}
This revision now requires changes to proceed.Feb 11 2017, 1:04 AM

(I'll just tweak that in the pull.)

This revision is now accepted and ready to land.Feb 13 2017, 3:02 PM
This revision was automatically updated to reflect the committed changes.