task-4: 解析接口只返回固定数量预览行,完整行仅保存在后端任务载荷

parseAndCreateTask 响应 items/groups 改为 buildResponsePreviewRows/Groups 裁剪
到 PARSE_RESPONSE_PREVIEW_LIMIT(100) 行:大文件(5000行)响应体不再携带全量行,
前端/队列只依赖统计字段与 taskId,Python 通过 parsed-payload 接口拉全量。
groups 预览副本保留 itemCount 与行级字段,字段完整且顺序稳定。
8 个测试覆盖 150/5000/1/100/101 行、空文件、非法输入、存储失败恢复与临时文件清理。
This commit is contained in:
2026-08-29 14:43:08 +08:00
parent 9f8bdecc9e
commit 026aa4e0c3
3 changed files with 306 additions and 6 deletions
+4 -4
View File
@@ -1,10 +1,10 @@
{
"version": 1,
"total_tasks": 100,
"completed": 3,
"rounds": 3,
"completed": 4,
"rounds": 4,
"started_at": "2026-08-29T14:10:48+08:00",
"updated_at": "2026-08-29T14:45:00+08:00",
"updated_at": "2026-08-29T15:00:00+08:00",
"tasks": [
{
"id": 1,
@@ -32,7 +32,7 @@
"title": "解析接口改为只返回固定数量预览行,完整行仅保存在后端任务载荷",
"module": "similarasin",
"dependency": "3",
"status": "pending"
"status": "done"
},
{
"id": 5,