修复比价记录机型与 ROM 版本展示 #183
Reference in New Issue
Block a user
Delete Branch "codex/comparison-device-display"
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?
改动说明
验证
????????? ROM ????to 修复比价记录机型与 ROM 版本展示🤖 review-pr 深审结论
🟢 可以合(置信度 0.9)。已在隔离 worktree 实跑验证:对当前 main(58d609e)干净合入;
pytest -k comparison3 passed(含新测试 test_comparison_records_show_readable_device_and_rom_version 单跑 1 passed);V2166BA→vivo Y77e映射确在 _DEVICE_MARKETING_NAMES。改动
_attach_comparison_device_details(),给每条记录挂瞬态 device_model_name = _device_marketing_name(device_model),沿用既有 _attach_user_info / ad_revenue_yuan 瞬态挂载范式;list 与 detail 两处入口都补挂。⚠️ 唯一需协调:与 #184 的落地顺序
兄弟 PR #184(补充是否下单状态)改同 3 文件。实测 merge #184 ↔ #183 会在 queries.py(helper 定义 + list_comparison_records 的 attach 调用)与 tests/test_admin_read.py(测试插入锚点)冲突,但都是「各加一个独立函数/调用/测试」的机械冲突,device_model_name 与 ordered 互不干扰 —— 后落地者 keep-both 即可,无逻辑不兼容。前端侧 #87 ↔ #88 则自动合并无冲突。
搭配前端 admin-web #87,建议后端先上(前端对缺字段优雅降级)。