[PR #1972] [MERGED] feat: revamp genres #1988

Closed
opened 2026-02-26 03:32:57 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/koel/koel/pull/1972
Author: @phanan
Created: 6/27/2025
Status: Merged
Merged: 6/27/2025
Merged by: @phanan

Base: masterHead: genres


📝 Commits (1)

📊 Changes

73 files changed (+980 additions, -466 deletions)

View changed files

app/Builders/GenreBuilder.php (+20 -0)
📝 app/Builders/SongBuilder.php (+12 -8)
📝 app/Enums/SmartPlaylistModel.php (+9 -1)
📝 app/Enums/SmartPlaylistOperator.php (+5 -0)
📝 app/Http/Controllers/API/FetchRandomSongsInGenreController.php (+3 -1)
📝 app/Http/Controllers/API/GenreController.php (+17 -8)
📝 app/Http/Controllers/API/GenreSongController.php (+18 -8)
📝 app/Http/Resources/GenreResource.php (+8 -8)
📝 app/Http/Resources/SongResource.php (+1 -1)
📝 app/Models/Album.php (+1 -0)
📝 app/Models/Artist.php (+1 -0)
app/Models/Genre.php (+80 -0)
📝 app/Models/Playlist.php (+2 -0)
📝 app/Models/Song.php (+45 -2)
📝 app/Providers/AppServiceProvider.php (+10 -0)
📝 app/Repositories/AlbumRepository.php (+22 -1)
📝 app/Repositories/ArtistRepository.php (+25 -2)
📝 app/Repositories/Contracts/Repository.php (+1 -1)
app/Repositories/Contracts/ScoutableRepository.php (+24 -0)
📝 app/Repositories/GenreRepository.php (+76 -28)

...and 53 more files

📄 Description

Revamp genres by replace the songs.genre column with a m:n relationship.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/koel/koel/pull/1972 **Author:** [@phanan](https://github.com/phanan) **Created:** 6/27/2025 **Status:** ✅ Merged **Merged:** 6/27/2025 **Merged by:** [@phanan](https://github.com/phanan) **Base:** `master` ← **Head:** `genres` --- ### 📝 Commits (1) - [`6f02077`](https://github.com/koel/koel/commit/6f02077abdc3c36ba66047d18b29c7ac4f364d43) feat: revamp genres ### 📊 Changes **73 files changed** (+980 additions, -466 deletions) <details> <summary>View changed files</summary> ➕ `app/Builders/GenreBuilder.php` (+20 -0) 📝 `app/Builders/SongBuilder.php` (+12 -8) 📝 `app/Enums/SmartPlaylistModel.php` (+9 -1) 📝 `app/Enums/SmartPlaylistOperator.php` (+5 -0) 📝 `app/Http/Controllers/API/FetchRandomSongsInGenreController.php` (+3 -1) 📝 `app/Http/Controllers/API/GenreController.php` (+17 -8) 📝 `app/Http/Controllers/API/GenreSongController.php` (+18 -8) 📝 `app/Http/Resources/GenreResource.php` (+8 -8) 📝 `app/Http/Resources/SongResource.php` (+1 -1) 📝 `app/Models/Album.php` (+1 -0) 📝 `app/Models/Artist.php` (+1 -0) ➕ `app/Models/Genre.php` (+80 -0) 📝 `app/Models/Playlist.php` (+2 -0) 📝 `app/Models/Song.php` (+45 -2) 📝 `app/Providers/AppServiceProvider.php` (+10 -0) 📝 `app/Repositories/AlbumRepository.php` (+22 -1) 📝 `app/Repositories/ArtistRepository.php` (+25 -2) 📝 `app/Repositories/Contracts/Repository.php` (+1 -1) ➕ `app/Repositories/Contracts/ScoutableRepository.php` (+24 -0) 📝 `app/Repositories/GenreRepository.php` (+76 -28) _...and 53 more files_ </details> ### 📄 Description Revamp genres by replace the `songs.genre` column with a m:n relationship. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 03:32:57 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#1988
No description provided.