Commit Graph

2 Commits

Author SHA1 Message Date
chiguyong 900a90ba84 fix: 修复数据库schema兼容性和E2E测试
后端修复:
- User模型添加organization_id和role字段,匹配Prisma数据库schema
- SQLAlchemy模型FK类型从UUID改为String(36),匹配users.id的text类型
- lifespan中create_all改为SELECT 1,避免与Prisma schema冲突
- 数据库驱动从asyncpg切换到psycopg,修复macOS Unix socket问题
- auth API使用UserResponse.from_user()处理属性映射
- 修复auth service使用正确的列名(password/username)

E2E测试修复:
- hasProjects()先等待页面加载完成再检测空/错误状态
- loginAndWait增加60s超时和重试逻辑,解决NextAuth间歇性超时
- login-redirect-system-chrome添加browserName skip和重试
- login-redirect子页面测试使用domcontentloaded等待策略
- Dashboard空状态下依赖项目的测试正确skip
- playwright.config.ts reuseExistingServer硬编码为true
2026-05-27 20:57:49 +08:00
chiguyong eac12093d6 feat: 修复前后端API路径不匹配,对接真实数据与百炼LLM
- 修复知识库API路径(knowledge-bases -> knowledge/bases)
- 修复analytics top-content -> top路径
- 修复lifecycle stats路径
- 配置百炼Coding Plan API(qwen3-coder-plus)
- 后端所有API对接真实数据库
- 前端所有页面对接真实后端API
- 创建管理员测试账号(admin@fischer.com)
- 修复CORS配置支持localhost:3001
- 修复UUID/String类型转换问题
2026-05-23 14:45:51 +08:00