fix(activity): bound recent batch age and show only in-flight lanes #901
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/media-activity-stale-batch-scroll"
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?
Problem
The Media activity dialog showed huge lifetime 'done' counts (e.g. 6901 done on idle lanes) and could not scroll to its last entry.
Root cause
ProcessingSummaryService.recentBatch()treats everyupload_sessionsrow withnotified_at IS NULLas an active batch — including sessions whose browser never committed. The dialog then counts ALL completed worker jobs of those media with no time window, so every reprocessing run keeps inflating 'done'.finishedCount > 0), violating the agreed product intent that the dialog only shows currently in-flight processes.max-h-[70vh]+overflow-hidden, but the list'smax-h-[calc(70vh-4rem)]ignored header + footer + padding, so the bottom of the list was cut off.Fix
batchActivities,batchDiscoveryActivities) now exclude unnotified sessions older than 7 days (created_at >= now - 7d). Lifetime counters unchanged; no migration needed (created_atalready exists).flex flex-col, list usesmin-h-0 flex-1 overflow-y-autoso scrolling respects header/footer. Visual design unchanged.Validation
rtk ./gradlew :apps:api:test --tests ProcessingSummaryServiceTest --tests UploadBatchCompletionServiceTest→ 29 tests greennpm run check→ 0 errors (20 pre-existing warnings)npm run build→ okupload-status.spec.ts: desktop 4 passed (1 unrelated upload-timing flake passed on retry), mobile 5 passedNo version bump (spec 015: pipeline-computed versioning).