Page MenuHomePhabricator

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

Authored by will on Mar 31 2024, 10:39 PM.
Tags
None
Referenced Files
F3380185: D11509.diff
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
Unknown Object (File)
Oct 15 2024, 12:45 PM
Unknown Object (File)
Oct 14 2024, 3:54 PM
Unknown Object (File)
Oct 14 2024, 3:54 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
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.