mirror of
https://github.com/koel/koel.git
synced 2026-04-26 17:25:59 +03:00
[GH-ISSUE #1934] [Bug]: Filter persists invisibly after switching playlists #1039
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#1039
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?
Originally created by @HNIdesu on GitHub (May 29, 2025).
Original GitHub issue: https://github.com/koel/koel/issues/1934
Originally assigned to: @phanan on GitHub.
Read the Troubleshooting guide.
Reproduction steps
Expected behavior
Switching to another playlist should reset the filter state, both visually (empty input) and functionally (full song list shown).
Actual behavior
The filter input appears empty.
The displayed songs in Playlist B are still filtered as if the same keyword is applied.
Logs
No response
Koel version
Koel v7.5.1 Community Edition
How did you install Koel?
Compiled from source
Additional information
@phanan commented on GitHub (May 29, 2025):
Confirmed. I think it’s due time to handle separated playlist states once
and for all.
On Thu, May 29, 2025 at 06:07 HNIdesu @.***> wrote:
@HNIdesu commented on GitHub (Jun 1, 2025):
Thanks for the fix! However, I noticed a couple of side effects after the change:
1. Filtered results change when returning to a playlist
Steps:
abc)➡️ The filtered results in A have changed, even though the filter string remains
2. Same filter string causes result "leakage" across playlists
Steps:
abcabc➡️ You now see Playlist B's filtered results in Playlist A
It seems that while the search keyword is stored per playlist, the actual filtered result might be shared or recalculated improperly based on the current global context. Maybe each
(playlistId + filter)pair needs to have its own result reference or cache?Let me know if you'd like more detail or reproduction steps!
@phanan commented on GitHub (Jun 1, 2025):
Hmm, as every engineer out there I could have sworn I tested the changes
thoroughly and it worked on my machine 😅 Will take another look.
On Sun, Jun 1, 2025 at 04:57 HNIdesu @.***> wrote:
@phanan commented on GitHub (Jun 1, 2025):
Actually, no, I don't think I can reproduce. Please make sure the scripts are compiled and not cached.
@phanan commented on GitHub (Jun 1, 2025):
Ah ok I think I'm on to something.
@phanan commented on GitHub (Jun 1, 2025):
Fixed and released in v7.5.2