Page MenuHomePhabricator

[web][keyserver] Use entries from the initial state only if they are missing from the store
AcceptedPublic

Authored by tomek on Wed, May 22, 4:41 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jun 12, 5:49 AM
Unknown Object (File)
Fri, Jun 7, 5:23 AM
Unknown Object (File)
Fri, Jun 7, 5:23 AM
Unknown Object (File)
Thu, Jun 6, 5:57 PM
Unknown Object (File)
Thu, Jun 6, 2:13 PM
Unknown Object (File)
Thu, Jun 6, 2:02 PM
Unknown Object (File)
Wed, Jun 5, 12:31 AM
Unknown Object (File)
Tue, Jun 4, 12:02 AM
Subscribers

Details

Reviewers
kamil
marcin
Summary

This is the last step of the migration - we should no longer use the values returned from the initial Redux state.

Depends on D12153

https://linear.app/comm/issue/ENG-3486/move-entrystore-to-sqlite

Test Plan

Closed and opened the app (both native and web) - the entries aren't sent from the keyserver so doing this verified if they are correctly persisted and rehydrated.

Diff Detail

Repository
rCOMM Comm
Branch
entries
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

tomek requested review of this revision.Wed, May 22, 4:58 AM
This revision is now accepted and ready to land.Wed, May 22, 7:17 AM
keyserver/src/responders/redux-state-responders.js
223

We still should return this because we don't persist it on web

keyserver/src/responders/redux-state-responders.js
223

If it's always 0, is it something we can just insert automatically on the web side?

keyserver/src/responders/redux-state-responders.js
223

Yes, that makes sense!