42 lines
1.6 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.

# Phase 6 Summary: 质量 & 前端
**Status:** Complete ✅
**Tests:** 146 passed (34 new)
**Commit:** feat(06)
---
## Plan 01 — QUAL-02: 三平台解析函数测试
| 文件 | 测试数 | 覆盖函数 |
|------|--------|---------|
| `tests/ingest/test_configs_boss.py` | 10 | `_extract_job_id`, `_extract_company_name`, `_build_boss_push` |
| `tests/ingest/test_configs_qcwy.py` | 12 | `_extract_job_id`, `_extract_update_dt`, `_extract_company_name`, `_build_qcwy_push` |
| `tests/ingest/test_configs_zhilian.py` | 12 | `_extract_number`, `_extract_fpt`, `_extract_company_name`, `_build_zhilian_push` |
**覆盖场景:** 正常字段、缺字段(返回 None/"")、特殊字段welfare 列表/字符串、skill 列表、整数转字符串)
---
## Plan 02 — QUAL-06/07: 前端爬虫监控
**后端:** `GET /api/v1/job/data/stats?days=7` 端点
返回各平台 `total / today / last_ingest_at / daily_counts`(近 N 天每日趋势)
**前端(`monitor.vue`** 新增"爬虫职位入库统计"区域
- 三平台卡片:总量 / 今日新增 / 最近入库时间
- 近 7 天每日入库趋势表格Boss / 前程无忧 / 智联招聘 各列)
-`refreshAll()` 自动更新,刷新失败静默处理(不影响主清洗面板)
**QUAL-07 确认已完成:** `monitor.vue` 已有完整清洗队列列表、触发执行、查看结果,无需改动。
---
## 测试总量回顾(全项目)
| Phase | 新增测试 | 累计 |
|-------|---------|------|
| Phase 1-3 | 106 个 | 106 |
| Phase 5 | 6 个 dedup | 112 |
| Phase 6 | 34 个解析函数 | **146** |