HomePhabricator
Diffusion Comm 8237d225adce

[lib] Add a function to DM operations spec checking if an operation can be…

Description

[lib] Add a function to DM operations spec checking if an operation can be applied

Summary:
If this function returns false, we will queue the operation for later. Some logic in the processing code can be simplified as the result of this change.

https://linear.app/comm/issue/ENG-8909/modify-operations-specs-so-that-they-can-report-that-an-operation-cant

Depends on D12936

Test Plan: Tested this for one case - creating change_thread_settings update for a thread that isn't present in the store. Also tested that if the thread is in the store, the ops are being processed.

Reviewers: kamil, inka, ashoat

Reviewed By: inka, ashoat

Subscribers: ashoat

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

Details

Provenance
tomekAuthored on Jul 30 2024, 9:14 AM
Reviewer
inka
Differential Revision
D12948: [lib] Add a function to DM operations spec checking if an operation can be applied
Parents
rCOMMeaa112928365: [lib] Create a new redux field to store the operations
Branches
Unknown
Tags
Unknown