HomePhabricator

Remove "Effective User" attachment from Repository Identities

Description

Remove "Effective User" attachment from Repository Identities

Summary:
See https://discourse.phabricator-community.org/t/phabricatorrepositoryidentity-attacheffectiveuser-must-be-an-instance-of-phabricatoruser-null-given/1820/3.

It's possible for an Idenitity to be bound to user X, then for that user to be deleted, e.g. with bin/remove destroy X. In this case, we'll fail to load/attach the user to the identity.

Currently, we don't actually use this anywhere, so just stop loading it. Once we start using it (if we ever do), we could figure out what an appropriate policy is in this case.

Test Plan: Browsed around Diffusion, grepped for affected "effective user" methods and found no callsites.

Reviewers: amckinley

Reviewed By: amckinley

Differential Revision: https://secure.phabricator.com/D20224

Details

Provenance
epriestleyAuthored on Feb 28 2019, 4:25 PM
epriestleyPushed on Mar 5 2019, 7:35 PM
Reviewer
amckinley
Differential Revision
D20224: Remove "Effective User" attachment from Repository Identities
Parents
rPcc8dda629905: Recognize the official "Go" magic regexp for generated code as generated
Branches
Unknown
Tags
Unknown
Build Status
Buildable 22185
Build 30324: Run Core Tests