Page MenuHomePhabricator

[web] Replace persisted entries with the ones from initial redux state
ClosedPublic

Authored by tomek on Wed, May 22, 4:34 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jun 14, 11:19 PM
Unknown Object (File)
Thu, Jun 13, 11:18 PM
Unknown Object (File)
Thu, Jun 13, 6:46 PM
Unknown Object (File)
Tue, Jun 11, 8:58 PM
Unknown Object (File)
Mon, Jun 10, 7:14 AM
Unknown Object (File)
Sun, Jun 9, 10:45 PM
Unknown Object (File)
Thu, Jun 6, 2:03 PM
Unknown Object (File)
Thu, Jun 6, 12:49 PM
Subscribers

Details

Summary

After we conclude that the migration was successful, we will replace this code with the one that replaces the entries only when they are missing from the store.

Depends on D12164

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

Test Plan

Run console.log(entryStoreOperations) from tis code.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tomek requested review of this revision.Wed, May 22, 4:50 AM
This revision is now accepted and ready to land.Wed, May 22, 7:14 AM
inka added inline comments.
web/redux/initial-state-gate.js
160–162 ↗(On Diff #40525)

We should probably also check if entryStoreOperations.length > 0

web/redux/initial-state-gate.js
160–162 ↗(On Diff #40525)

Good catch – we definitely need to check that here

tomek marked 2 inline comments as done.

Check if there are some entry store ops