Refactors the integrity reducer to use sqlite ops for adding new thread hashes
Depends on D11249
Differential D11287 Authored by will on Mar 11 2024, 12:40 AM.
Details Summary Refactors the integrity reducer to use sqlite ops for adding new thread hashes Depends on D11249 Test Plan flow check
Diff Detail
Event TimelineHerald added a subscriber: ashoat. · View Herald TranscriptMar 11 2024, 12:40 AM2024-03-11 00:40:45 (UTC-7) will edited the summary of this revision. (Show Details)Mar 11 2024, 12:45 AM2024-03-11 00:45:49 (UTC-7) Harbormaster returned this revision to the author for changes because remote builds failed.Mar 11 2024, 12:58 AM2024-03-11 00:58:36 (UTC-7) Harbormaster completed remote builds in B27429: Diff 37977.Mar 11 2024, 7:02 AM2024-03-11 07:02:59 (UTC-7) Comment Actions The reduceIntegrityStore function starts with: if ( action.type === logInActionTypes.success || action.type === siweAuthActionTypes.success || action.type === keyserverRegisterActionTypes.success || action.type === fullStateSyncActionType || (action.type === setClientDBStoreActionType && !!action.payload.threadStore && state.threadHashingStatus !== 'completed') ) { return { threadHashes: {}, threadHashingStatus: 'starting' }; } else if (action.type === keyserverAuthActionTypes.success) { return { ...state, threadHashingStatus: 'starting' }; } These currently just return either the current state or an empty threadHashes object. Do we have to refactor this in anyway with sqlite ops or is it fine as is? will retitled this revision from [sqlite] [lib] refactor integrity reducer add new thread hashes to use sqlite ops to [lib] refactor integrity reducer add new thread hashes to use sqlite ops.Mar 11 2024, 3:11 PM2024-03-11 15:11:26 (UTC-7) Comment Actions
If it returns empty object we should generate remove_all_integrity_thread_hashes operation - you could do it in a separate diff Comment Actions
Agree. This revision is now accepted and ready to land.Mar 13 2024, 4:20 AM2024-03-13 04:20:00 (UTC-7) Closed by commit rCOMM7f4bc14754de: [lib] refactor integrity reducer add new thread hashes to use sqlite ops (authored by will). · Explain WhyMar 25 2024, 2:10 PM2024-03-25 14:10:56 (UTC-7) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 37977 lib/reducers/integrity-reducer.js
|