-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat(Replay): Strip Dash Before EAP Replay Query #103793
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,6 +33,9 @@ def query_replay_instance_eap( | |
| request_user_id: int | None, | ||
| referrer: str = "replays.query.details_query", | ||
| ): | ||
| # EAP stores replay_id in hex without dashes | ||
| replay_ids_no_dashes = [replay_id.replace("-", "") for replay_id in replay_ids] | ||
|
|
||
| select = [ | ||
| Column("replay_id"), | ||
| Function("min", parameters=[Column("project_id")], alias="agg_project_id"), | ||
|
|
@@ -71,7 +74,7 @@ def query_replay_instance_eap( | |
| match=Entity("replays"), | ||
| select=select, | ||
| where=[ | ||
| Condition(Column("replay_id"), Op.IN, replay_ids), | ||
| Condition(Column("replay_id"), Op.IN, replay_ids_no_dashes), | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: Missing WHERE conditions in EAP queryThe EAP query is missing critical WHERE conditions for |
||
| ], | ||
| groupby=[Column("replay_id")], | ||
| granularity=Granularity(3600), | ||
|
|
||
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.
Bug: EAP query returns incomplete data
The EAP query selects only a subset of fields compared to the non-EAP query path, which returns all fields from
QUERY_ALIAS_COLUMN_MAPwhenfields=[]. Critical missing fields includetrace_ids,error_ids,warning_ids,info_ids,userfields,environment,tags,urls,releases,replay_type,platform,dist,duration,activity,sdk,os,browser,device,ota_updates, click fields, andviewed_by_ids. This causes the EAP endpoint to return incomplete replay details compared to the standard query path.