Add data migration for existing recordings — populate SessionTags from segment speaker/subject IDs #21
Labels
No labels
blocked:children
blocked:needs-decision
blocked:needs-human
blocked:verify-failed
bug
deferred
enhancement
feature-request
in-progress
needs-decompose
needs-triage
quickfix
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/transcriber#21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent Issue
#6 — No speaker/subject assignment during live recording
#11 — Implementation plan
Description
Existing recordings have speaker/subject assignments only at the segment level (
TranscriptSegment.speakerId,TranscriptSegment.subjectId). To support the new time-range features (topic timeline, speaker transitions), existing data needs to be backfilled intoSessionTagentries.Scope
MIGRATION_3_4inAppDatabasethat:speakerId IS NOT NULL:SessionTag(tagType='SPEAKER', referenceId=speakerId, startOffsetMs=<first segment offset>, endOffsetMs=<last segment offset>)for each groupsubjectId IS NOT NULL:SessionTag(tagType='SUBJECT', referenceId=subjectId, startOffsetMs=<first segment offset>, endOffsetMs=<last segment offset>)for each groupstartOffsetMsas the difference between segment timestamp and session start_timeendOffsetMsas the start of the next group (or NULL for the last group)Acceptance Criteria
Dependencies
Fixed in commit. Closing.