mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-12 22:49:03 +08:00
chore: remove infra monitoring ff (#6571)
This commit is contained in:
parent
3d092ec2ae
commit
507c0600cd
@ -128,18 +128,6 @@ function App(): JSX.Element {
|
|||||||
|
|
||||||
setRoutes(newRoutes);
|
setRoutes(newRoutes);
|
||||||
}
|
}
|
||||||
|
|
||||||
const isInfraMonitoringEnabled =
|
|
||||||
allFlags.find((flag) => flag.name === FeatureKeys.HOSTS_INFRA_MONITORING)
|
|
||||||
?.active || false;
|
|
||||||
|
|
||||||
if (!isInfraMonitoringEnabled) {
|
|
||||||
const newRoutes = routes.filter(
|
|
||||||
(route) => route?.path !== ROUTES.INFRASTRUCTURE_MONITORING_HOSTS,
|
|
||||||
);
|
|
||||||
|
|
||||||
setRoutes(newRoutes);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const isOnBasicPlan =
|
const isOnBasicPlan =
|
||||||
|
@ -23,5 +23,4 @@ export enum FeatureKeys {
|
|||||||
PREMIUM_SUPPORT = 'PREMIUM_SUPPORT',
|
PREMIUM_SUPPORT = 'PREMIUM_SUPPORT',
|
||||||
QUERY_BUILDER_SEARCH_V2 = 'QUERY_BUILDER_SEARCH_V2',
|
QUERY_BUILDER_SEARCH_V2 = 'QUERY_BUILDER_SEARCH_V2',
|
||||||
ANOMALY_DETECTION = 'ANOMALY_DETECTION',
|
ANOMALY_DETECTION = 'ANOMALY_DETECTION',
|
||||||
HOSTS_INFRA_MONITORING = 'HOSTS_INFRA_MONITORING',
|
|
||||||
}
|
}
|
||||||
|
@ -120,21 +120,6 @@ function SideNav({
|
|||||||
setMenuItems(items);
|
setMenuItems(items);
|
||||||
}
|
}
|
||||||
|
|
||||||
const isInfraMonitoringEnabled =
|
|
||||||
featureResponse.data?.find(
|
|
||||||
(feature) => feature.name === FeatureKeys.HOSTS_INFRA_MONITORING,
|
|
||||||
)?.active || false;
|
|
||||||
|
|
||||||
if (!isInfraMonitoringEnabled) {
|
|
||||||
let items = [...menuItems];
|
|
||||||
|
|
||||||
items = items.filter(
|
|
||||||
(item) => item.key !== ROUTES.INFRASTRUCTURE_MONITORING_HOSTS,
|
|
||||||
);
|
|
||||||
|
|
||||||
setMenuItems(items);
|
|
||||||
}
|
|
||||||
|
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [featureResponse.data]);
|
}, [featureResponse.data]);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user