feat(project): 朝向作为唯一方向规格 - #676
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
|
✅ 此 PR 已关联 issue,之前的提醒已自动标记为已解决。 |
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #676 +/- ##
==========================================
- Coverage 86.52% 86.52% -0.01%
==========================================
Files 293 293
Lines 21902 21904 +2
Branches 3329 3329
==========================================
+ Hits 18951 18952 +1
Misses 2021 2021
- Partials 930 931 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1 file with indirect coverage changes 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
已审阅固定范围 25b54f87b1c185e84564d2b14cd42562a4084942...b827349fe68f3fe507dad68d403a2ff1171680f7 的完整变更,重点核对了项目 DTO/响应兼容、朝向约束读取、API/worker 启动建表与 SQL 迁移的幂等及并发路径。未发现满足报告阈值的可确认正确性、回归或安全问题。
静态验证通过:python3 -m compileall(变更后的 Python 源文件)与 git diff --check。未能运行 pytest:当前环境没有 uv 或已安装的 pytest。
|
Deployment failed for project windup with the following error: Learn More: https://vercel.com/huyan-s-projects1?upgradeToPro=build-rate-limit |
目标结构只留在 ORM。create_all 管新表,schema_sync 管加列; character_perspective 从模型拿掉后不再读写,响应里仍派生给前端过渡。
8b99697 to
93807d6
Compare
|
已按「目标结构只在 ORM 定义一次」收掉本 PR 原先的 SQL 迁移框架( 当前业务不需要那一套: 分支已 rebase 到最新 main,冲突应已消除。 |
rememberActiveRun 后立刻 getByRole 会在订阅尚未刷 UI 时失败。
Summary
directional_movement(朝向)成为唯一可写入的项目方向规格;character_perspective不再落库,生成约束只从朝向派生(单向→横版侧视、四向→俯视、八向→2.5D)。create_all管新表,schema_sync管加列;删列属于会丢数据的操作,按 feat(ops): 加一个只做加法的表结构巡检 #616 只报告、不自动做。旧库多留一列不影响读写。character_perspective(旧客户端多传会被忽略)。响应里仍派生该字段(readOnly),方便前端过渡。本 PR 不改前端。前端同学按 OpenAPI:创建只发
directional_movement;列表/详情暂时仍可读派生的character_perspective。Close #664
Test plan
uv run pytest:项目创建忽略旧字段、朝向约束 facing、schema_sync 存量插入windup_project无character_perspectivePOST /projects不传character_perspective可创建;同时传character_perspective=1+directional_movement=3时只认朝向,响应里character_perspective == 3