HomePhabricator
Diffusion Comm 82b8d0bfc247

[native] Add DMOperation operations to the C++ layer

Description

[native] Add DMOperation operations to the C++ layer

Summary:
Handle the DB operations on the C++ layer.

https://linear.app/comm/issue/ENG-10330/create-db-operations

Depends on D14447

Test Plan:
Tested the whole stack on both native and web:

  1. Run the app on Redux version 86 with a modification to processDMOperation making all the INBOUND messages unsupported
  2. On one platform created a thread and sent a text message. These were visible on the sender, and invisible on the recipient
  3. Closed the recipient and added a migration that unshimms the thread creation operations, e.g.
unshimDMOperations(
  state,
  dmOperationTypes.CREATE_THREAD,
  handleReduxMigrationFailure,
): MigrationFunction<WebNavInfo, AppState>),
  1. Run the recipient and noticed the thread appearing
  2. Added another migration, this time unshimming text messages
  3. Run the recipient and noticed messages appearing

Reviewers: kamil, bartek

Reviewed By: kamil

Subscribers: ashoat

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

Details

Provenance
tomekAuthored on Tue, Mar 11, 6:00 AM
Reviewer
kamil
Differential Revision
D14448: [native] Add DMOperation operations to the C++ layer
Parents
rCOMM1ec1670833cf: [native] Create table and queries for DMOperations
Branches
Loading...
Tags
Loading...