feat(vtt): add note field to VttUpdateRequest and wire through create_version calls
Some checks failed
Deploy Backend / Deploy API to Cloud Run (push) Has been cancelled
Deploy Frontend / Build and Deploy Frontend (push) Has been cancelled
CI / Backend Lint & Test (push) Has been cancelled
CI / Frontend Lint & Test (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / Dependency Check (push) Has been cancelled
Deploy Backend / Deploy Worker to Cloud Run (push) Has been cancelled
Deploy Backend / Run Smoke Tests (push) Has been cancelled
Deploy Backend / Notify Deployment Status (push) Has been cancelled
Deploy Frontend / Notify Deployment Status (push) Has been cancelled
CI / Integration Tests (push) Has been cancelled
CI / Build Backend Docker Image (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
Some checks failed
Deploy Backend / Deploy API to Cloud Run (push) Has been cancelled
Deploy Frontend / Build and Deploy Frontend (push) Has been cancelled
CI / Backend Lint & Test (push) Has been cancelled
CI / Frontend Lint & Test (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / Dependency Check (push) Has been cancelled
Deploy Backend / Deploy Worker to Cloud Run (push) Has been cancelled
Deploy Backend / Run Smoke Tests (push) Has been cancelled
Deploy Backend / Notify Deployment Status (push) Has been cancelled
Deploy Frontend / Notify Deployment Status (push) Has been cancelled
CI / Integration Tests (push) Has been cancelled
CI / Build Backend Docker Image (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
This commit is contained in:
parent
07d2112e53
commit
fb99a5e8c7
2 changed files with 5 additions and 2 deletions
|
|
@ -1628,7 +1628,8 @@ async def update_job_vtt_content(
|
|||
|
||||
# Snapshot before overwriting live file
|
||||
await vtt_versioning.create_version(
|
||||
db, job_id, target_language, "captions", captions_vtt_fixed, current_user
|
||||
db, job_id, target_language, "captions", captions_vtt_fixed, current_user,
|
||||
note=request.note,
|
||||
)
|
||||
|
||||
# Upload updated VTT
|
||||
|
|
@ -1713,7 +1714,8 @@ async def update_job_vtt_content(
|
|||
|
||||
# Snapshot before overwriting live file
|
||||
await vtt_versioning.create_version(
|
||||
db, job_id, target_language, "ad", ad_vtt_fixed, current_user
|
||||
db, job_id, target_language, "ad", ad_vtt_fixed, current_user,
|
||||
note=request.note,
|
||||
)
|
||||
|
||||
# Upload updated VTT
|
||||
|
|
|
|||
|
|
@ -80,6 +80,7 @@ class VttUpdateRequest(BaseModel):
|
|||
language: str | None = None # If None, defaults to source language
|
||||
if_match: str | None = None # Optimistic locking — SHA1 of expected current content
|
||||
retranslate_languages: bool = False # Re-translate all target languages from updated source VTT
|
||||
note: str | None = None # Optional save message shown in version history
|
||||
|
||||
@field_validator('captions_vtt', 'audio_description_vtt', mode='before')
|
||||
@classmethod
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue