Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions src/containers/Tenant/Healthcheck/Healthcheck.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ import Fullscreen from '../../../components/Fullscreen/Fullscreen';
import {HealthcheckStatus} from '../../../components/HealthcheckStatus/HealthcheckStatus';
import {Illustration} from '../../../components/Illustration';
import {Loader} from '../../../components/Loader';
import {useClusterBaseInfo} from '../../../store/reducers/cluster/cluster';
import type {IssuesTree} from '../../../store/reducers/healthcheckInfo/types';
import {SelfCheckResult} from '../../../types/api/healthcheck';
import {uiFactory} from '../../../uiFactory/uiFactory';
import {useAutoRefreshInterval, useTypedSelector} from '../../../utils/hooks';
import {useTypedSelector} from '../../../utils/hooks';
import {HEALTHCHECK_RESULT_TO_TEXT} from '../constants';

import {HealthcheckFilter} from './components/HealthcheckFilter';
Expand All @@ -38,14 +37,9 @@ export function Healthcheck({
tenantName,
countIssueTypes = uiFactory.healthcheck.countHealthcheckIssuesByType,
}: HealthcheckDetailsProps) {
const [autoRefreshInterval] = useAutoRefreshInterval();
const fullscreen = useTypedSelector((state) => state.fullscreen);
const {name} = useClusterBaseInfo();
const {loading, error, selfCheckResult, fulfilledTimeStamp, leavesIssues, refetch} =
useHealthcheck(tenantName, {
//FIXME https://github.com/ydb-platform/ydb-embedded-ui/issues/1889
autorefresh: name === 'ydb_ru' ? undefined : autoRefreshInterval,
});
useHealthcheck(tenantName);

const issuesCount = React.useMemo(
() => countIssueTypes(leavesIssues),
Expand Down
2 changes: 1 addition & 1 deletion src/containers/Tenant/TenantDrawerWrappers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function TenantDrawerWrapper({children, database}: TenantDrawerWrapperPro

const renderDrawerContent = React.useCallback(() => {
return <Healthcheck tenantName={database} />;
}, []);
}, [database]);

return (
<DrawerContextProvider>
Expand Down
Loading