HomePhabricator
Diffusion Comm 5a0daf51e0c7

[sqlite] implement C++ aux user store ops

Description

[sqlite] implement C++ aux user store ops

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)

Reviewers: ginsu, kamil, atul

Reviewed By: atul

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D11509

Details

Provenance
willAuthored on Mar 29 2024, 11:46 AM
Reviewer
atul
Differential Revision
D11509: [sqlite] implement C++ aux user store ops
Parents
rCOMM3ecb8d469dc4: [sqlite] introduce aux user store C++ methods
Branches
Unknown
Tags
Unknown