Page MenuHomePhabricator

[keyserver] update fetchCommunityInfos to query by community ids
ClosedPublic

Authored by ginsu on Wed, Jun 12, 11:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jun 24, 9:22 AM
Unknown Object (File)
Sat, Jun 22, 3:59 AM
Unknown Object (File)
Fri, Jun 21, 7:17 PM
Unknown Object (File)
Fri, Jun 21, 4:22 PM
Unknown Object (File)
Fri, Jun 21, 2:24 PM
Unknown Object (File)
Thu, Jun 20, 8:47 PM
Unknown Object (File)
Thu, Jun 20, 3:13 PM
Unknown Object (File)
Thu, Jun 20, 2:36 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.Thu, Jun 13, 3:59 AM