Commit Graph

6 Commits

Author SHA1 Message Date
saas-backend-agent 2220492611 feat(#1718): PATCH /auth/me 资料更新接口(微信新用户昵称设置阻断修复)
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (pull_request) Successful in 1s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 2s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 32s
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 31s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 42s
CI/CD Pipeline / Validate - Python (mypy + alembic) (pull_request) Failing after 1m3s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 1m21s
CI/CD Pipeline / Validate - Style (pull_request) Successful in 1m58s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 2m50s
CI/CD Pipeline / Validate - Security (pull_request) Successful in 3m43s
AI Code Review / AI Code Review (pull_request) Successful in 6m20s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 8m28s
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / CI Gate (pull_request) Failing after 1s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 5m44s
CI/CD Pipeline / Canary Release to Production (pull_request) Failing after 243h41m3s
CI/CD Pipeline / Build Production Worker Image (pull_request) Failing after 243h41m4s
CI/CD Pipeline / Build Production Web Image (pull_request) Failing after 243h41m4s
CI/CD Pipeline / Build Production API Image (pull_request) Failing after 243h41m4s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 243h49m17s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 243h49m17s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 243h49m23s
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Failing after 243h49m30s
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Failing after 243h49m31s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 243h49m33s
CI/CD Pipeline / PR Build Web Image (pull_request) Failing after 243h49m31s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 243h49m37s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 243h49m37s
CI/CD Pipeline / Check push changed paths (pull_request) Failing after 243h49m38s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 244h15m39s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 244h23m52s
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Failing after 244h24m4s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 244h24m7s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 244h24m11s
- 新增 PATCH /auth/me(仅接受 display_name),strip+1-20字符校验,空白/超长422
- users 表加 profile_completed 字段(迁移 068);存量默认 True;微信新建用户在 wechat_sync 内置 False
- /auth/me GET/PATCH 响应均含 profile_completed 字段,前端 normalizeUser 直接消费
- 微信绑定/解绑接口响应同步带 profile_completed
- 12 个新单测,diff coverage 97%
2026-09-06 11:34:37 +08:00
xiaoxia 269723ced2 feat(#558): 微信登录 + 绑定手机号邮箱完整后端实现 (#670)
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1m6s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1374h8m10s
CI/CD Pipeline / Build Production Web Image (push) Failing after 1374h8m12s
CI/CD Pipeline / Build Production API Image (push) Failing after 1374h8m13s
CI/CD Pipeline / Deploy Production (push) Failing after 1374h8m11s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 1374h8m14s
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been skipped
CI/CD Pipeline / Unit Tests (push) Has been skipped
CI/CD Pipeline / Integration Tests (push) Has been skipped
CI/CD Pipeline / Frontend Lint (push) Has been skipped
CI/CD Pipeline / Frontend Unit Tests (push) Has been skipped
CI/CD Pipeline / Build Staging API Image (push) Has been skipped
CI/CD Pipeline / Build Staging Web Image (push) Has been skipped
CI/CD Pipeline / Build Staging Worker Image (push) Has been skipped
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (push) Has been skipped
CI/CD Pipeline / Build Production Worker Image (push) Failing after 1374h40m21s
CI/CD Pipeline / ACR Image Cleanup (push) Has been skipped
Co-authored-by: xiaoxia <dev@xiaoxiajianji.com>
Co-committed-by: xiaoxia <dev@xiaoxiajianji.com>
2026-07-21 09:21:01 +08:00
CI Test f94ffa77bf feat(auth): SQLAlchemy仓储实现微信openid/unionid查询 2026-07-06 22:06:34 +08:00
灵应 a57a26cb67 fix(tests): 修复 sys.modules 污染导致 test_generated_video_management 间歇失败
Deploy / Staging E2E Tests (push) Failing after 107h15m3s
Deploy / Deploy Staging (push) Failing after 107h16m41s
CI/CD Pipeline / Frontend Lint (push) Failing after 107h17m11s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 107h17m18s
Deploy / Production Browser E2E (push) Failing after 1765h46m3s
Deploy / Deploy Production (push) Failing after 1765h46m5s
Deploy / Build Production Runtime Images (push) Failing after 1765h51m12s
根因:test_subscription_api._install_mocks() 在模块导入时替换了
packages.domain / packages.ports 等命名空间包,导致后续测试文件
无法导入真实的 GeneratedVideo 等实体类。

修复:移除所有 packages.* 命名空间包的 fake module 创建,仅保留
必要的叶子 mock(redis/smtp 适配器、app.config/auth/dependencies)。
让 packages.* 模块从磁盘正常加载。

同时包含:
- P2: asset_diagnosis 单素材诊断支持
- P2: edit_plans/edit_templates 管理员权限校验
- P2: edit_plans project 归属鉴权
- P3: test_error_scenarios 限流计数器重置
- P3: test_asset_diagnosis/test_edit_templates 测试修复
- P3: Alembic 迁移 024_add_user_is_admin
2026-07-05 01:37:06 +08:00
API文档维护Agent 06f0b9cc46 fix: 修复订阅API的3个P0问题
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
P0-1: 修复错误的导入路径
  - from app.database import get_db → from app.dependencies import get_user_repository
  - 移除不存在的 Session 依赖

P0-2: 修复直接修改 dataclass 的问题
  - 使用 dataclasses.replace() 创建新实例
  - 通过 UserRepository.save() 持久化更改
  - 更新 UserRepository 以支持订阅字段的读写

P0-3: 移除不存在的 quota_registry 模块
  - 硬编码配额定义 PLAN_QUOTAS
  - free: 3项目/10GB, standard: 10项目/50GB
  - pro: 无限项目/100GB, enterprise: 无限项目/1000GB

额外:
- 添加支付验证 TODO 注释(方案C)
- 更新 UserRepository.save() 保存订阅相关字段
- 更新 UserRepository._to_entity() 读取订阅相关字段
2026-06-28 18:26:01 +08:00
Xiaoxia AI 93271f7dda refactor(auth): route simple auth through use cases 2026-06-21 08:22:49 +08:00