Import transcript metadata from JSON and require segment speakers #137

Merged
mike merged 1 commit from mike-bot/new-json-format into master 2026-11-25 11:44:52 -05:00 AGit
Collaborator

Admins can upload a transcript export under any JSON filename. The importer reads the title, meeting date, and YouTube ID from metadata and derives the transcript URL from the title and date. It does not use either filename to identify the meeting.

The importer expects an object with metadata and segments instead of a bare segment array. Every segment must name a speaker by numeric ID; 0 is valid. A missing or null speaker rejects the entire upload. The editor does not allow clearing a speaker, and every WebVTT cue carries a voice label.

Admins can upload a transcript export under any JSON filename. The importer reads the title, meeting date, and YouTube ID from `metadata` and derives the transcript URL from the title and date. It does not use either filename to identify the meeting. The importer expects an object with `metadata` and `segments` instead of a bare segment array. Every segment must name a speaker by numeric ID; `0` is valid. A missing or null speaker rejects the entire upload. The editor does not allow clearing a speaker, and every WebVTT cue carries a voice label.
Import transcripts using metadata from the JSON document
All checks were successful
ci/crow/pr/build Pipeline was successful
153961b25a
Previously, the importer read the title, meeting date, and YouTube ID
from the upload filename and expected a bare array of segments.

The importer now accepts the finalizer's metadata and segments object
regardless of the upload filename. It derives the transcript URL from
the title and date in metadata. The source recording filename is not
used to identify the meeting.

AI-Model: openai/gpt-6.2-sol-fast
AI-Model: openai/gpt-6-luna-fast#low
mike-bot changed title from Import transcripts using metadata from the JSON document to WIP: Import transcripts using metadata from the JSON document 2026-11-25 06:33:56 -05:00
Tell admins when their upload uses the old segment array or omits
required fields. Reject titles that cannot produce the title portion
of the transcript URL instead of letting them all share a date-only
URL. Verify that speaker labels and order survive import.

AI-Model: openai/gpt-6.2-sol-fast
Make importer test JSON easier to read
All checks were successful
ci/crow/pr/build Pipeline was successful
577803b3a5
Put each JSON property on its own line and identify subtests by their
descriptions instead of including the entire input in their names.

AI-Model: openai/gpt-6.2-sol-fast
AI-Model: openai/gpt-6-luna-fast#low
mike-bot changed title from WIP: Import transcripts using metadata from the JSON document to Import transcripts using metadata from the JSON document 2026-11-25 06:40:05 -05:00
Keep parsed metadata separate from transcript assembly
All checks were successful
ci/crow/pr/build Pipeline was successful
3d724fa4b9
Return a private metadata value from the import parser. Supply all
fields to the transcript constructor together after parsing segments
and deriving speakers.

AI-Model: openai/gpt-6.2-sol-fast
mike-bot changed title from Import transcripts using metadata from the JSON document to WIP: Import transcripts using metadata from the JSON document 2026-11-25 06:43:52 -05:00
mike-bot changed title from WIP: Import transcripts using metadata from the JSON document to Import transcripts using metadata from the JSON document 2026-11-25 06:44:18 -05:00
Require a speaker on every transcript segment
All checks were successful
ci/crow/pr/build Pipeline was successful
c1ac01885b
Reject imports with a missing or null speaker and edits that clear a
segment's speaker. The transcript constructor also rejects segments
whose speaker does not appear in the transcript's speaker list.

Every turn now displays a speaker heading, and every exported WebVTT
cue carries a voice label. The browser fixture leaves silence as a
timestamp gap rather than attributing it to a speaker.

AI-Model: openai/gpt-6.2-sol-fast
AI-Model: openai/gpt-6-luna-fast#low
mike-bot changed title from Import transcripts using metadata from the JSON document to WIP: Import transcripts using metadata from the JSON document 2026-11-25 07:58:23 -05:00
mike-bot changed title from WIP: Import transcripts using metadata from the JSON document to Import transcripts using metadata from the JSON document 2026-11-25 08:02:11 -05:00
Reject unknown speakers before saving segment edits
All checks were successful
ci/crow/pr/build Pipeline was successful
2809ff91f7
Validate the requested speaker against the transcript in the edit
handler. Keep the domain invariant at construction, and publish the
updated in-memory transcript only after construction succeeds so a
rejected edit cannot change the stored record.

AI-Model: openai/gpt-6.2-sol-fast
mike-bot changed title from Import transcripts using metadata from the JSON document to WIP: Import transcripts using metadata from the JSON document 2026-11-25 08:09:30 -05:00
mike-bot changed title from WIP: Import transcripts using metadata from the JSON document to Import transcripts using metadata from the JSON document 2026-11-25 08:10:25 -05:00
mike-bot force-pushed mike-bot/new-json-format from 2809ff91f7
All checks were successful
ci/crow/pr/build Pipeline was successful
to 7dbaea1b67
All checks were successful
ci/crow/pr/build Pipeline was successful
2026-11-25 08:13:22 -05:00
Compare
mike-bot changed title from Import transcripts using metadata from the JSON document to Import transcript metadata from JSON and require segment speakers 2026-11-25 08:13:27 -05:00
mike merged commit 969f0d6fa9 into master 2026-11-25 11:44:52 -05:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
oe/transcripts!137
No description provided.