Page MenuHomePhabricator

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

Authored by tomek on May 22 2024, 4:34 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 10, 3:45 PM
Unknown Object (File)
Sun, Nov 10, 11:47 AM
Unknown Object (File)
Sun, Nov 10, 8:39 AM
Unknown Object (File)
Sun, Nov 10, 1:38 AM
Unknown Object (File)
Fri, Nov 8, 5:19 AM
Unknown Object (File)
Sat, Nov 2, 12:49 AM
Unknown Object (File)
Fri, Nov 1, 7:32 PM
Unknown Object (File)
Oct 17 2024, 12:36 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.May 22 2024, 4:50 AM
This revision is now accepted and ready to land.May 22 2024, 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