Feature Request: Implement Worker for Playlist Snapshot Comparison
Problem Statement
The current code lacks a worker that compares the snapshot_id of playlists added to the notify_list table in the bot's database. This prevents the bot from automatically detecting changes in playlist snapshots and notifying users.
Proposed Solution
Implement a worker that runs periodically to check for differences in snapshot_id values. When a playlist's snapshot_id changes, the bot should send a notification to the user who added the playlist, including a clickable link to the playlist on Spotify.
Acceptance Criteria
Periodic worker to compare snapshot_id of playlists in notify_list table
Send notification to users when a playlist's snapshot_id changes
Notification message includes playlist name as clickable link to Spotify
Efficient implementation to avoid unnecessary resource consumption
Technical Considerations
Implement worker as a separate component or module
Use background task scheduler for periodic execution
Handle errors and resilience (network/database)
Utilize appropriate logging mechanisms
Additional Information
notify_list table stores playlists added by users
snapshot_id field in table stores playlist snapshot identifier
Users expect notifications for playlist snapshot changes
Implementation Guidance
Modify code to store snapshot_id when adding playlists to notify_list table.
Implement periodic worker to compare stored snapshot_id with current snapshot from Spotify API.
Send notification to respective Telegram user when a difference is detected.
Handle errors and log worker execution.
Please let me know if you need further assistance or clarification.
Issue Description
Feature Request: Implement Worker for Playlist Snapshot Comparison
Problem Statement
The current code lacks a worker that compares the
snapshot_id
of playlists added to thenotify_list
table in the bot's database. This prevents the bot from automatically detecting changes in playlist snapshots and notifying users.Proposed Solution
Implement a worker that runs periodically to check for differences in
snapshot_id
values. When a playlist'ssnapshot_id
changes, the bot should send a notification to the user who added the playlist, including a clickable link to the playlist on Spotify.Acceptance Criteria
snapshot_id
of playlists innotify_list
tablesnapshot_id
changesTechnical Considerations
Additional Information
notify_list
table stores playlists added by userssnapshot_id
field in table stores playlist snapshot identifierImplementation Guidance
snapshot_id
when adding playlists tonotify_list
table.snapshot_id
with current snapshot from Spotify API.Please let me know if you need further assistance or clarification.