[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:
- To test createLocalEntryActionType: create entry and ensuring that it appears in the DB immediately and has local id.
- To test createEntryActionTypes.success: create entry and wait after it transitions from local id to id in the db.
- 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.
- 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