Commit graph

2 commits

Author SHA1 Message Date
daniel
fed7f0b179 Remove $actor field from UsererIdentityValue
Code that needs to store an actor ID in the database to
represent a UserIdentity, or needs to construct a UserIdentity based on
an actor ID loaded from the database, should use the ActorNormalization
service.

Note: The getActorId() method is removed from the UserIdentity interface,
but all concrete classes continue to support it for now.
UsererIdentityValue::getActorId() is hard deprecated and should
be removed in 1.37. It always returns 0.
User::getActorId() is not deprecated at this point.

Bug: T274179
Depends-On: Id2b3ddf6a2a7cdf90f8936a69148d2cce6fde237
Change-Id: I9925906d11e47efaec3c1f48d5cb3f9896a982c1
2021-04-13 18:18:06 +00:00
Gergő Tisza
680fb71b68 Add StaticUserOptionsLookup
Add a simple array-based implementation of UserOptionsLookup.
Useful for testing, and intricate enough that that each test should
not have to reimplement it individually.

Change-Id: Ibd23a7748509e1de199d19ac573741e0c2b51d2c
2020-08-03 10:30:16 +00:00