Files
watchman/.task/2026-11-18/m05-mapping-rules/reviews/review-s8.md
T
unknownandCursor 252709709c feat(mappings): 完成 M05 字段映射与规则判断
映射和判断规则共用一个不可变版本,试算可以直接取已选查询的结果。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-19 10:03:45 +08:00

31 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# S8 模块审查
- 推荐:PASS_WITH_WARNINGS(修复后复审)
- 第一次为 BLOCKED:数值字符串比较、粘贴试算不核对查询列、ISO 时间被判非法、条件组重开被清空。
- 修复后复审通过。
## 已核对
- 正常、异常、未知、空结果、执行失败分开。
- 字段和判断条件存在同一个映射版本。激活不新增版本。
- 列表没有「判断规则」按钮。
- 新建映射不请求版本 0,不用占位列 `n`。
- 管理员权限、行级安全和版本不可改仍在。
## 警告
- 比较值留空时,页面会提示保存失败。
- 组合条件用「并且/或者」和一条条条件编辑,不再用 JSON 文本框。
- 列表总数会跟着名称和查询筛选走。
- 试算会显示「采用第一行,跳过 N 行」。
- Playwright 已跑通,截图在 `docs/evidence/M05/ui/`。
- 旧的独立规则版本接口还在,新页面不用它。
- 映射 Playwright:1 passed。截图:trial-normal.png、trial-abnormal.png、trial-unknown.png、trial-first-row.png。
## 测试
- `uv run pytest tests/test_judgment.py tests/test_mapping_api.py tests/test_rule_versions.py tests/test_mapping_versions.py`:28 passed。
- `pnpm test:unit`:95 passed。
- 全量 `uv run pytest`:3 个数据源列表用例失败,失败点是新建记录不在返回的第一页,不是本模块断言。
- Playwright:未运行。