chore: remove /v1/users/{id}/feed/for-you endpoint#807
Merged
Conversation
The custom For You feed endpoint is being retired in favor of
consolidating on /v1/users/{id}/recommended-tracks, which already
powers the Explore page's For You section and is in active use. The
client is being switched to that endpoint in a companion PR on the
apps repo.
Removed:
* api/v1_users_feed_for_you.go (handler + 200-row candidate-pool SQL
with similar_artists self-join that scaled to ~300M rows for
power users)
* api/v1_users_feed_for_you_test.go (9 unit tests)
* Route registration in api/server.go
* The /feed/for-you exemption in authMiddleware (added in #804 as a
workaround for the auth gate; no longer needed since the route is
gone)
* Swagger spec entry for the endpoint
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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
Retiring the dedicated For You feed endpoint. The clients are being switched to use `/v1/users/{id}/recommended-tracks` instead — the same endpoint that already powers the Explore page's For You section and works fine in production. See companion PR: AudiusProject/apps#14301.
Why
The custom `/feed/for-you` endpoint had repeated issues since it shipped:
Consolidating on the working endpoint is simpler than continuing to optimize the custom one.
Removed
Test plan
🤖 Generated with Claude Code