Page MenuHomePhabricator

[lib] implement hook to send composable DMOperation
ClosedPublic

Authored by kamil on Sep 13 2024, 4:00 AM.
Tags
None
Referenced Files
F3519480: D13327.diff
Sun, Dec 22, 10:17 PM
Unknown Object (File)
Mon, Dec 16, 5:10 AM
Unknown Object (File)
Fri, Dec 13, 7:36 AM
Unknown Object (File)
Wed, Dec 4, 7:11 PM
Unknown Object (File)
Nov 20 2024, 11:08 AM
Unknown Object (File)
Nov 20 2024, 11:08 AM
Unknown Object (File)
Nov 14 2024, 1:01 PM
Unknown Object (File)
Nov 14 2024, 12:59 PM
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
No Lint Coverage
Unit
No Test Coverage

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.Sep 13 2024, 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.Sep 13 2024, 6:39 AM
  • rebase
  • create a hook
lib/shared/dm-ops/process-dm-ops.js
399–429 ↗(On Diff #44140)

Tracked in ENG-9273.