Page MenuHomePhabricator

Distinguish between "Assigned" and "Effective" identity PHIDs more clearly and consistently
ClosedPublic

Authored by epriestley on Nov 14 2019, 4:09 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 12, 2:30 AM
Unknown Object (File)
Sun, Dec 8, 7:43 PM
Unknown Object (File)
Sat, Dec 7, 5:57 PM
Unknown Object (File)
Wed, Nov 27, 6:55 PM
Unknown Object (File)
Tue, Nov 26, 3:58 PM
Unknown Object (File)
Sun, Nov 24, 1:35 PM
Unknown Object (File)
Nov 18 2024, 6:13 PM
Unknown Object (File)
Nov 11 2024, 4:29 AM
Subscribers
Restricted Owners Package

Details

Summary

Ref T13444. You can currently explicitly unassign an identity (useful if the matching algorithm is misfiring). However, this populates the "currentEffectiveUserPHID" with the "unassigned()" token, which mostly makes things more difficult.

When an identity is explicitly unassigned, convert that into an explicit null in the effective user PHID.

Then, realign "assigned" / "effective" language a bit. Previously, withAssigneePHIDs(...) actualy queried effective users, which was misleading. Finally, bulk up the list view a little bit to make testing slightly easier.

Test Plan
  • Unassigned an identity, ran migration, saw currentEffectiveUserPHID become NULL for the identity.
  • Unassigned a fresh identity, saw NULL.
  • Queried for various identities under the modified constraints.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Owners added a subscriber: Restricted Owners Package.Nov 14 2019, 4:09 AM
This revision was not accepted when it landed; it landed in state Needs Review.Nov 19 2019, 5:37 PM
This revision was automatically updated to reflect the committed changes.