1 Changelog V1.21.78
Forgejo Actions edited this page 2026-10-14 09:10:11 +00:00

v1.21.78

Date: 2026-10-14

Features

  • Video backfill (spec 059 T4): new owner-scoped, enqueue-only maintenance action that gives EXISTING videos (uploaded before video_preview became a post-commit job) their poster/rendition job without touching anything else. POST /api/media/metadata/video-preview-backfill (MediaController → MediaMaintenanceService.enqueueVideoPreviewBackfill) selects the owner's active videos with NO video_preview worker job in any status (NOT EXISTS over worker_jobs; a failed run needs an explicit retry instead of silently duplicating), skips items that gained an active job concurrently, enqueues via the standard gated enqueueMediaJobs path, audits media_video_preview_backfill, and returns the shared MetadataBackfillResult. The processing-issues page gains a "Generate video previews" action next to "Fix image dimensions" (busy state, mutual exclusion, result toast with counts); paraglide keys added in en/de/da. OpenAPI contract documents the endpoint and the MetadataBackfillResult schema. Idempotent — a second click enqueues nothing.

Notes

  • API: MediaMaintenanceService (enqueueVideoPreviewBackfill + ownerMediaMissingVideoPreview selector), MediaController (backfillVideoPreviews). Tests: MediaMaintenanceServiceTest.videoPreviewBackfillQueuesJobsOnlyForVideosWithoutAnyExistingJob (videos without a job get exactly one; active/completed jobs excluded by the selector; photos and other owners untouched; second run scans/enqueues nothing) alongside the existing dimension-backfill test — targeted suite green.
  • Web: issues.ts (backfillVideoPreviews()), processing-issues/+page.svelte (action entry + prepareVideoPreviews()), messages en/de/da (+4 keys each, parity 2370/2370/2370).
  • Contract: specs/001-v1-baseline/contracts/core-api.openapi.yaml (/api/media/metadata/video-preview-backfill, MetadataBackfillResult schema).
  • Version bump 1.21.77 → 1.21.78 (PR branch, gradle.properties).