feat(collect): persist product status snapshots
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
---
|
||||
id: T-662a
|
||||
title: 商品状态领域模型、数据库迁移与采集检测
|
||||
status: TODO
|
||||
status: DONE
|
||||
phase: 7
|
||||
deps: []
|
||||
created: 2026-07-18
|
||||
@@ -89,4 +89,6 @@ git diff --check
|
||||
|
||||
## 执行记录
|
||||
|
||||
- 待实现。
|
||||
- 2026-07-18:新增 `app/product_status.py`,统一状态代码、中文显示、EDS 警示分类与任务分组;`tasks` 原位迁移新增商品状态快照字段,并提供独立状态写入与 `set_collected()` 的 keyword-only 状态快照参数。
|
||||
- 2026-07-18:`editor.collect()` 在读取标题、封面前探测 EDS warning 状态,`CollectWorker` 完整采集成功时同步写入状态快照;状态读取异常降级为 `unknown` 并写脱敏诊断。
|
||||
- 验证:`py -3.10 -m unittest tests.test_product_status tests.test_editor_login tests.test_db`、`py -3.10 -m unittest discover -s tests`(600 项)、`py -3.10 -m ruff check app tests main.py`、`py -3.10 -m compileall app main.py`、`git diff --check` 均通过。
|
||||
|
||||
Reference in New Issue
Block a user