Page MenuHomePhabricator

[keyserver] update fetchCommunityInfos to query by community ids
ClosedPublic

Authored by ginsu on Jun 12 2024, 11:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 15, 2:59 PM
Unknown Object (File)
Sun, Dec 15, 10:22 AM
Unknown Object (File)
Sat, Dec 14, 10:58 PM
Unknown Object (File)
Sat, Dec 14, 9:14 PM
Unknown Object (File)
Sat, Dec 14, 3:07 PM
Unknown Object (File)
Mon, Dec 9, 4:56 PM
Unknown Object (File)
Wed, Nov 27, 7:51 AM
Unknown Object (File)
Wed, Nov 20, 8:21 PM
Subscribers

Details

Summary

In D11975, there was some feedback to have createOrUpdateFarcasterChannelTag query by a specific community to improve performance. This diff addresses that

Linear task: https://linear.app/comm/issue/ENG-8374/update-createorupdatefarcasterchanneltag-to-query-by-a-specific

Depends on D12062

Test Plan

Logged out return value of fetchCommunityInfos and confirmed that only one community was being returned

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tomek added inline comments.
keyserver/src/creators/farcaster-channel-tag-creator.js
39–44 ↗(On Diff #41260)

fetchCommunityInfos returns an array so maybe keep communityInfos as a name?

keyserver/src/fetchers/community-fetchers.js
30–34 ↗(On Diff #41260)

We should check if this array isn't empty to avoid SQL parse error

This revision is now accepted and ready to land.Jun 13 2024, 3:59 AM