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)
Fri, Nov 1, 7:20 PM
Unknown Object (File)
Oct 15 2024, 3:04 AM
Unknown Object (File)
Oct 13 2024, 2:11 AM
Unknown Object (File)
Oct 13 2024, 2:11 AM
Unknown Object (File)
Oct 13 2024, 2:11 AM
Unknown Object (File)
Oct 13 2024, 2:11 AM
Unknown Object (File)
Oct 13 2024, 2:11 AM
Unknown Object (File)
Oct 13 2024, 2:11 AM
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