Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions products/error_tracking/backend/api/error_tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -1016,6 +1016,8 @@ def finish_upload(self, request, **kwargs):

@action(methods=["POST"], detail=False, parser_classes=[JSONParser])
def bulk_start_upload(self, request, **kwargs):
if request.user.pk:
posthoganalytics.identify_context(request.user.pk)
# Earlier ones send a list of chunk IDs, all associated with one release
# Extract a list of chunk IDs from the request json
chunk_ids: list[str] = request.data.get("chunk_ids") or []
Expand All @@ -1024,7 +1026,6 @@ def bulk_start_upload(self, request, **kwargs):

posthoganalytics.capture(
"error_tracking_symbol_set_upload_started",
distinct_id=request.user.pk,
properties={"team_id": self.team.id, "endpoint": "bulk_start_upload"},
groups=groups(self.team.organization, self.team),
)
Expand All @@ -1049,6 +1050,8 @@ def bulk_start_upload(self, request, **kwargs):

@action(methods=["POST"], detail=False, parser_classes=[JSONParser])
def bulk_finish_upload(self, request, **kwargs):
if request.user.pk:
posthoganalytics.identify_context(request.user.pk)
# Get the map of symbol_set_id:content_hashes
content_hashes = request.data.get("content_hashes", {})
if content_hashes is None:
Expand Down Expand Up @@ -1107,7 +1110,6 @@ def bulk_finish_upload(self, request, **kwargs):

posthoganalytics.capture(
"error_tracking_symbol_set_uploaded",
distinct_id=request.user.pk,
groups=groups(self.team.organization, self.team),
)

Expand Down
Loading