Page MenuHomePhabricator

[sqlite] Implement processing thread activity on web worker
ClosedPublic

Authored by will on Apr 9 2024, 10:58 PM.
Tags
None
Referenced Files
F3374681: D11615.id39321.diff
Tue, Nov 26, 4:45 PM
Unknown Object (File)
Mon, Oct 28, 6:48 PM
Unknown Object (File)
Oct 25 2024, 1:18 AM
Unknown Object (File)
Oct 18 2024, 9:44 PM
Unknown Object (File)
Oct 18 2024, 9:44 PM
Unknown Object (File)
Oct 2 2024, 12:19 PM
Unknown Object (File)
Sep 28 2024, 9:55 AM
Unknown Object (File)
Sep 27 2024, 3:15 PM
Subscribers

Details

Summary

This code introduces the thread activity store sqlite ops to web worker

Depends on D11614

Test Plan

Ran the following code on web and confirmed the results:

await sharedWorker.schedule({
  type: workerRequestMessageTypes.PROCESS_STORE_OPERATIONS,
  storeOperations: {
    threadActivityStoreOperations: [
      {
        type: 'replace_thread_activity_entry',
        payload: {
          id: 'worker_test_A_id',
          threadActivityStoreEntry: JSON.stringify({
            lastNavigatedTo: 1,
            lastPruned: 2,
          }),
        },
      },
      {
        type: 'replace_thread_activity_entry',
        payload: {
          id: 'worker_test_B_id',
          threadActivityStoreEntry: JSON.stringify({
            lastNavigatedTo: 3,
            lastPruned: 4,
          }),
        },
      },
      {
        type: 'remove_thread_activity_entries',
        payload: {
          ids: ['worker_test_B_id'],
        },
      },
    ],
  },
});

Screenshot 2024-04-09 at 4.09.11 PM.png (1×1 px, 263 KB)

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage