Files
xiaoxia-saas/apps/api/app
xiaoxia 2902d1556a
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 3s
CI/CD Pipeline / Validate - Migration (alembic) (pull_request) Failing after 21s
CI/CD Pipeline / Validate - Type Check (mypy) (pull_request) Successful in 32s
CI/CD Pipeline / Validate - Code Quality (pull_request) Has been cancelled
CI/CD Pipeline / AI Code Review (pull_request) Has been cancelled
CI/CD Pipeline / Unit Tests (pull_request) Has been cancelled
CI/CD Pipeline / Integration Tests (pull_request) Has been cancelled
CI/CD Pipeline / PR Build API Image (Backend) (pull_request) Has been cancelled
CI/CD Pipeline / PR Build Worker Image (Backend) (pull_request) Has been cancelled
CI/CD Pipeline / Build Production API Image (pull_request) Has been cancelled
CI/CD Pipeline / Build Production Web Image (pull_request) Has been cancelled
CI/CD Pipeline / Build Production Worker Image (pull_request) Has been cancelled
CI/CD Pipeline / Deploy Production (pull_request) Has been cancelled
CI/CD Pipeline / Production Browser E2E (pull_request) Has been cancelled
CI/CD Pipeline / Canary Release to Production (pull_request) Has been cancelled
CI/CD Pipeline / CI Gate (pull_request) Has been cancelled
AI Code Review / AI Code Review (pull_request) Has been cancelled
PR Automation / Auto Approve on CI Green (pull_request) Has been cancelled
Preview Deploy / Deploy Preview Environment (pull_request) Has been cancelled
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 312h53m55s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 312h53m56s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 312h54m1s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Failing after 312h54m6s
CI/CD Pipeline / PR Build Web Image (web-cache, infra/docker/web.Dockerfile, xiaoxia-saas-web, web, Web, 30) (pull_request) Failing after 312h54m2s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 312h54m7s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 312h54m5s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 312h54m5s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 312h54m7s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 312h54m7s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 313h28m17s
fix: upload asset not visible immediately in video library
Root cause: The /upload/direct/complete endpoint only created an IngestJob
record and dispatched a Celery task. The Asset record was created
asynchronously by the worker, so when the frontend invalidated the query
cache after upload, the asset list refetch returned stale data (the new
asset didn't exist in DB yet).

Fix:
- Create Asset record immediately in complete_direct_upload and upload_asset
  endpoints with status=PROCESSING, so it appears in the library right away
- Worker now finds the existing Asset by storage_key and updates it with
  extracted metadata (duration, dimensions, codec, etc.) instead of creating
  a new record
- Worker falls back to creating a new Asset if none exists (backward compat)
- Added find_by_storage_key to AssetRepository port and implementations
- Frontend invalidateQueries now works correctly since the Asset exists
  when the refetch happens; asset shows '处理中' status until worker finishes
2026-09-03 14:29:58 +08:00
..
2026-06-15 15:17:40 +08:00
2026-07-03 18:49:54 +08:00
2026-07-03 18:56:16 +08:00