Page MenuHomePhabricator

[lib] deprecate `sendDMOperation` and implement method to create sending promise
ClosedPublic

Authored by kamil on Aug 23 2024, 5:19 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 29, 5:41 AM
Unknown Object (File)
Fri, Nov 29, 5:00 AM
Unknown Object (File)
Mon, Nov 25, 4:32 PM
Unknown Object (File)
Mon, Nov 25, 2:29 PM
Unknown Object (File)
Fri, Nov 22, 3:42 AM
Unknown Object (File)
Fri, Nov 8, 11:06 PM
Unknown Object (File)
Fri, Nov 8, 2:29 AM
Unknown Object (File)
Oct 25 2024, 2:37 AM
Subscribers

Details

Summary

ENG-8423.

We still need promise to be resolved after sending messages, but generating messages was moved to processDMOps.

Returning promise to later in that stack put it to dispatchActionPromise.

useProcessAndSendDMOperation looks no obsolete, but will be updated later in the stack.

Depends on D13150

Test Plan

Call getDMOpsSendingPromise and check if it works.

Note: This stack is tested end-to-end according to the process described here.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.Aug 23 2024, 7:25 AM
tomek added inline comments.
lib/shared/dm-ops/process-dm-ops.js
187–197

At this point, it is equivalent to

const useProcessAndSendDMOperation = useProcessDMOperation;

But it doesn't matter because it is updated later in the stack.

This revision is now accepted and ready to land.Aug 26 2024, 3:30 AM