Page MenuHomePhabricator

[keyserver] return threadInfo in fetchAllCommunityInfosWithNames
ClosedPublic

Authored by varun on Oct 31 2024, 10:48 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 19, 1:51 AM
Unknown Object (File)
Mon, Dec 16, 2:55 AM
Unknown Object (File)
Mon, Dec 16, 2:54 AM
Unknown Object (File)
Mon, Dec 16, 2:54 AM
Unknown Object (File)
Sun, Dec 15, 5:37 PM
Unknown Object (File)
Mon, Dec 9, 1:15 PM
Unknown Object (File)
Sat, Dec 7, 1:16 PM
Unknown Object (File)
Wed, Dec 4, 4:48 AM
Subscribers

Details

Summary

Depends on D13853

we return threadInfos here so that we can populate the community directory on clients using the ThreadList component

Test Plan

tested in next diff by calling fetchAllCommunityInfosWithNames and getting a working modal with the ThreadList correctly populated

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

varun published this revision for review.Oct 31 2024, 11:11 PM
varun planned changes to this revision.
ashoat requested changes to this revision.Nov 1 2024, 8:37 AM
ashoat added inline comments.
lib/types/community-types.js
50 ↗(On Diff #45570)

Should this be narrowed? It doesn't appear possible for the server to return undefined

58 ↗(On Diff #45570)

I might be missing something, but this validator appears to only be used on the client. Why are you using mixedRawThreadInfoValidator?

keyserver/src/fetchers/community-fetchers.js
103 ↗(On Diff #45892)

I had to add an explicit type here because flow was confused by result being any-typed

This revision is now accepted and ready to land.Nov 20 2024, 4:15 AM