Page MenuHomePhabricator

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

Authored by will on Mar 31 2024, 10:39 PM.
Tags
None
Referenced Files
F2107550: D11509.id38622.diff
Tue, Jun 25, 10:33 AM
Unknown Object (File)
Tue, Jun 25, 2:34 AM
Unknown Object (File)
Mon, Jun 24, 4:05 PM
Unknown Object (File)
Wed, Jun 19, 3:47 AM
Unknown Object (File)
Wed, Jun 19, 3:47 AM
Unknown Object (File)
Wed, Jun 19, 3:47 AM
Unknown Object (File)
Tue, Jun 18, 12:17 AM
Unknown Object (File)
Tue, Jun 18, 12:15 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.