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
F3193602: D13151.id43634.diff
Fri, Nov 8, 11:06 PM
Unknown Object (File)
Fri, Nov 8, 2:29 AM
Unknown Object (File)
Fri, Oct 25, 2:37 AM
Unknown Object (File)
Sat, Oct 19, 2:33 PM
Unknown Object (File)
Sat, Oct 19, 2:33 PM
Unknown Object (File)
Sat, Oct 19, 2:32 PM
Unknown Object (File)
Oct 2 2024, 2:55 AM
Unknown Object (File)
Sep 25 2024, 3:09 PM
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.Aug 23 2024, 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.Aug 26 2024, 3:30 AM