-
[OPIK-6189] [BE] feat: remove dashboards from V1/V2 workspace determination check (#6860)
发布于
2026-05-26 09:23:56 +00:00 Dashboards do not need a migration job: V2 ships a workspace-level
dashboards page that lists allscope = WORKSPACEdashboards regardless
ofproject_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.hasVersion1Dashboardsand its SQL. - Remove the call site from
AbstractWorkspaceVersionService.hasStateDbVersion1Entities. - Update
WorkspaceVersionResourceTestto assert orphan dashboards stay
on V2 instead of triggering V1.
dashboards.project_idcolumn stays — it backs the project-scoped
dashboards page. No schema change, no frontend change, no cache
invalidation logic change.下载附件
- Delete