This implements C++ code to allow native to get sqlite thread activity entries
Depends on D11584
Paths
| Differential D11614 Authored by will on Apr 9 2024, 10:53 PM.
Details Summary This implements C++ code to allow native to get sqlite thread activity entries Depends on D11584 Test Plan Ran the following code and console logged the thread activity store successfully: let data = await commCoreModule.getClientDBStore(); console.log(data.threadActivityEntries); await commCoreModule.processThreadActivityStoreOperations([ { type: 'replace_thread_activity_entry', payload: { id: 'test_A_id', threadActivityStoreEntry: JSON.stringify({ lastNavigatedTo: 1, lastPruned: 2, }), }, }, { type: 'remove_all_thread_activity_entries', }, { type: 'replace_thread_activity_entry', payload: { id: 'test_B_id', threadActivityStoreEntry: JSON.stringify({ lastNavigatedTo: 3, lastPruned: 4, }), }, }, { type: 'replace_thread_activity_entry', payload: { id: 'test_C_id', threadActivityStoreEntry: JSON.stringify({ lastNavigatedTo: 5, lastPruned: 6, }), }, }, { type: 'remove_thread_activity_entries', payload: { ids: ['test_B_id'], }, }, ]); data = await commCoreModule.getClientDBStore(); console.log(data.threadActivityEntries);
Diff Detail
Event TimelineHerald added subscribers: tomek, ashoat. · View Herald TranscriptApr 9 2024, 10:53 PM2024-04-09 22:53:52 (UTC-7) will edited the test plan for this revision. (Show Details)Apr 9 2024, 10:54 PM2024-04-09 22:54:38 (UTC-7) will added a parent revision: D11584: [sqlite/native] Make C++ thread activity sqlite ops available to native. Harbormaster completed remote builds in B28117: Diff 38973.Apr 9 2024, 11:10 PM2024-04-09 23:10:11 (UTC-7) This revision is now accepted and ready to land.Apr 10 2024, 5:40 AM2024-04-10 05:40:51 (UTC-7) Harbormaster completed remote builds in B28255: Diff 39166.Apr 16 2024, 9:14 PM2024-04-16 21:14:35 (UTC-7) Closed by commit rCOMM9567929ea151: [sqlite] Implement C++ code for native to get sqlite thread activity entries (authored by will). · Explain WhyApr 19 2024, 1:08 PM2024-04-19 13:08:53 (UTC-7) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 39320 lib/types/store-ops-types.js
native/cpp/CommonCpp/NativeModules/CommCoreModule.cpp
native/cpp/CommonCpp/NativeModules/PersistentStorageUtilities/DataStores/ThreadActivityStore.cpp
web/shared-worker/worker/process-operations.js
|