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)
Sat, Dec 14, 1:30 PM
Unknown Object (File)
Sat, Dec 14, 5:42 AM
Unknown Object (File)
Sat, Dec 7, 10:16 PM
Unknown Object (File)
Sat, Dec 7, 10:12 PM
Unknown Object (File)
Thu, Dec 5, 5:02 PM
Unknown Object (File)
Fri, Nov 29, 11:00 PM
Unknown Object (File)
Nov 26 2024, 3:44 PM
Unknown Object (File)
Nov 22 2024, 11:32 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
No Lint Coverage
Unit
No Test Coverage

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