Don't use AccountAccess directly
Accounts are migrated to NoteDb and then ReviewDb#accounts() will be
removed. The new way to read accounts is by using the Accounts class
which makes it transparent for the caller whether accounts are read from
ReviewDb or NoteDb.
FindOwnerIT is adapted to use Accounts to load accounts for
Since change I363a8ee040 in Gerrit core the account cache is available
to Prolog predicates. Checker is now using the account cache to lookup
accounts. This should also result in better performance than loading the
accounts from the database each time Prolog rules are evaluated.
Signed-off-by: Edwin Kempin <firstname.lastname@example.org>
2 files changed