mirror of
https://github.com/koel/koel.git
synced 2026-04-26 01:06:00 +03:00
[PR #1938] [MERGED] feat: consolidate the concept of owner and collaborators #1962
Labels
No labels
Authentication
Dependencies
Documentation
Feature Request
Flac
Help Wanted
Installation/Setup
Integration
Mobile
PR Welcome
Pending Release
Performance
Playlist
S3
Search
Sync
[Pri] Low
[Pri] Normal
[Status] Keep Open
[Status] Needs Author Reply
[Status] Needs Review
[Status] Stale
[Status] Will Implement
[Type] Blessed
[Type] Bug
[Type] Duplicate
[Type] Enhancement
[Type] Help Request
[Type] Question
[Type] Task
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/koel-koel#1962
Loading…
Add table
Add a link
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?
📋 Pull Request Information
Original PR: https://github.com/koel/koel/pull/1938
Author: @phanan
Created: 6/3/2025
Status: ✅ Merged
Merged: 6/3/2025
Merged by: @phanan
Base:
master← Head:playlist-rel📝 Commits (1)
073f6e0feat: consolidate the concept of owner and collaborators📊 Changes
44 files changed (+284 additions, -273 deletions)
View changed files
📝
app/Http/Controllers/API/PlaylistCollaboration/PlaylistCollaboratorController.php(+1 -1)📝
app/Http/Resources/PlaylistResource.php(+3 -2)📝
app/Models/Playlist.php(+22 -16)📝
app/Models/User.php(+14 -7)📝
app/Repositories/AlbumRepository.php(+4 -7)📝
app/Repositories/ArtistRepository.php(+4 -12)📝
app/Repositories/PlaylistRepository.php(+4 -16)📝
app/Repositories/PodcastRepository.php(+0 -1)📝
app/Services/PlaylistCollaborationService.php(+5 -7)📝
app/Services/PlaylistService.php(+6 -1)📝
app/Services/SmartPlaylistService.php(+4 -2)📝
app/Services/SongService.php(+1 -1)📝
database/factories/PlaylistCollaborationTokenFactory.php(+3 -2)📝
database/factories/PlaylistFactory.php(+0 -2)➕
database/migrations/2025_06_03_121538_modify_playlist-user_relationship.php(+42 -0)📝
resources/assets/js/__tests__/factory/playlistFactory.ts(+1 -1)📝
resources/assets/js/components/playlist/PlaylistCollaborationModal.vue(+1 -1)📝
resources/assets/js/components/playlist/PlaylistCollaboratorList.vue(+4 -4)📝
resources/assets/js/components/playlist/PlaylistContextMenu.spec.ts(+1 -1)📝
resources/assets/js/components/screens/PlaylistScreen.spec.ts(+1 -1)...and 24 more files
📄 Description
A playlist owner was previously identified by the
user_idfield in theplayliststable. With the addition of playlist collaboration, aplaylist_collaboratorstable was added. This PR consolidates both the owner and the collaborators of a playlist into thisplaylist_collaborators(now renamed toplaylist_user) table and uses arolecolumn to differentiate them.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.