refactor: drop the v2 prefix now that v1 is gone
Merged
SA
9d ago+2127+2127+0123456789012345678901234567890123456789-2274-2274-0123456789012345678901234567890123456789
Links
- Compatibility checklist + old-client replay suite: https://app.superset.sh/page/v1-deletion-compatibility-checklist-4rariw
Part 2 of the v1 removal. The deletion itself merged as #9875; this PR is now only the rename.
What changes
- Routes:
/v2-workspace/$idbecomes/workspace/$idand/v2-workspacesbecomes/workspaces. Deep links (main/index.ts) and saved router history (persistent-hash-history.ts) rewrite the old paths, so old links and a restart after the update land on the same workspace. Saved history now carries aroutes: 2marker: entries saved without it come from builds where/workspacewas the v1 route, so a profile updating straight from 2.0.9 drops those instead of opening a v1 id on the v2 route. - Files, components, hooks and stores lose their
V2/v2-prefix. Persisted keys (localStorage, zustand persist names, collection storage keys) and hotkey ids keep their old names. - Cloud tRPC:
v2Project/v2Workspacebecomeproject/workspace, and the old names stay as aliases. The host-service, released and new, keeps calling the old names, so it works against the API before and after this deploys. Switching it to the new names is a follow-up once this API is live; the aliases go onceMINIMUM_DESKTOP_VERSIONis past that release.support.sendMigrationReportis removed; no live release calls it. - The CLI keeps emitting
superset://v2-workspace/...links, which older desktops understand and newer ones rewrite.
Version skew
No deploy order is needed. The host-service API that desktop, the CLI and mobile call does not change, and the host-service keeps calling the old cloud names. The CLI and the web page keep emitting superset://v2-workspace/..., which older desktops understand and this one rewrites.
Verification
- Typecheck, lint and
check:i18npass. Desktop, host-service, trpc, cli, agent-setup and i18n tests pass, except failures that also happen on main locally (trpc network tests, a cloud-api-client hook timeout, a fish teardown test). - Upgrade test on packaged builds, from the #9875 build to this one on the same home and profile:
- The open workspace reopens at
/workspace/<id>. Its tabs, the live terminal session (shell history intact) and the collapsed sidebar section are kept. - No persisted key was removed or renamed.
- Hooks stay at v22, and a Claude run recorded its
Stopevent in the new host-service. - All 48 routes render with no error boundaries or console errors.
- Recently viewed, the switcher's "Current" label and Cmd+N work.
- An old
superset://v2-workspace/<id>link opens/workspace/<id>. - A 2.0.9-style saved history (a v1
/workspace/<id>entry plus/v2-workspaceentries) restores to the dashboard, Back reaches the rewritten/workspace/<id>, and a relaunch keeps the new entries.
- The open workspace reopens at
- Feature pass on packaged builds of this PR and of #9875, with no console errors:
- Quick-create a workspace; split a pane; open a new terminal tab.
- The Changes diff, Quick Open into the file viewer, and a browser tab loading a page.
- A chat reply, and an agent run in a background workspace setting its "finished" indicator.
- Deleting the workspace removes its worktree and branch.
- A forced v1 importer pass.
- Old host-services against the new API: all nine
v2Workspaceprocedures andv2Project.findByGitHubRemotestill resolve (401 without auth, versus 404 for an unknown name). - Existing issues seen during testing, the same on main and not caused by this PR:
- After Claude has run in a terminal, a restart shows an older screen for that terminal; the shell itself is live.
- The active tab resets to Chat on relaunch.
Co-authored-by: Satya Patel satyapatel111@gmail.com