Page MenuHomePhabricator

[lib] implement hook to send composable DMOperation
ClosedPublic

Authored by kamil on Fri, Sep 13, 4:00 AM.
Tags
None
Referenced Files
F2757090: D13327.id44140.diff
Thu, Sep 19, 2:18 AM
F2753890: D13327.diff
Wed, Sep 18, 6:18 PM
Unknown Object (File)
Wed, Sep 18, 12:42 AM
Unknown Object (File)
Mon, Sep 16, 4:29 PM
Unknown Object (File)
Fri, Sep 13, 9:51 PM
Unknown Object (File)
Fri, Sep 13, 8:51 PM
Unknown Object (File)
Fri, Sep 13, 12:48 PM
Unknown Object (File)
Fri, Sep 13, 8:44 AM
Subscribers

Details

Summary

ENG-8424.

Improve documenting code and addresses https://phab.comm.dev/D13290#inline-76570, we have a separate and clear hook for composable messages. This will replace some of the code, which is removed later in the stack.

Depends on D13326

Test Plan

Tested later in the stack (both content and notifs)

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, Sep 13, 4:38 AM
kamil edited the test plan for this revision. (Show Details)
kamil added inline comments.
lib/shared/dm-ops/process-dm-ops.js
387–393 ↗(On Diff #44140)

this is duplicated, can be moved to a separate hook but not sure if worth

tomek added inline comments.
lib/shared/dm-ops/process-dm-ops.js
387–393 ↗(On Diff #44140)

I guess we can create useSendDMOperationUtils hook.

399–429 ↗(On Diff #44140)

We're relying on the started actions to do all the work so that we don't need to process the operations here. However, one missing part is updating the reply count for thick sidebars. For thin threads, the keyserver is responsible for updating it and we probably need to introduce this logic to our reducers.

This revision is now accepted and ready to land.Fri, Sep 13, 6:39 AM
  • rebase
  • create a hook
lib/shared/dm-ops/process-dm-ops.js
399–429 ↗(On Diff #44140)

Tracked in ENG-9273.