27da842a20
关闭 notify_* 后通过 Redis 广播同步各 worker 内存设置;修复 expanded id 类型不匹配导致点击名称无法展开详情。 Co-authored-by: Cursor <cursoragent@cursor.com>
32 lines
1.3 KiB
Markdown
32 lines
1.3 KiB
Markdown
# 审计 — Telegram 开关多 Worker 同步 + 服务器行内详情展开
|
||
|
||
**Changelog**:
|
||
- `docs/changelog/2026-06-08-notify-toggle-multi-worker-sync.md`
|
||
- `docs/changelog/2026-06-08-servers-inline-detail-expand-fix.md`
|
||
|
||
## 变更文件
|
||
|
||
`server/config.py` · `server/infrastructure/settings_broadcast.py` · `server/utils/notify_toggles.py` · `server/api/settings.py` · `server/main.py` · `server/infrastructure/telegram/__init__.py` · `tests/test_notify_toggle_sync.py` · `frontend/src/pages/ServersPage.vue` · `frontend/src/components/servers/ServerUnsetPathPanel.vue`
|
||
|
||
## Step 3
|
||
|
||
| 项 | 结论 |
|
||
|----|------|
|
||
| NOTIFY_* 关闭后 Telegram 不发送 | PASS(helper + 单测 9 开关) |
|
||
| 多 worker 热更新 | PASS(Redis `nexus:settings` 广播) |
|
||
| WebSocket / alert_logs 仍记录 | PASS(仅 Telegram 门控,符合设置页文案) |
|
||
| expanded 与 item-value 数字 id 一致 | PASS(number[] + computed 桥接) |
|
||
| 无静默吞错 | PASS(broadcast publish 失败打 warning) |
|
||
|
||
## Closure
|
||
|
||
Gate 7/7 待跑 · pytest notify 31/31 · frontend build PASS
|
||
|
||
## DoD
|
||
|
||
- [x] Settings 关 CPU 告警 → 任意 worker 不推 Telegram
|
||
- [x] 点击服务器名称展开 ServerInlineDetail
|
||
- [x] 未设路径区块同样可展开
|
||
- [x] changelog ×2
|
||
- [ ] 生产 /health + 浏览器验收
|