HomePhabricator
Diffusion Comm fd32277bcaaa

[lib] Migrate creating local entries, concurrent modification and delete…

Description

[lib] Migrate creating local entries, concurrent modification and delete entries actions to ops

Summary:
Migrate the actions

Depends on D12162

https://linear.app/comm/issue/ENG-3486/move-entrystore-to-sqlite

Test Plan:

  1. To test createLocalEntryActionType: create entry and ensuring that it appears in the DB immediately and has local id.
  2. To test createEntryActionTypes.success: create entry and wait after it transitions from local id to id in the db.
  3. To test concurrentModificationResetActionType: Hack. override save function of native/entry.react to dispatch this actions with hardcoded string. Ensure that no matter what you type the result after saving is always hardcoded string.
  4. To test deleteEntryActionTypes: delete entry and check in SQLite that deleted property is marked as true and entry is not visible across app restarts.

Reviewers: kamil, marcin

Reviewed By: marcin

Subscribers: ashoat

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

Details