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)
Sun, May 19, 10:36 PM
Unknown Object (File)
Sun, May 19, 10:36 PM
Unknown Object (File)
Sun, May 19, 10:36 PM
Unknown Object (File)
Apr 11 2024, 7:45 AM
Unknown Object (File)
Apr 11 2024, 3:25 AM
Unknown Object (File)
Apr 10 2024, 4:28 PM
Unknown Object (File)
Apr 10 2024, 3:57 PM
Unknown Object (File)
Apr 10 2024, 10:41 AM
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
Lint Not Applicable
Unit
Tests Not Applicable

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.