Typeahead for community selection on large instances #126
Labels
No labels
bug
devops
duplicate
enhancement
good first issue
layout
next major release
next minor release
question
research
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lvl0/fedi-feed-router#126
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Channel creation populates a select from
GET /api/v3/community/list?type_=Local&limit=50, cached 24h per instance. That works for a self-hosted instance with a handful of communities —belgae.socialhas 5 — but the endpoint is paginated and a large instance has thousands. The select would be unusable and the cached payload large.Proposal
Replace the select with a typeahead that queries as the user types, hitting the instance's community search rather than fetching everything up front.
Worth reconsidering the caching strategy at the same time: the 24h per-instance cache suits a small fixed list, but short-lived per-query caching may fit a search-driven UI better.
Priority
Not urgent. This only bites if FFR is pointed at a large public instance; the current approach is adequate for the self-hosted case it was built for.
Notes
Confirmed: the select landed; #114 is satisfied by construction.
Committed on
release/v1.3.7as114 - Select channel communities from the instance instead of typing a slug. The community can no longer be typed, so a non-existent one can't be entered.channel_idnow stores the numeric community id (namekeeps the slug). #114 was already closed — no state change needed.Unchanged and still accurate here: the
limit=50cap and the 24hCommunityDirectorycache.One addition: an unreachable instance now returns a distinct error instead of the misleading "That community does not exist on the selected instance". Worth preserving if the typeahead replaces this fetch path.