-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: count playlists with filters #29113
base: master
Are you sure you want to change the base?
Conversation
pauldambra
commented
Feb 23, 2025
•
edited
Loading
edited
- adds a task that finds playlists with filters for teams on an allowlist
- adds a task that runs those filters and stores results in redis
- returns the count of filters or pinned when listing playlists


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
This PR adds functionality to count and cache the number of recordings matching playlist filters, with controlled rollout to specific teams.
- Added new Celery task
count_recordings_that_match_playlist_filters
in/ee/session_recordings/playlist_counters/recordings_that_match_playlist_filters.py
that runs every 15 seconds, which seems too frequent for this operation - Implemented Redis caching with 36-hour TTL in
/ee/session_recordings/playlist_counters/recordings_that_match_playlist_filters.py
but lacks cache invalidation strategy - Added team allowlist via
TEAMS_WITH_PLAYLIST_COUNTER_PROCESSING
in/posthog/settings/session_replay.py
for controlled feature rollout - Missing error handling for Redis connection failures in
/ee/session_recordings/session_recording_playlist.py
- Potential race condition in
/ee/session_recordings/playlist_counters/recordings_that_match_playlist_filters.py
when multiple tasks update the same playlist count simultaneously
9 file(s) reviewed, 7 comment(s)
Edit PR Review Bot Settings | Greptile
ee/session_recordings/playlist_counters/recordings_that_match_playlist_filters.py
Outdated
Show resolved
Hide resolved
frontend/src/scenes/session-recordings/saved-playlists/SavedSessionRecordingPlaylists.tsx
Outdated
Show resolved
Hide resolved
frontend/src/scenes/session-recordings/saved-playlists/SavedSessionRecordingPlaylists.tsx
Outdated
Show resolved
Hide resolved
Size Change: +133 B (0%) Total Size: 9.72 MB ℹ️ View Unchanged
|
b98649c
to
30e12c7
Compare
📸 UI snapshots have been updated2 snapshot changes in total. 0 added, 2 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated2 snapshot changes in total. 0 added, 2 modified, 0 deleted:
Triggered by this commit. |