fix(p1): 修复 4 个 P1 技术债务问题 #11
Reference in New Issue
Block a user
Delete Branch "fix/p1-technical-debt"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
修复的 P1 问题
P1-1: CORS 配置安全隐患
文件:
apps/api/main.py修复: 根据 DEBUG 模式区分配置
P1-2: Token 刷新未实现
文件:
packages/application/auth/login_use_case.py,packages/adapters/redis/session_store.py修复: 实现真实的 token 刷新逻辑
get_session_by_refresh_token方法P1-3: Worker 数据库连接泄漏
文件:
apps/worker/worker_app/tasks/ingest.py修复: 添加 try-except-finally 保护
db.close()始终被调用P1-4: Worker Mock 元数据
文件:
apps/worker/worker_app/tasks/ingest.py修复: 实现真实元数据提取