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)
Wed, Dec 18, 2:12 PM
Unknown Object (File)
Wed, Dec 18, 2:12 PM
Unknown Object (File)
Wed, Dec 18, 2:12 PM
Unknown Object (File)
Wed, Dec 18, 2:11 PM
Unknown Object (File)
Wed, Dec 18, 2:11 PM
Unknown Object (File)
Fri, Nov 29, 5:41 AM
Unknown Object (File)
Fri, Nov 29, 5:00 AM
Unknown Object (File)
Nov 25 2024, 4:32 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