-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat(Replay): Add Flag for EAP Query for Replay Details Page #103278
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 |
|---|---|---|
|
|
@@ -30,7 +30,7 @@ def query_replay_instance_eap( | |
| start: datetime, | ||
| end: datetime, | ||
| organization_id: int, | ||
| request_user_id: int, | ||
| request_user_id: int | None, | ||
| referrer: str = "replays.query.details_query", | ||
| ): | ||
| select = [ | ||
|
|
@@ -159,14 +159,25 @@ def get(self, request: Request, organization: Organization, replay_id: str) -> R | |
| projects = self.get_projects(request, organization, include_all_accessible=True) | ||
| project_ids = [project.id for project in projects] | ||
|
|
||
| snuba_response = query_replay_instance( | ||
| project_id=project_ids, | ||
| replay_id=replay_id, | ||
| start=filter_params["start"], | ||
| end=filter_params["end"], | ||
| organization=organization, | ||
| request_user_id=request.user.id, | ||
| ) | ||
| # Use EAP query if feature flag is enabled | ||
| if features.has("organizations:replay-details-eap-query", organization): | ||
| snuba_response = query_replay_instance_eap( | ||
| project_ids=project_ids, | ||
| replay_ids=[replay_id], | ||
| start=filter_params["start"], | ||
| end=filter_params["end"], | ||
| organization_id=organization.id, | ||
| request_user_id=request.user.id, | ||
| )["data"] | ||
|
Comment on lines
+163
to
+171
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: Type mismatch in 🔍 Detailed AnalysisThe 💡 Suggested FixVerify the return structure of 🤖 Prompt for AI AgentDid we get this right? 👍 / 👎 to inform future reviews. Reference_id: 2662889 |
||
| else: | ||
| snuba_response = query_replay_instance( | ||
| project_id=project_ids, | ||
| replay_id=replay_id, | ||
| start=filter_params["start"], | ||
| end=filter_params["end"], | ||
| organization=organization, | ||
| request_user_id=request.user.id, | ||
| ) | ||
|
|
||
| response = process_raw_response( | ||
| snuba_response, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.