fix(api): prefilter Runs incident drilldown
Some checks failed
Code Review / ai-code-review (push) Successful in 13s
CD Pipeline / tests (push) Successful in 1m34s
CD Pipeline / build-and-deploy (push) Successful in 5m10s
CD Pipeline / post-deploy-checks (push) Successful in 1m32s
Ansible / Reboot Recovery Contract / validate (push) Has been cancelled
Some checks failed
Code Review / ai-code-review (push) Successful in 13s
CD Pipeline / tests (push) Successful in 1m34s
CD Pipeline / build-and-deploy (push) Successful in 5m10s
CD Pipeline / post-deploy-checks (push) Successful in 1m32s
Ansible / Reboot Recovery Contract / validate (push) Has been cancelled
This commit is contained in:
@@ -250,6 +250,20 @@ Tenants 目前已讀到:
|
||||
|
||||
完成度同步:AwoooP status-chain handoff 可判讀性 `67% -> 70%`;AwoooP Runs 可判讀性 `68% -> 71%`;真正 AI 自動化 verified repair 成功率仍不提高。
|
||||
|
||||
### 2.5.9 Runs incident filter 502 修正
|
||||
|
||||
2026-06-25 `4e329bce` 部署後,正式 status-chain API 已回 `automation_handoff`,但 Runs 頁帶 `incident_id=INC-20260625-977E5F` 仍看不到新區塊;追查後確認 `/api/v1/platform/runs/list` 單一事故 filter 會回 `502`。
|
||||
|
||||
| 項目 | 完成 |
|
||||
|---|---|
|
||||
| 問題 | incident filter 舊流程先載入 project 下大量 runs,再逐筆聚合 message context,production 歷史量大時 timeout |
|
||||
| 修正 | `list_runs` 在 incident filter 存在時,先從 run trigger、conversation event、outbound message、source_refs、callback reply、persisted status-chain 預篩出 run_id |
|
||||
| 效果 | 找不到 run_id 時直接回空列表;找到時只對相關 runs 建立 summary,不再全表掃描 |
|
||||
| 驗證 | `py_compile` 通過;`pytest apps/api/tests/test_awooop_operator_timeline_labels.py -q`:`66 passed` |
|
||||
| 邊界 | 只讀查詢修正;不寫 DB、不改 run 狀態、不執行修復、不發 Telegram、不開 runtime gate |
|
||||
|
||||
完成度同步:Runs incident drilldown 穩定性 `60% -> 72%`;Runs apply-gate 正式頁驗證需下一個 deploy marker 後重跑。
|
||||
|
||||
## 3. 頁面 UI/UX 現況盤點
|
||||
|
||||
2026-06-25 對正式站桌機 / mobile 抽查:
|
||||
|
||||
Reference in New Issue
Block a user