You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!--
Make sure you've read the CONTRIBUTING.md guidelines:
https://github.com/stack-auth/stack-auth/blob/dev/CONTRIBUTING.md
-->
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Added new session replay analytics columns to ClickHouse for enhanced
tracking and reporting
* **Refactor**
* Renamed session recording segment identifier across APIs and data
models from `tab_id` to `session_replay_segment_id`
* Updated internal data structures and type definitions to align with
new naming convention
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
ALTERTABLE"SessionRecordingChunk" RENAME COLUMN "tabId" TO "sessionReplaySegmentId";
2
+
3
+
ALTERTABLE"SessionRecording" RENAME TO "SessionReplay";
4
+
ALTERTABLE"SessionRecordingChunk" RENAME TO "SessionReplayChunk";
5
+
ALTERTABLE"SessionReplayChunk" RENAME COLUMN "sessionRecordingId" TO "sessionReplayId";
6
+
7
+
-- Rename primary key constraints
8
+
ALTERTABLE"SessionReplay" RENAME CONSTRAINT"SessionRecording_pkey" TO "SessionReplay_pkey";
9
+
ALTERTABLE"SessionReplayChunk" RENAME CONSTRAINT"SessionRecordingChunk_pkey" TO "SessionReplayChunk_pkey";
10
+
11
+
-- Rename foreign key constraints
12
+
ALTERTABLE"SessionReplay" RENAME CONSTRAINT"SessionRecording_tenancyId_fkey" TO "SessionReplay_tenancyId_fkey";
13
+
ALTERTABLE"SessionReplay" RENAME CONSTRAINT"SessionRecording_tenancyId_projectUserId_fkey" TO "SessionReplay_tenancyId_projectUserId_fkey";
14
+
ALTERTABLE"SessionReplayChunk" RENAME CONSTRAINT"SessionRecordingChunk_tenancyId_fkey" TO "SessionReplayChunk_tenancyId_fkey";
15
+
ALTERTABLE"SessionReplayChunk" RENAME CONSTRAINT"SessionRecordingChunk_tenancyId_sessionRecordingId_fkey" TO "SessionReplayChunk_tenancyId_sessionReplayId_fkey";
16
+
17
+
-- Rename indexes
18
+
ALTERINDEX"SessionRecording_tenancyId_lastEventAt_idx" RENAME TO "SessionReplay_tenancyId_lastEventAt_idx";
19
+
ALTERINDEX"SessionRecording_tenancyId_projectUserId_startedAt_idx" RENAME TO "SessionReplay_tenancyId_projectUserId_startedAt_idx";
20
+
ALTERINDEX"SessionRecording_tenancyId_refreshTokenId_updatedAt_idx" RENAME TO "SessionReplay_tenancyId_refreshTokenId_updatedAt_idx";
21
+
ALTERINDEX"SessionRecordingChunk_tenancyId_sessionRecordingId_batchId_key" RENAME TO "SessionReplayChunk_tenancyId_sessionReplayId_batchId_key";
22
+
ALTERINDEX"SessionRecordingChunk_tenancyId_sessionRecordingId_createdA_idx" RENAME TO "SessionReplayChunk_tenancyId_sessionReplayId_createdAt_idx";
Copy file name to clipboardExpand all lines: apps/backend/src/app/api/latest/internal/session-replays/[session_replay_id]/chunks/[chunk_id]/events/route.tsx
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ export const GET = createSmartRouteHandler({
17
17
tenancy: adaptSchema.defined(),
18
18
}).defined(),
19
19
params: yupObject({
20
-
session_recording_id: yupString().defined(),
20
+
session_replay_id: yupString().defined(),
21
21
chunk_id: yupString().defined(),
22
22
}).defined(),
23
23
}),
@@ -31,13 +31,13 @@ export const GET = createSmartRouteHandler({
0 commit comments