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
F2113268: D12169.diff
Wed, Jun 26, 3:15 AM
Unknown Object (File)
Sat, Jun 22, 3:59 AM
Unknown Object (File)
Sat, Jun 22, 3:59 AM
Unknown Object (File)
Sat, Jun 22, 3:58 AM
Unknown Object (File)
Sat, Jun 22, 3:58 AM
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
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