Skip to content
Merged
Changes from 1 commit
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 @@

@action(methods=["POST"], detail=False, parser_classes=[JSONParser])
def bulk_start_upload(self, request, **kwargs):
if self.user.pk:

Check failure on line 1019 in products/error_tracking/backend/api/error_tracking.py

View workflow job for this annotation

GitHub Actions / Python code quality checks

"ErrorTrackingSymbolSetViewSet" has no attribute "user"
posthoganalytics.identify_context(self.user.pk)

Check failure on line 1020 in products/error_tracking/backend/api/error_tracking.py

View workflow job for this annotation

GitHub Actions / Python code quality checks

"ErrorTrackingSymbolSetViewSet" has no attribute "user"
# 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 @@

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 @@

@action(methods=["POST"], detail=False, parser_classes=[JSONParser])
def bulk_finish_upload(self, request, **kwargs):
if self.user.pk:

Check failure on line 1053 in products/error_tracking/backend/api/error_tracking.py

View workflow job for this annotation

GitHub Actions / Python code quality checks

"ErrorTrackingSymbolSetViewSet" has no attribute "user"
posthoganalytics.identify_context(self.user.pk)

Check failure on line 1054 in products/error_tracking/backend/api/error_tracking.py

View workflow job for this annotation

GitHub Actions / Python code quality checks

"ErrorTrackingSymbolSetViewSet" has no attribute "user"
# 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 @@

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

Expand Down
Loading