This migration moves + saves any existing local message infos into sqlite
Depends on D12358
Paths
| Differential D12370 Authored by ginsu on Jun 9 2024, 11:02 PM.
Details Summary This migration moves + saves any existing local message infos into sqlite Depends on D12358 Test Plan Created some failed sent local messages, ran migrations and confirmed that the there are db rows in the local message client db for each failed message. Double checked in redux dev tools that the migrations ran successfully and additionally assertMessageStoreLocalMessageInfosAreEqual (which gets introduced in the next diff in this stack) does not throw errors whenever I open the app
Diff Detail
Event TimelineHerald added subscribers: tomek, ashoat. · View Herald TranscriptJun 9 2024, 11:03 PM2024-06-09 23:03:00 (UTC-7) ginsu retitled this revision from [native/web] introduce migration to move local message info to sqlite to DRAFT [native/web] introduce migration to move local message info to sqlite.Jun 9 2024, 11:09 PM2024-06-09 23:09:50 (UTC-7) Harbormaster completed remote builds in B29563: Diff 41150.Jun 9 2024, 11:19 PM2024-06-09 23:19:27 (UTC-7) ginsu edited the summary of this revision. (Show Details)Jun 10 2024, 11:15 PM2024-06-10 23:15:16 (UTC-7) ginsu added a parent revision: D12358: [lib] update message reducer to use ops approach for local field. Harbormaster completed remote builds in B29595: Diff 41199.Jun 10 2024, 11:25 PM2024-06-10 23:25:11 (UTC-7) ginsu retitled this revision from DRAFT [native/web] introduce migration to move local message info to sqlite to [native/web] introduce migration to move local message info to sqlite.Jun 11 2024, 10:40 PM2024-06-11 22:40:57 (UTC-7) Harbormaster completed remote builds in B29617: Diff 41229.Jun 11 2024, 10:49 PM2024-06-11 22:49:54 (UTC-7) This revision is now accepted and ready to land.Jun 12 2024, 4:11 AM2024-06-12 04:11:36 (UTC-7) Harbormaster completed remote builds in B29627: Diff 41246.Jun 12 2024, 11:46 AM2024-06-12 11:46:55 (UTC-7) Closed by commit rCOMM59f8c4f6cbd0: [native/web] introduce migration to move local message info to sqlite (authored by ginsu). · Explain WhyJun 12 2024, 11:50 AM2024-06-12 11:50:34 (UTC-7) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 41150 native/redux/persist.js
web/redux/persist-constants.js
web/redux/persist.js
|
I introduced a previous diff where setAuxUserFIDs now clears fids prior to updating with new fids from the payload. The previous functionality of setAuxUserFIDs of just adding without clearing is now a new action type addAuxUserFIDs
There are now two callbacks which are called by a single useEffect. The two callbacks are called handleFarcasterMutuals and handleUserStoreFIDs