Commit graph

3 commits

Author SHA1 Message Date
Umherirrender
3e61f79fda ActorStore: Document wikiId as string|false
Found by phan strict checks

Change-Id: Id2c1836a8654c2403bc6005f4ab9789fc91b1e65
2022-03-05 22:38:47 +01:00
Petr Pchelko
68f7a66c22 ActorStoreFactory: fetch local domain from LBFactory
WikiMap::getCurrentWikiDbDomain is based on globals
which might not yet be correct during installation.

Bug: T286045
Change-Id: I7c1b01884db77ca83dd01cc7baf164be6e6b7a35
2021-07-13 09:28:36 -07:00
Petr Pchelko
8d2c674ab0 Introduce ActorStore, ActorLookup and ActorFactory.
The ActorNormalization factory methods create
UserIdentityValue from the database rows, either via
fields of a joined table, or via a row from actor table.
They assume that the actor_id exist and throw othervise.

ActorNormalization is a storage-layer service providing
access to finding and acquiring actor_id.

The UserIdentityLookup methods do not instantiate new actor
on demand, they just find an appropriate row in the actor
table and return the result.

Bug: T272689
Depends-On: I74d81f3f0233efb17fc8df5178e4c477cc669c6f
Change-Id: Icfa1daca960c696a8cef8adab5eab53985802858
2021-02-08 10:06:46 -06:00