HomePhabricator
Diffusion Comm f2f89a5bf164

[sqlite/native] Make C++ thread activity sqlite ops available to native

Description

[sqlite/native] Make C++ thread activity sqlite ops available to native

Summary: This makes the thread activity sqlite operations available on native

Test Plan:
Ran the following code:

  await commCoreModule.processThreadActivityStoreOperations([
    {
      type: 'replace_thread_activity_entry',
      payload: {
        id: 'test_A_id',
        threadActivityStoreEntry: JSON.stringify({
          lastNavigatedTo: 1,
          lastPruned: 2,
        }),
      },
    },
    {
      type: 'remove_all_thread_activity_entries',
    },
    {
      type: 'replace_thread_activity_entry',
      payload: {
        id: 'test_B_id',
        threadActivityStoreEntry: JSON.stringify({
          lastNavigatedTo: 3,
          lastPruned: 4,
        }),
      },
    },
    {
      type: 'replace_thread_activity_entry',
      payload: {
        id: 'test_C_id',
        threadActivityStoreEntry: JSON.stringify({
          lastNavigatedTo: 5,
          lastPruned: 6,
        }),
      },
    },
    {
      type: 'remove_thread_activity_entries',
      payload: {
        ids: ['test_B_id'],
      },
    },
  ]);
}

And received the correct data in the native sqlite table

Screenshot 2024-04-08 at 9.58.40 AM.png (491×622 px, 103 KB)

Depends on D11581

Reviewers: kamil, atul, ginsu

Reviewed By: kamil

Subscribers: ashoat, tomek

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

Details

Provenance
willAuthored on Apr 8 2024, 5:00 AM
Reviewer
kamil
Differential Revision
D11584: [sqlite/native] Make C++ thread activity sqlite ops available to native
Parents
rCOMM7aa6f6dc604f: [sqlite] Implement C++ methods for thread activity
Branches
Unknown
Tags
Unknown