⚡ Speed up acceptance task loading and defer reports #28
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "codex/acceptance-loading-20260929"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
验收页面此前读取项目内所有标注、质检和验收任务后再筛选,并在切换任务池时重载项目。此次改为在服务端按新旧验收阶段读取,任务池本地切换,统计和退回记录进入对应页签才加载。
依赖 #27,本 PR 以
codex/workforce-statistics-20260929为基线,只包含本次验收加载优化。线上对应源提交为beb25ac4,本 PR 提取提交为979ed87f;移植时保留前置 PR 的任务池结构,没有混入其他尚未合并 PR 的审核历史功能。acceptance与prepackage_acceptance,保留历史验收任务;去重并保持创建时间顺序,任一阶段失败均明确报错。验证:
npm run lint:web、npm run build:web、node --test tests/frontend/annotation-operations.test.mjs(10/10)、node tests/browser/acceptance-pool-loading.mjs(四组浏览器场景)通过。发布记录:
acceptance-loading-20260929。回退镜像及部署配置已保留;此次前端优化未替换后端二进制,回退不需要恢复数据库。详见docs/quality-acceptance-loading.md。@zhanghongming 过去 8 天自合并 PR 回溯审查(2026-10-08)。实际增量:50724963 → 0d7bb24e。
Standards
未发现可确认的新增规范缺陷。两种验收阶段仍由服务端校验权限;前端 available/mine 条件与当时服务端的状态、归属规则相符。维护建议:客户端与服务端重复的筛选规则容易发生漂移,补一个相同数据集的结果一致性测试;这是维护风险,不是已确认越权。
Spec
未发现可确认的新增功能缺陷。两个阶段并行读取、重复 ID 保留较高版本、任一读取失败整体报错,以及切换池视图不重复读取和统计按需加载,均与本 PR 说明一致。建议增加 API wrapper 测试:同 ID 不同版本、任一阶段失败,以及项目切换时旧响应迟到。
验证:本合并快照 lint:web、diff --check 通过;annotation-operations 定向测试 10/10 通过。已静态核对浏览器加载回归脚本,本轮未重跑浏览器和真实 Mongo/Fanyu 流程,定向通过不代表线上完整验收。