mirror of
https://github.com/koel/koel.git
synced 2026-04-26 09:15:59 +03:00
[PR #1370] [MERGED] fix: made rules optional #1697
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#1697
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/1370
Author: @allentje
Created: 10/20/2021
Status: ✅ Merged
Merged: 10/25/2021
Merged by: @phanan
Base:
master← Head:fix-standard-playlist-creation📝 Commits (5)
7c3a258Made rules optional8e44066Update tests/Integration/Services/PlaylistServiceTest.php474fe9eUpdate tests/Integration/Services/PlaylistServiceTest.php8166a57Update tests/Integration/Services/PlaylistServiceTest.php690de8dUpdate tests/Integration/Services/PlaylistServiceTest.php📊 Changes
2 files changed (+47 additions, -1 deletions)
View changed files
📝
app/Services/PlaylistService.php(+1 -1)➕
tests/Integration/Services/PlaylistServiceTest.php(+46 -0)📄 Description
What does this PR do?
fixes #1371
The standard playlist can no longer be created as rules (Smart playlists) are sent with a null however the
PlaylistServicerequires that an array is passed.This PR allows for rules to be optional so that the standard playlists can be created.
Due to the fact that rules are optional and dictate the difference between a regular playlist and smart playlist I have decided to let the rules argument accept a
nullvalue.Where should the reviewer start?
Before checking out this PR try to create a new playlist. The ajax request should return a 500 with a stacktrace.
After checking out the playlists should now successfully be created without any issues.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.