72f47592a92f21d93cc27bd4d9ac2efaf1e929df
3 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
5e8dcb9843 |
fix(generate): from-assets 去重 + 60s 超时 + 片段就绪轮询
- 移除 handleGenerate 中 from-assets 重复调用(useStep2Materials 已在选素材时 debounce 800ms 调用) - createClipsFromAssets 单独设置 60s timeout(与后端 MediaKit 一致),支持 AbortSignal - 调 generate 前轮询 listClips 确认存在 ready 片段,未就绪显示'正在智能选片中,请稍候...' - 轮询最多 90s(MediaKit 60s + 缓冲),超时提示'智能选片超时,请重试' - from-assets 请求超时/失败在 useStep2Materials 中 message.error 友好提示 |
||
|
|
e1482a4b11 |
fix: Step2素材选择后调用/clips/from-assets,修复片段数量不足+随机起始时间 (#1515)
CI/CD Pipeline / Validate - Migration (alembic) (push) Successful in 4m9s
CI/CD Pipeline / Validate - Code Quality (push) Has been cancelled
CI/CD Pipeline / Validate - Type Check (mypy) (push) Has been cancelled
CI/CD Pipeline / Unit Tests (push) Has been cancelled
CI/CD Pipeline / Integration Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Unit Tests (push) Has been cancelled
CI/CD Pipeline / Build Staging API Image (push) Has been cancelled
CI/CD Pipeline / Build Staging Web Image (push) Has been cancelled
CI/CD Pipeline / Build Staging Worker Image (push) Has been cancelled
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Has been cancelled
CI/CD Pipeline / Staging E2E Tests (push) Has been cancelled
CI/CD Pipeline / Staging API Integration Tests (push) Has been cancelled
CI/CD Pipeline / Build Production API Image (push) Has been cancelled
CI/CD Pipeline / Build Production Web Image (push) Has been cancelled
CI/CD Pipeline / Build Production Worker Image (push) Has been cancelled
CI/CD Pipeline / Deploy Production (push) Has been cancelled
CI/CD Pipeline / Production Browser E2E (push) Has been cancelled
CI/CD Pipeline / ACR Image Cleanup (push) Has been cancelled
CI/CD Pipeline / Canary Release to Production (push) Has been cancelled
CI/CD Pipeline / CI Gate (push) Has been cancelled
CI/CD Pipeline / Validate - Type Check (mypy) (pull_request) Successful in 5m10s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 5m22s
CI/CD Pipeline / Validate - Migration (alembic) (pull_request) Successful in 5m52s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 3m12s
CI/CD Pipeline / Validate - Code Quality (pull_request) Successful in 9m28s
AI Code Review / AI Code Review (pull_request) Failing after 7m32s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 2m19s
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 2m33s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 7m47s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 4m48s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 12m26s
CI/CD Pipeline / CI Gate (pull_request) Successful in 24s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 494h21m9s
CI/CD Pipeline / Canary Release to Production (pull_request) Failing after 494h21m10s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 494h21m10s
CI/CD Pipeline / Build Production Worker Image (pull_request) Failing after 494h21m11s
CI/CD Pipeline / Build Production Web Image (pull_request) Failing after 494h21m12s
CI/CD Pipeline / Build Production API Image (pull_request) Failing after 494h21m13s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 494h32m41s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 494h33m37s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 494h32m43s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 494h33m38s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 494h32m45s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 494h34m52s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Failing after 494h38m4s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 494h38m4s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 494h38m5s
CI/CD Pipeline / PR Build Worker Image (push) Failing after 494h43m4s
CI/CD Pipeline / PR Build API Image (push) Failing after 494h43m8s
CI/CD Pipeline / Frontend Lint (push) Failing after 494h43m9s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 494h43m11s
CI/CD Pipeline / PR Build Web Image (pull_request) Failing after 495h7m34s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 495h12m2s
CI/CD Pipeline / PR Build Web Image (push) Failing after 495h17m4s
问题:前端在本地构建clips(每素材1个片段,start_time=0), 未调用后端/clips/from-assets,导致模板要求4个片段但只选3个素材时 只生成3个片段,后端随机start_time和多片段逻辑从未被触发。 修复: - createClipsFromAssets增加requiredClipsCount可选参数 - useStep2Materials改为先清空旧片段再调用from-assets, required_clips_count=模板segments数 - 删除废弃的buildClipsFromAssets工具函数 |
||
|
|
e5284120f8 | refactor(template-editor): API层按模块拆分(744行→88行入口, -88%) (#939) |