Page MenuHomePhabricator

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

Authored by kamil on Fri, Aug 23, 5:19 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Sep 13, 2:54 PM
Unknown Object (File)
Wed, Sep 11, 11:09 PM
Unknown Object (File)
Wed, Sep 11, 6:43 PM
Unknown Object (File)
Mon, Sep 9, 8:03 PM
Unknown Object (File)
Sun, Sep 8, 4:16 PM
Unknown Object (File)
Fri, Sep 6, 11:30 AM
Unknown Object (File)
Fri, Sep 6, 11:07 AM
Unknown Object (File)
Thu, Sep 5, 2:51 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
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.Fri, Aug 23, 7:25 AM
tomek added inline comments.
lib/shared/dm-ops/process-dm-ops.js
187–197 ↗(On Diff #43608)

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.Mon, Aug 26, 3:30 AM