Add GET /v1/users/{id}/contests endpoint#790
Open
dylanjeffers wants to merge 1 commit intomainfrom
Open
Conversation
New per-user remix-contest endpoint mirroring v1EventsRemixContests but filtered by host user_id at the database layer, so the web/mobile profile "Contests" tab no longer has to fetch the global contest list and discard everything that isn't theirs. Returns the same payload shape as the global endpoint (data + related users/tracks/entry_counts) so the discovery and per-profile call sites share React Query priming logic. Active contests come first by soonest-ending end_date; ended contests follow most-recently-first. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This was referenced May 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GET /v1/users/{id}/contestsand/v1/users/handle/{handle}/contests, returning remix-contest events hosted by a given user — active first by soonest-ending end_date, then ended most-recently-first./v1/events/remix-contests(data+related.{users,tracks,entry_counts}) so the discovery and per-profile call sites share React Query priming logic.Test plan
TestUserContestsScopedToHostpasses in CI (covers host-scoping, ordering, status filter, related payload, empty case)getContestsByUser(already done locally)🤖 Generated with Claude Code