HomePhabricator
Diffusion Comm ab92c212fd9a

[web] Persist userStore in db

Description

[web] Persist userStore in db

Summary:
ENG-7069 : Start performing user store ops on worker
Part of ENG-3490 : Migrate stores to SQLite on web

Start persting userStore on web, inside of sqlite db.

Depends on D11537

Test Plan:

  • Open web app, check that the "migration" runs and:
    • Ops with userStore from keyserver are dispatched to the db
    • Redux contains the data
  • Reload the web app and check that:
    • Keyserver doesn't send the user info
    • User info is loaded from db and dispatched in setInitialReduxState action
  • Play around with the app check if there are any errors
    • Add an unknown user to the friend list
    • Block user
    • Using two clients change the avatar on one and check if it gets synced on the other

Reviewers: kamil, marcin

Reviewed By: kamil

Subscribers: ashoat, tomek

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

Details

Provenance
Michal Gniadek <michal.gniadek@swmansion.com>Authored on Apr 2 2024, 7:03 AM
Reviewer
kamil
Differential Revision
D11538: [web] Persist userStore in db
Parents
rCOMMb157ca35b0f0: [native] Move MessageStoreTransform to lib
Branches
Unknown
Tags
Unknown

Event Timeline

Michal Gniadek <michal.gniadek@swmansion.com> committed rCOMMab92c212fd9a: [web] Persist userStore in db (authored by Michal Gniadek <michal.gniadek@swmansion.com>).Apr 5 2024, 9:44 AM