Page MenuHomePhabricator

[web] Migrate crypto store to shared worker
ClosedPublic

Authored by michal on Mar 19 2024, 5:56 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 25, 4:51 AM
Unknown Object (File)
Mon, Nov 25, 4:41 AM
Unknown Object (File)
Mon, Nov 25, 2:30 AM
Unknown Object (File)
Sat, Nov 9, 12:59 AM
Unknown Object (File)
Thu, Nov 7, 7:33 AM
Unknown Object (File)
Wed, Nov 6, 3:05 PM
Unknown Object (File)
Wed, Nov 6, 6:57 AM
Unknown Object (File)
Oct 15 2024, 1:49 PM
Subscribers

Details

Summary

ENG-6655 : Migrate cryptoStore from redux

Previous diffs modified the code so that they use crypto data in shared worker instead of the data in redux. Now we can migrate the crypto accounts from redux to the shared worker.

Depends on D11348

Test Plan

Run migration, make sure that the the data that was in redux matches the data in shared worker. Flow.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

web/redux/crypto-store-reducer.js
16–19 ↗(On Diff #38169)

In these cases the user should get logged out and the database cleanup will be triggered which will clear the crypto store (both the persisted data in db and the in-memory data).

kamil added inline comments.
web/redux/persist.js
265 ↗(On Diff #38169)

this is because of the fact that at this time cryptoStore is not in AppState anymore, is that correct?

web/types/worker-types.js
121 ↗(On Diff #38169)

Would be nice if could add some comment explaining this

This revision is now accepted and ready to land.Mar 19 2024, 8:55 AM

Added a comment

web/redux/persist.js
265 ↗(On Diff #38169)

Yep