Page MenuHomePhabricator

[sqlite] implement processing aux user store ops on worker
ClosedPublic

Authored by will on Mar 31 2024, 11:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 3, 1:29 AM
Unknown Object (File)
Oct 14 2024, 3:54 PM
Unknown Object (File)
Oct 14 2024, 3:54 PM
Unknown Object (File)
Oct 14 2024, 3:54 PM
Unknown Object (File)
Oct 14 2024, 3:54 PM
Unknown Object (File)
Sep 17 2024, 9:37 AM
Unknown Object (File)
Sep 4 2024, 1:28 AM
Unknown Object (File)
Sep 4 2024, 1:28 AM
Subscribers

Details

Summary

Implements processing of aux user store ops by shared worker

Depends on D11510

Test Plan

Ran the following code and confirmed web database had expected results:

await sharedWorker.schedule({
  type: workerRequestMessageTypes.PROCESS_STORE_OPERATIONS,
  storeOperations: {
    auxUserStoreOperations: [
      {
        type: 'replace_aux_user_info',
        payload: {
          id: 'worker_test_A_id',
          auxUserInfo: 'worker_test_A_data',
        },
      },
      {
        type: 'replace_aux_user_info',
        payload: {
          id: 'worker_test_B_id',
          auxUserInfo: 'worker_test_B_update',
        },
      },
      {
        type: 'replace_aux_user_info',
        payload: {
          id: 'worker_test_A_id',
          auxUserInfo: 'worker_test_A_update',
        },
      },
      {
        type: 'remove_aux_user_infos',
        payload: {
          ids: ['worker_test_B_id'],
        },
      },
    ],
  },
});

const response = await sharedWorker.schedule({
  type: workerRequestMessageTypes.GET_DB_FILE,
});

Screenshot 2024-04-01 at 2.32.07 AM.png (427×709 px, 89 KB)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

will edited the test plan for this revision. (Show Details)
will requested review of this revision.Mar 31 2024, 11:52 PM
This revision is now accepted and ready to land.Apr 2 2024, 1:35 AM