发布

  • [OPIK-6189] [BE] feat: remove dashboards from V1/V2 workspace determination check (#6860)

    frostbyte_neo 发布于 2026-05-26 09:23:56 +00:00

    Dashboards do not need a migration job: V2 ships a workspace-level
    dashboards page that lists all scope = WORKSPACE dashboards regardless
    of project_id. An orphan dashboard (project_id IS NULL) is fully
    listable, viewable, editable, and deletable in V2 — exactly as it was
    in V1. The check was the highest-yield false positive in the V1 entity
    chain (99.7% of dashboards in production are orphan), so removing it
    auto-promotes affected workspaces as the workspace_version Redis cache
    expires (5-min TTL).

    • Delete DashboardDAO.hasVersion1Dashboards and its SQL.
    • Remove the call site from AbstractWorkspaceVersionService.hasStateDbVersion1Entities.
    • Update WorkspaceVersionResourceTest to assert orphan dashboards stay
      on V2 instead of triggering V1.

    dashboards.project_id column stays — it backs the project-scoped
    dashboards page. No schema change, no frontend change, no cache
    invalidation logic change.

    下载附件