HomePhabricator
Diffusion Comm 4bbb20efc75a

Implement fetcher and updater for olm accounts on the keyserver

Description

Implement fetcher and updater for olm accounts on the keyserver

Summary:
This differential implements a fetcher and an updater for olm accounts on the keyserver. All changes to olm account are done in-memory on olm.Account instance. Therefore the updater takes just olm.Account instance since all updates are already in this object and it just need to be
serialized and stored in database.

Test Plan:
Find a place in the keyserver codebase to execute the following sequence:

  1. Use fetcher to get olm account.
  2. Change its structure by calling for example generate_prekey()
  3. Store it back by calling updater.

In each step use database inspection tool of choice, to examine that pickled account string in the database has changed.

Reviewers: tomek, ashoat

Reviewed By: tomek, ashoat

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D7568

Details

Provenance
marcinAuthored on Apr 21 2023, 8:04 AM
Reviewer
tomek
Differential Revision
D7568: Implement fetcher and updater for olm accounts on the keyserver
Parents
rCOMM0b462245d313: Populate keyserver_olm_accounts table
Branches
Unknown
Tags
Unknown