This implements native code to get all integrity store thread hashes.
Depends on D11306
Paths
| Differential D11307 Authored by will on Mar 11 2024, 2:02 PM.
Tags None Referenced Files
Details Summary This implements native code to get all integrity store thread hashes. Depends on D11306 Test Plan Ran the following code on native and received correct console log result: async function run_test() { console.log('running run_test()'); await commCoreModule.processIntegrityStoreOperations([ { type: 'remove_all_integrity_thread_hashes', }, ]); let data = await commCoreModule.getClientDBStore(); console.log(data.integrityThreadHashes); const TEST_THREAD_HASHES_1: $ReadOnlyArray<ClientDBIntegrityThreadHash> = [ { id: '256|2202182', threadHash: 2304934 }, ]; const TEST_THREAD_HASHES_2: $ReadOnlyArray<ClientDBIntegrityThreadHash> = [ { id: '256|2204191', threadHash: 1029853 }, { id: '256|2205980', threadHash: 3119392 }, { id: '256|2208693', threadHash: 4157082 }, { id: '256|2210486', threadHash: 3425604 }, { id: '256|2212631', threadHash: 8951764 }, ]; await commCoreModule.processIntegrityStoreOperations([ { type: 'replace_integrity_thread_hashes', payload: { threadHashes: TEST_THREAD_HASHES_1, }, }, { type: 'remove_all_integrity_thread_hashes', }, { type: 'replace_integrity_thread_hashes', payload: { threadHashes: TEST_THREAD_HASHES_2, }, }, { type: 'remove_integrity_thread_hashes', payload: { ids: ['256|2205980', '256|2212631'], }, }, ]); data = await commCoreModule.getClientDBStore(); console.log(data.integrityThreadHashes); }
Diff Detail
Event TimelineHerald added subscribers: tomek, ashoat. · View Herald TranscriptMar 11 2024, 2:02 PM2024-03-11 14:02:18 (UTC-7) will edited the summary of this revision. (Show Details)Mar 11 2024, 2:03 PM2024-03-11 14:03:19 (UTC-7) will edited the test plan for this revision. (Show Details)Mar 11 2024, 2:06 PM2024-03-11 14:06:49 (UTC-7) Harbormaster returned this revision to the author for changes because remote builds failed.Mar 11 2024, 2:45 PM2024-03-11 14:45:32 (UTC-7) Harbormaster failed remote builds in B27460: Diff 38009!Mar 11 2024, 10:38 PM2024-03-11 22:38:28 (UTC-7) This revision is now accepted and ready to land.Mar 12 2024, 10:19 AM2024-03-12 10:19:25 (UTC-7) Harbormaster completed remote builds in B27574: Diff 38154.Mar 18 2024, 9:48 PM2024-03-18 21:48:24 (UTC-7) Closed by commit rCOMMbbf8d5c0c50c: [sqlite] Implement C++ code to get integrity store thread hashes (authored by will). · Explain WhyMar 25 2024, 2:11 PM2024-03-25 14:11:12 (UTC-7) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 38154 lib/types/store-ops-types.js
native/cpp/CommonCpp/NativeModules/CommCoreModule.cpp
native/cpp/CommonCpp/NativeModules/PersistentStorageUtilities/DataStores/IntegrityStore.cpp
web/shared-worker/worker/process-operations.js
|