fix(alerts): guard Import Semantic Groups route on OSS builds (#14364)

This commit is contained in:
Shrinath Rao
2026-09-10 06:21:05 +00:00
committed by GitHub
parent c7221bec97
commit 15565aa8ad
+7
View File
@@ -923,6 +923,7 @@ const useRoutes = () => {
},
},
{
// Correlation engine is enterprise/cloud-only: bounce to Alerts on OSS — mirrors anomaly/alert-sources guards.
path: "alerts/import-semantic-groups",
name: "importSemanticGroups",
component: () => import("@/components/alerts/ImportSemanticGroups.vue"),
@@ -930,6 +931,12 @@ const useRoutes = () => {
titleKey: "correlation.importSemanticGroups.title",
},
beforeEnter(to: any, from: any, next: any) {
const store = (window as any).store;
const isOss = store?.state?.zoConfig?.build_type === "opensource";
if (isOss || (config.isEnterprise !== "true" && config.isCloud !== "true")) {
next({ name: "alertList", query: { org_identifier: to.query.org_identifier } });
return;
}
routeGuard(to, from, next);
},
},