feat(phase3): 下线/edit-plans/*旧路由 + 清理废弃代码 + 数据库冗余字段清理 #657

Merged
auto-approve-bot merged 6 commits from feat/phase3-backend-cleanup into develop 2026-07-20 23:48:36 +08:00

6 Commits

Author SHA1 Message Date
CI Bot 018e40c73e fix(phase3): 缩短alembic revision ID,避免超过varchar(32)限制
CI/CD Pipeline / Build Staging API Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging Web Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Build Production Web Image (pull_request) Has been skipped
CI/CD Pipeline / Build Production API Image (pull_request) Has been skipped
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI/CD Pipeline / Build Production Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Has been skipped
CI/CD Pipeline / ACR Image Cleanup (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 17s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 1m56s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 2m1s
AI Code Review / AI Code Review (pull_request) Successful in 2m29s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 4m7s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Successful in 4m12s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 4m32s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 5m36s
Preview Cleanup / Cleanup Preview Environment (pull_request) Successful in 18s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 2m18s
alembic_version表version_num字段是varchar(32),原revision名
'048_cleanup_editplan_redundant_fields' 有38字符,导致更新失败。
改短为 '048_cleanup_result_count' (24字符)。
2026-07-20 23:42:24 +08:00
CI Bot a5febd54fe fix(phase2): 修复模板发布时旧片段配置未删除的Bug
- 根因: publish_template_from_draft 中删除走 db.query().delete() 绕过了 repository 层
- 修复: delete_by_template 增加 commit 参数,publish 中走 repository 调用
- 修复后 stub 测试能正确验证删除逻辑,52个 edit_template_service 测试全绿
2026-07-20 23:42:16 +08:00
CI Bot d5d8f4bfdb feat(phase3): 清理EditPlan表冗余字段result_count
- 删除EditPlan领域模型/仓储/DB模型中的result_count字段
- 清理worker中对plan.result_count的写入
- 创建048 migration删除edit_plans.result_count列
- 该字段为剪辑计划独立功能遗留,生成结果数由generation_tasks承载
- net: -6行 + 1 migration
2026-07-20 23:41:25 +08:00
CI Bot dadbab5b3c fix(phase3): black + isort 格式修复 2026-07-20 23:41:22 +08:00
CI Bot 022187cb9e feat(phase3): 清理EditPlanService废弃字幕方法及测试
- 删除EditPlanService中6个字幕相关方法(list/get/add/update/delete/batch_update)
  模板编辑器直接操作clip.config.subtitles,不再走service层
- 删除对应TestSubtitleManagement测试类(16个用例)
- 修复test_get_plan_or_raise_not_found遗留bug(引用未定义变量)
- net: -775行
2026-07-20 23:41:20 +08:00
CI Bot 9438af6704 feat(phase3): 删除旧 /edit-plans/* 路由及废弃代码
- 删除11个旧路由文件(edit_plans*.py)
- 删除7个对应API测试文件
- 从router移除 /edit-plans 路径注册
- Pydantic schemas 已迁移到 templates_editor.py
- 移除 deprecated_edit_plans_api helper
- 保留 EditPlanService 服务层及数据模型(模板编辑器仍在使用)
2026-07-20 23:41:17 +08:00