Page MenuHomePhabricator

[keyserver] Simplify fetching threads
ClosedPublic

Authored by tomek on Aug 25 2023, 3:45 AM.
Tags
None
Referenced Files
F3519633: D8946.id.diff
Sun, Dec 22, 10:44 PM
Unknown Object (File)
Fri, Dec 20, 10:08 PM
Unknown Object (File)
Thu, Dec 12, 4:24 AM
Unknown Object (File)
Mon, Dec 2, 10:29 AM
Unknown Object (File)
Sun, Dec 1, 1:37 AM
Unknown Object (File)
Nov 21 2024, 12:45 AM
Unknown Object (File)
Nov 16 2024, 8:07 AM
Unknown Object (File)
Nov 10 2024, 4:00 PM
Subscribers

Details

Summary

All the other fetchers return a collection directly without intermediate object - we can do the same for threads so that the code becomes simpler and more simplifications could be made further in the stack.

https://linear.app/comm/issue/ENG-4654/unify-interfaces-in-session-utils

Depends on D8941

Test Plan

Modify threads in the keyserver db and check if the state is correctly fixed.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tomek requested review of this revision.Aug 25 2023, 4:02 AM
bartek added inline comments.
keyserver/src/shared/state-sync/threads-state-sync-spec.js
19–26 ↗(On Diff #30310)

I find it more readable

This revision is now accepted and ready to land.Aug 25 2023, 7:22 AM

Simplify thread state sync spec

keyserver/src/shared/state-sync/threads-state-sync-spec.js
19–26 ↗(On Diff #30310)

Makes sense!

This revision was automatically updated to reflect the committed changes.