Page MenuHomePhabricator

[native] Remove `setThreadStoreLoaded(true)` early return in SQLiteContextProvider
ClosedPublic

Authored by atul on May 31 2022, 6:03 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jun 30, 10:12 PM
Unknown Object (File)
Thu, Jun 27, 10:20 AM
Unknown Object (File)
Thu, Jun 27, 10:20 AM
Unknown Object (File)
Thu, Jun 27, 10:20 AM
Unknown Object (File)
Thu, Jun 27, 10:20 AM
Unknown Object (File)
Thu, Jun 27, 10:13 AM
Unknown Object (File)
Sun, Jun 16, 4:35 PM
Unknown Object (File)
Sat, Jun 15, 10:28 PM

Details

Summary

This early return was needed before persistConfig.version was bumped to 30 so the migration could be tested in DEV without breaking things for any general releases made before this work was complete.

Since the persistConfig.version has been bumped, there's no possibility that a new client would have a persistConfig.version < 30, so this branch will never be hit.

Test Plan

NA, not sure how to test

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul requested review of this revision.May 31 2022, 6:11 AM
tomek added inline comments.
native/data/sqlite-context-provider.js
35 ↗(On Diff #13230)

Just to make sure: this is a static, hardcoded value, right? (not something that we read from persisted data)

This revision is now accepted and ready to land.Jun 1 2022, 7:24 AM
atul marked an inline comment as done.Jun 1 2022, 9:07 AM
atul added inline comments.
native/data/sqlite-context-provider.js
35 ↗(On Diff #13230)

Yup, we're importing persistConfig from ../redux/persist.

persistConfig looks like the following:

Screen Shot 2022-06-01 at 12.06.43 PM.png (754×1 px, 133 KB)

of which the version property is a static value

atul marked an inline comment as done.

rebase after cherrypick and before landing