Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

ADR-0034: 迁移 sys_* 到覆盖层并退役专用表 + 清理形状转换 #1519

Closed

Description

@os-zhuang

Part of ADR-0034(总览 #1516)。前置条件:#1518 验证通过且默认已翻为 flag-on。 涉及后端 + ops + 前端清理。

✅ 已开发(现状)

🛠 本任务(后续开发)

  1. 数据迁移(后端/ops):把现有 sys_view/sys_report/sys_dashboard 行迁移为对应 item 的已发布覆盖层;保留双读窗口(先读覆盖层、回退读 sys_*)。
  2. 前端清理(迁移稳定后):
    • 删除 toSysViewPayload/fromSysViewRecord(ObjectView.tsx)。
    • 移除 seam RuntimePersistCtx.toSysViewPayload 及 view/report/dashboard 分支里的 legacy sys_* 写入,只保留 /meta 路径;flag 可随之移除或常开。
    • 移除运行时读路径里对 sys_* 的合并(MetadataProvider.mergeViewsIntoObjects 等若仍读 sys_view)。
  3. 退役表:删除 sys_view/sys_report/sys_dashboard(后端)。

🔍 待验证

  • 迁移后历史数据完整可读;双读窗口内新旧一致;回退可行。
  • 删除转换层后运行时编辑与读取无回归(report/dashboard/view 的保存/发布/读回)。
  • 多租户数据归属正确。

验收

  • sys_* 表退役、转换代码删除、flag 简化;全量 build/test 绿;有迁移与回退记录。
  • ⚠️ 不可逆步骤(删表)前确保双读窗口与备份。

Activity

  1. xuyushun441-sys commented on Jun 6, 2026

    @xuyushun441-sys
    Contributor

    Done (frontend) — #1534 (merged) retires sys_view/sys_report/sys_dashboard from the frontend: flag + all legacy write/read/fallback paths + toSysViewPayload/fromSysViewRecord removed; runtime editing is metadata-only. System pre-launch → no data migration. Remaining: dropping the physical object schemas + CRUD endpoints is a separate framework-repo task (frontend no longer references them, so the tables are dead).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions