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)
Fri, Mar 8, 3:40 AM
Unknown Object (File)
Jan 17 2024, 7:24 AM
Unknown Object (File)
Jan 17 2024, 2:53 AM
Unknown Object (File)
Jan 9 2024, 8:22 AM
Unknown Object (File)
Jan 7 2024, 4:34 PM
Unknown Object (File)
Jan 3 2024, 7:23 PM
Unknown Object (File)
Jan 1 2024, 8:05 PM
Unknown Object (File)
Dec 30 2023, 6:03 PM
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.