We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a647b86 commit fa7d37dCopy full SHA for fa7d37d
src/sentry/seer/explorer/tools.py
@@ -527,7 +527,7 @@ def get_replay_metadata(
527
528
Returns:
529
A dict containing the metadata for the replay, or None if it's not found.
530
- The return type is ReplayDetailsResponse.
+ The return type should conform to ReplayDetailsResponse (may have extra fields).
531
"""
532
try:
533
organization = Organization.objects.get(id=organization_id)
@@ -567,4 +567,9 @@ def get_replay_metadata(
567
)
568
return None
569
570
- return resp.data["data"]
+ # Add project_slug field.
571
+ result = resp.data["data"]
572
+ project = Project.objects.get(id=result["project_id"])
573
+ result["project_slug"] = project.slug
574
+
575
+ return result
0 commit comments