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
F2836409: D12410.diff
Sat, Sep 28, 4:09 PM
F2830688: D12410.id41394.diff
Fri, Sep 27, 8:38 PM
Unknown Object (File)
Tue, Sep 3, 7:30 PM
Unknown Object (File)
Tue, Sep 3, 7:30 PM
Unknown Object (File)
Tue, Sep 3, 7:30 PM
Unknown Object (File)
Tue, Sep 3, 7:30 PM
Unknown Object (File)
Tue, Sep 3, 7:30 PM
Unknown Object (File)
Tue, Sep 3, 7:30 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
No Lint Coverage
Unit
No Test Coverage

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