HomePhabricator
Diffusion Comm 7a942df97394

[web] start persisting `updatesCurrentAsOf`

Description

[web] start persisting updatesCurrentAsOf

Summary:
Some context is here: ENG-5316.

We want to use the proper timestamp to allow the app to receive updates for data that will be stored in SQLite and longer received on initial load using getInitialReduxStateResponder.

This is a breaking change that could cause some issues, so launching this only for staff for now, putting this function in lib because later in the stack it is used also on a keyserver.

Test Plan:

  1. For non-staff users make sure updatesCurrentAsOf is updated on each reload
  2. For staff users, make sure it's persisted and updated after receiving an update
  3. Check if the policies mechanism still works (it was connected, we used this to fetch all data after acknowledgment).

Reviewers: tomek, michal, inka

Reviewed By: tomek

Subscribers: ashoat

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

Details

Provenance
kamilAuthored on Nov 22 2023, 4:21 AM
Reviewer
tomek
Differential Revision
D9948: [web] start persisting `updatesCurrentAsOf`
Parents
rCOMM2997dfb0474f: [SQLite] introduce Nullable entity
Branches
Unknown
Tags
Unknown