Page MenuHomePhabricator

[lib] Update `convertRawThreadInfoToClientDBThreadInfo` to handle `RawThreadInfo`
ClosedPublic

Authored by atul on Dec 5 2023, 12:47 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 5 2024, 3:52 PM
Unknown Object (File)
Mar 5 2024, 3:52 PM
Unknown Object (File)
Mar 5 2024, 3:52 PM
Unknown Object (File)
Mar 5 2024, 3:51 PM
Unknown Object (File)
Mar 5 2024, 3:51 PM
Unknown Object (File)
Dec 29 2023, 10:15 PM
Unknown Object (File)
Dec 27 2023, 6:44 PM
Unknown Object (File)
Dec 27 2023, 7:01 AM
Subscribers
None

Details

Summary

Basically modify function to pull out minimallyEncoded field before converting to ClientDBThreadInfo representation. This is fine because all of the columns in the SQLite database are compatible with the new "shape" of the data here.

Unfortunately, we can't do this as easily with convertClientDBThreadInfoToRawThreadInfo because it's used as part of migrations so we don't want to change the behavior of those migrations for users upgrading from an older version. Will have to create a "legacy" version of that function so migration functionality is retained.


Depends on D10197

Test Plan

CI/flow/etc

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul published this revision for review.Dec 5 2023, 12:55 PM

Yeah, we'll need to think through migrations carefully. We'll also need to migrate all of the data in SQLite from the old format to the new, right?

This revision is now accepted and ready to land.Dec 5 2023, 7:35 PM

rebase and land noop refactors

Yeah, we'll need to think through migrations carefully. We'll also need to migrate all of the data in SQLite from the old format to the new, right?

Yeah there's a Redux migration later in the stack that handles this