Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion src/sentry/snuba/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@ class Columns(Enum):
event_name="timestamp_ms",
transaction_name=None,
discover_name="timestamp_ms",
issue_platform_name=None,
issue_platform_name="timestamp_ms",
alias="timestamp_ms",
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from datetime import datetime, timedelta
from datetime import timedelta
from unittest.mock import patch

import pytest
Expand Down Expand Up @@ -90,20 +90,22 @@ def test_simple(self) -> None:
def test_rage_clicks(self) -> None:
event_id_a = "a" * 32

min_ago_ms = self.min_ago + timedelta(milliseconds=123)

_, group_info = self.process_occurrence(
**{
"project_id": self.project.id,
"event_id": event_id_a,
"fingerprint": ["c" * 32],
"issue_title": "Rage Click",
"type": ReplayRageClickType.type_id,
"detection_time": datetime.now().timestamp(),
"detection_time": min_ago_ms.timestamp(),
"level": "info",
},
event_data={
"platform": "javascript",
"timestamp": self.min_ago.isoformat(),
"received": self.min_ago.isoformat(),
"timestamp": min_ago_ms.isoformat(),
"received": min_ago_ms.isoformat(),
},
)

Expand All @@ -120,7 +122,7 @@ def test_rage_clicks(self) -> None:
"issue": group_info.group.qualified_short_id,
"level": "error",
"project.name": self.project.slug,
"timestamp": self.min_ago.isoformat(),
"timestamp": min_ago_ms.isoformat(),
"title": "Rage Click",
}
]
Expand Down
Loading