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)
Thu, Apr 25, 9:51 AM
Unknown Object (File)
Sat, Apr 6, 7:43 PM
Unknown Object (File)
Sun, Mar 31, 3:03 PM
Unknown Object (File)
Mar 27 2024, 4:21 AM
Unknown Object (File)
Mar 27 2024, 12:25 AM
Unknown Object (File)
Mar 26 2024, 10:36 AM
Unknown Object (File)
Mar 23 2024, 9:16 PM
Unknown Object (File)
Mar 23 2024, 5:16 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
Lint Not Applicable
Unit
Tests Not Applicable

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