feat: add playlist entity and CRUD API (Closes #77) - #227
Merged
Akatenvictor merged 2 commits intoAug 26, 2026
Conversation
Introduce playlists with song association and ordering: Playlist and PlaylistSong entities, database migration, PlaylistService, controller, and routes under /api/playlists. Playlist owners can create, update, delete, add/remove songs, and reorder them; private playlists are only visible to their owner. Covered by unit tests for the service and controller. Generated with Codebuff 🤖 Co-Authored-By: Codebuff <noreply@codebuff.com>
|
@achiever2110 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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
Adds a Playlist entity and full CRUD API allowing users to create, update, delete, and reorder playlists of songs.
Closes #77
Changes
Playlist,PlaylistSong(join table with ordering)1753200000004-AddPlaylistEntitiescreatesplaylistsandplaylist_songstablesPlaylistService— CRUD, song add/remove, reordering, ownership enforcementPlaylistController+ routes under/api/playlistsPOST /api/playlists— createGET /api/playlists— list mine (paginated)GET /api/playlists/:id— playlist with songs ordered by positionPUT /api/playlists/:id— update metadataDELETE /api/playlists/:id— deletePOST /api/playlists/:id/songs— add songDELETE /api/playlists/:id/songs/:songId— remove songPUT /api/playlists/:id/reorder— reorder songsTests
PlaylistServiceunit tests (18) andPlaylistControllertests (12), all passingAcceptance Criteria