Page MenuHomePhabricator

[sqlite] implement C++ aux user store ops
ClosedPublic

Authored by will on Mar 31 2024, 10:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 28, 1:49 AM
Unknown Object (File)
Thu, Nov 28, 12:49 AM
Unknown Object (File)
Wed, Nov 27, 11:41 PM
Unknown Object (File)
Wed, Nov 27, 9:46 PM
Unknown Object (File)
Tue, Nov 19, 9:04 PM
Unknown Object (File)
Tue, Nov 19, 7:35 AM
Unknown Object (File)
Sun, Nov 3, 1:50 AM
Unknown Object (File)
Oct 26 2024, 10:36 PM
Subscribers

Details

Summary

Introduces code allowing native to use sqlite aux user store ops

Depends on D11508

Test Plan

Ran the following code and confirmed matching expected results:

await commCoreModule.processAuxUserStoreOperations([
  {
    type: 'replace_aux_user_info',
    payload: {
      id: 'test_aux_user_A',
      auxUserInfo: JSON.stringify({ fid: 'test_fid_of_user_A' }),
    },
  },
  {
    type: 'remove_all_aux_user_infos',
  },
  {
    type: 'replace_aux_user_info',
    payload: {
      id: 'test_aux_user_B',
      auxUserInfo: JSON.stringify({ fid: 'test_fid_of_user_B' }),
    },
  },
  {
    type: 'replace_aux_user_info',
    payload: {
      id: 'test_aux_user_C',
      auxUserInfo: JSON.stringify({ fid: 'test_fid_of_user_C' }),
    },
  },
  {
    type: 'remove_aux_user_infos',
    payload: {
      ids: ['test_aux_user_C'],
    },
  },
]);

Screenshot 2024-04-01 at 1.39.53 AM.png (768×1 px, 186 KB)

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

will edited the test plan for this revision. (Show Details)
will edited the test plan for this revision. (Show Details)
will requested review of this revision.Mar 31 2024, 10:54 PM

Did not read through createOperations super carefully, so please double check that everything seems correct there.

This revision is now accepted and ready to land.Apr 1 2024, 1:53 PM
This revision was automatically updated to reflect the committed changes.