Metrics: per-item view count and total play history #12
Reference in New Issue
Block a user
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?
Track how many times each user has watched an item, and the global total view count across all users. Requires a play_events table (user_id, media_id, watched_at, duration_seconds, completed BOOL). Aggregate views: total_plays (all users), user_plays (current user). Expose on the catalogue item response and as a dedicated /catalogue/{id}/stats endpoint. Can be populated from the user_media_state progress tracking (issue already filed) or as a separate event-sourced log.