feat(for-you): switch useForYouFeed to dedicated /users/{id}/feed/for-you endpoint#14388
Merged
Conversation
…-you endpoint The endpoint was re-introduced in AudiusProject/api#817 with a lean 3-source pipeline (in-network, trending, underground) + linear ranking + diversity pass. Previous implementation fell back to the generic recommended-tracks endpoint; this wires the hook to the purpose-built one. Changes: - Add GetUserFeedForYouRequest interface + getUserFeedForYou method to the generated UsersApi (mirrors the pattern of getUserRecommendedTracks) - Update useForYouFeed to call getUserFeedForYou, dropping the now-unused timeRange param Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Contributor
🌐 Web preview readyPreview URL: https://audius-web-preview-pr-14388.audius.workers.dev Unique preview for this PR (deployed from this branch). |
… hand-editing The prior commit on this branch hand-added getUserFeedForYou to the generated UsersApi.ts, which is the wrong layer — those files are produced by openapi-generator from the API repo's swagger spec. Manual edits get wiped on the next codegen run and the method name doesn't match the spec's operationId. This re-runs `node ./src/sdk/api/generator/gen.js --spec <swagger>` against the swagger from AudiusProject/api main (the for-you endpoint isn't in prod swagger yet, so --env prod can't be used until it deploys). The generated method is named `getUserForYouFeed` (from operationId "Get User For You Feed"), not `getUserFeedForYou` as the hand-edit assumed — hook updated to match. Co-Authored-By: Claude Opus 4.7 <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
getUserFeedForYoumethod to the generatedUsersApiSDK (mirrors the pattern ofgetUserRecommendedTracks— same request shape minustimeRange, sameTracksresponse type)useForYouFeedto call the new method, dropping the now-unusedtimeRangeparamrecommended-tracksendpoint; this wires the hook to the purpose-built pipeline introduced in feat(for-you): re-introduce /users/{id}/feed/for-you with lean 3-source pipeline api#817Test plan
currentUserIdis null)getUserRecommendedTracks)🤖 Generated with Claude Code