feat: skip incomplete apply tasks before update

This commit is contained in:
chengma
2026-07-17 17:32:43 +08:00
parent e77b16ae2e
commit da0a42090c
6 changed files with 248 additions and 24 deletions
+5 -2
View File
@@ -1,7 +1,7 @@
---
id: T-659
title: 更新蝦皮批次内容预检改为剔除跳过不中止整批
status: TODO
status: DONE
phase: 7
deps: []
created: 2026-07-17
@@ -80,4 +80,7 @@ git diff --check
## 执行记录
- 待实现。
- 2026-07-17:`ApplyTab` 新增按更新模式划分可执行任务、缺少新标题任务和缺少新封面任务的预检;有可执行任务时只将其交给 `ApplyWorker`,缺失记录不改 SQLite、Excel 或运行状态。
- 2026-07-17:正式更新和「检查本轮更新」共用该预检;确认框显示跳过条数、缺失类型和示例商品ID,状态栏与本轮日志显示可执行/跳过摘要。全部任务都缺失时仍沿用「更新内容未生成」弹窗中止。
- 2026-07-17:补充三种更新模式的剔除口径、正式更新部分跳过和检查模式部分跳过回归测试;同步架构、API 和界面流程文档。
- 验证通过:`py -3.10 -m unittest tests.test_gui`(190 项)、`py -3.10 -m unittest discover -s tests`(591 项)、`py -3.10 -m ruff check app tests main.py`、`py -3.10 -m compileall app main.py`、`git diff --check`。离屏 GUI 测试有 Qt 字体/插件告警,但无测试失败。