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)
Wed, Dec 11, 3:24 PM
Unknown Object (File)
Fri, Nov 22, 3:28 AM
Unknown Object (File)
Nov 18 2024, 11:58 PM
Unknown Object (File)
Nov 17 2024, 6:58 PM
Unknown Object (File)
Nov 16 2024, 11:15 AM
Unknown Object (File)
Nov 14 2024, 4:40 PM
Unknown Object (File)
Nov 14 2024, 4:40 PM
Unknown Object (File)
Nov 14 2024, 4:40 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