Commit Graph

2 Commits

Author SHA1 Message Date
hermes
f722123c08 docs(6/20): CURRENT_STATE + 整改板 + 执行板同步到 6/20
Some checks failed
CI / pytest (Python 3.10) (push) Has been cancelled
CI / pytest (Python 3.11) (push) Has been cancelled
CI / pytest (Python 3.12) (push) Has been cancelled
- CURRENT_STATE.md: 顶部升级 6/20,新增 0.1/0.2 增量段
  (T12-D conn ownership + 真相源分层)
- ACTIVE_REMEDIATION_2026-06-20.md: 新建 6/20 整改板
  - 取代 6/19 历史快照
  - 新增 A-2 后台/外部渠道补录同意审计统一化
  - 标注 T12-D 端到端 acceptance 步骤就绪 + 实际部署动作待 ops
- ACTIVE_EXECUTION_BOARD_2026-06-20.md: 新建 6/20 执行板
- ACTIVE_REMEDIATION_2026-06-19.md / ACTIVE_EXECUTION_BOARD_2026-06-19.md:
  顶部加"⚠ 历史快照"头注 + 6/20 增量跳转

dev-verify 验证: 1179 passed / 0 failed / coverage overall=85.05% / core=100%
ruff + mypy 通过;6 个 retention 测试全过;端到端 smoke 4 笔订单实测通过
2026-06-20 14:29:12 +08:00
Hermes
5a0b2a83ec feat(portal): T12-C 前台删除工单 + 保留期外可申请交互
落地 T12-C: 让用户在 portal 删除工单页/POST 中都能看到该订单
当前所处保留期阶段(pending/within/outside),并按阶段给出明确的
next_step 文案。

- DeletionRequestCreate.scope 锁定到白名单
  (order_only | order_and_attachments | full_account); 非法值 → 422
- _resolve_retention_status(order, settings) 复用
  RETENTION_GUARDED_STATUSES + settings.retention_days
- POST 端 next_step 三种文案:
    outside: 已超过 180 天保留期,可申请删除...
    within:  订单仍在 180 天保留期内...
    pending: 提交成功后将由人工核验后处理
- GET 端在表单上方插入'保留期状态'提示卡
- admin/tests/test_order_info_form.py 6 个新/增强测试 +
  _expire_retention_window helper

dev-verify: 1179 passed (was 1175, +4 net new),
coverage overall=85.05% / core=100%, ruff + mypy clean
2026-06-20 00:26:59 +08:00