mirror of
https://github.com/koel/koel.git
synced 2026-04-25 08:46:00 +03:00
[PR #1578] [MERGED] feat: add and use "last played" timestamp for songs #1786
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#1786
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/1578
Author: @phanan
Created: 11/8/2022
Status: ✅ Merged
Merged: 11/8/2022
Merged by: @phanan
Base:
master← Head:feat/last-played📝 Commits (1)
73a1372feat: add and use "last played" for songs📊 Changes
12 files changed (+190 additions, -107 deletions)
View changed files
📝
api-docs/api.yaml(+55 -55)📝
app/Models/Interaction.php(+3 -1)📝
app/Repositories/InteractionRepository.php(+1 -1)📝
app/Repositories/SongRepository.php(+1 -2)📝
app/Services/InteractionService.php(+2 -0)📝
app/Services/SmartPlaylistService.php(+7 -6)📝
app/Values/SmartPlaylistRule.php(+7 -38)➕
app/Values/SmartPlaylistSqlElements.php(+89 -0)➕
database/migrations/2022_11_08_144634_add_last_played_at_into_interactions_table.php(+22 -0)📝
resources/assets/js/components/ui/ScreenHeader.vue(+1 -2)📝
resources/assets/js/config/smart-playlist/models.ts(+1 -1)📝
resources/assets/js/types.d.ts(+1 -1)📄 Description
Add and use a
interactions.last_played_attimestamp instead of relying oninteractions.updated_at, which has always been buggy, as the latter is modified upon (un)marking songs as favorite as well.Also in this PR:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.