Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: deprecate legacy issue route (#11587)

Danny Xu070925de73f1
diff --git a/frontend/src/components/ActivityTable/utils.ts b/frontend/src/components/ActivityTable/utils.ts
index ff21a301a1..22c989ebc4 100644
--- a/frontend/src/components/ActivityTable/utils.ts
+++ b/frontend/src/components/ActivityTable/utils.ts
@@ -34,17 +34,13 @@ export const getLinkFromActivity = (activity: LogEntity): Link | undefined => {
activity.payload
) as ActivityIssueCreatePayload;
- // TODO:
- // activity.resource is now like "issues/1234"
- // We need to DML them to "projects/xxxxx/issues/1234"
- // to migrate to the new issue detail routes
const issueId = getIssueId(activity.resource);
if (issueId === UNKNOWN_ID || issueId === EMPTY_ID) {
return undefined;
}
return {
title: payload.issueName,
- path: `/issue/${issueId}`,
+ path: `/${activity.resource}/issues/${issueId}`,
external: false,
};
}
diff --git a/frontend/src/router/dashboard/issue.ts b/frontend/src/router/dashboard/issue.ts
index e4ab3902f1..217e933269 100644
--- a/frontend/src/router/dashboard/issue.ts
+++ b/frontend/src/router/dashboard/issue.ts
@@ -1,5 +1,4 @@
import type { RouteRecordRaw } from "vue-router";
-import ProjectSidebarV1 from "@/components/Project/ProjectSidebarV1.vue";
import { t } from "@/plugins/i18n";
import DashboardSidebar from "@/views/DashboardSidebar.vue";
@@ -19,19 +18,6 @@ const issueRoutes: RouteRecordRaw[] = [
},
props: { content: true, leftSidebar: true },
},
- // legacy issue detail route have to be kept for a long time.
- {
- path: "issue/:issueSlug",
- name: ISSUE_ROUTE_DETAIL,
- meta: {
- overrideTitle: true,
- },
- components: {
- content: () => import("@/views/IssueDetailV1.vue"),
- leftSidebar: ProjectSidebarV1,
- },
- props: { content: true, leftSidebar: true },
- },
];
export default issueRoutes;
diff --git a/frontend/src/store/modules/router.ts b/frontend/src/store/modules/router.ts
index 099a0c64b9..5b79413441 100644
--- a/frontend/src/store/modules/router.ts
+++ b/frontend/src/store/modules/router.ts
@@ -17,19 +17,6 @@ export const useRouterStore = defineStore("router", {
return backPath;
},
routeSlug(currentRoute: RouteLocationNormalized): RouterSlug {
- {
- // /issue/:issueSlug
- // Total 2 elements, 2nd element is the issue slug
- const issueComponents = currentRoute.path.match(
- "/issue/([0-9a-zA-Z_-]+)"
- ) || ["/", undefined];
- if (issueComponents[1]) {
- return {
- issueSlug: issueComponents[1],
- };
- }
- }
-
{
// /sql-editor/sheet/:sheetSlug
// match this route first