Page MenuHomePhabricator

[lib] remove integrity store assertion and use sqlite
ClosedPublic

Authored by will on Jul 8 2024, 5:14 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Sep 3, 10:48 PM
Unknown Object (File)
Mon, Sep 2, 1:17 PM
Unknown Object (File)
Sun, Sep 1, 3:39 AM
Unknown Object (File)
Sat, Aug 31, 3:22 PM
Unknown Object (File)
Sat, Aug 31, 1:30 PM
Unknown Object (File)
Sat, Aug 31, 1:10 AM
Unknown Object (File)
Fri, Aug 30, 9:37 PM
Unknown Object (File)
Fri, Aug 30, 10:35 AM
Subscribers

Details

Summary

This removes integrity store from redux persist and instead utilizes sqlite to populate redux state

Test Plan

Tested on debug native and web

Web redux tools correctly shows populated redux state with thread hashes

Native iOS simulator does not result in any errors

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

@kamil does anything need to be done to remove redux persist integrityStore data besides adding to the persistBlacklist? On initial startup, I get a hydrated keys not expected integrityStore which doesn't appear on subsequent app opens in debug iOS Simulator

will requested review of this revision.Jul 8 2024, 5:30 AM
In D12686#359268, @will wrote:

@kamil does anything need to be done to remove redux persist integrityStore data besides adding to the persistBlacklist? On initial startup, I get a hydrated keys not expected integrityStore which doesn't appear on subsequent app opens in debug iOS Simulator

I think this is fine, this is just a log and each one should see it only once - Alternatively, we can add a migration to explicitly remove integrityStore but I don't think it is worth it.

lib/reducers/integrity-reducer.js
32 ↗(On Diff #42102)

this can be removed now

This revision is now accepted and ready to land.Jul 12 2024, 2:17 AM

review feedback and rebase