1.2 KiB
1.2 KiB
2026-06-01 Bug Remediation — 实施计划
涉及文件
前端
frontend/src/pages/ServersPage.vuefrontend/src/api/index.tsfrontend/src/stores/auth.tsfrontend/src/router/index.tsfrontend/src/pages/TerminalPage.vuefrontend/src/utils/serverSelection.ts(新建)
后端
server/application/services/auth_service.pyserver/config.pyserver/api/agent.pyserver/application/services/script_jobs.pyserver/application/services/script_service.pyserver/domain/models/__init__.pyserver/infrastructure/database/admin_repo.pyserver/domain/repositories/__init__.pyserver/infrastructure/database/migrations.pyserver/main.pytests/test_api.py
步骤
- 前端 P0:选择 ID 规范化 + 批量结果数组解析
- 认证:60min access、api refresh、auth store 内存 token
- Agent:未知 server 丢弃、去 MySQL 实时写、script-callback API Key
- 清理:Admin 列、test_api 入口、Terminal CSS
- ruff + import 验证 + changelog + audit
回滚
- Git revert 单次提交
- Admin 列 DROP 不可逆 — 列已为废弃数据,无业务依赖
测试要点
- 本地
npm run type-check(frontend) ruff check server/python -c "import server.main"