-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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: create playlists from errors #21037
Conversation
Size Change: 0 B Total Size: 824 kB ℹ️ View Unchanged
|
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.
one comment on the playlist creation...
@@ -76,12 +76,12 @@ def construct_response(df: pd.DataFrame, team: Team, user: User): | |||
clusters = [] | |||
for cluster, rows in df.groupby("cluster"): | |||
session_ids = rows["session_id"].unique() | |||
sample = rows.sample(n=1)[["session_id", "input"]].rename(columns={"input": "error"}).to_dict("records") | |||
sample = rows.sample(n=1)[["session_id", "input"]].rename(columns={"input": "error"}).to_dict("records")[0] |
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.
silly check do we know we have a non-empty thing to get [0]
from at this point?
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.
Yep good question. The cluster will only be generated if it meets the MIN_SAMPLES
so we know that each cluster has at least 10 rows
frontend/src/scenes/session-recordings/errors/sessionRecordingErrorsLogic.ts
Outdated
Show resolved
Hide resolved
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.
📸 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. |
Problem
We want users to be able to see a playlist of recordings containing a certain error
Changes
Does this work well for both Cloud and self-hosted?
Yes
How did you test this code?
playlist.mp4