Skip to content

Commit 7876ecb

Browse files
authored
fix(Healthcheck): do not autorefresh (#2409)
1 parent b106e75 commit 7876ecb

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

src/containers/Tenant/Healthcheck/Healthcheck.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ import Fullscreen from '../../../components/Fullscreen/Fullscreen';
77
import {HealthcheckStatus} from '../../../components/HealthcheckStatus/HealthcheckStatus';
88
import {Illustration} from '../../../components/Illustration';
99
import {Loader} from '../../../components/Loader';
10-
import {useClusterBaseInfo} from '../../../store/reducers/cluster/cluster';
1110
import type {IssuesTree} from '../../../store/reducers/healthcheckInfo/types';
1211
import {SelfCheckResult} from '../../../types/api/healthcheck';
1312
import {uiFactory} from '../../../uiFactory/uiFactory';
14-
import {useAutoRefreshInterval, useTypedSelector} from '../../../utils/hooks';
13+
import {useTypedSelector} from '../../../utils/hooks';
1514
import {HEALTHCHECK_RESULT_TO_TEXT} from '../constants';
1615

1716
import {HealthcheckFilter} from './components/HealthcheckFilter';
@@ -38,14 +37,9 @@ export function Healthcheck({
3837
tenantName,
3938
countIssueTypes = uiFactory.healthcheck.countHealthcheckIssuesByType,
4039
}: HealthcheckDetailsProps) {
41-
const [autoRefreshInterval] = useAutoRefreshInterval();
4240
const fullscreen = useTypedSelector((state) => state.fullscreen);
43-
const {name} = useClusterBaseInfo();
4441
const {loading, error, selfCheckResult, fulfilledTimeStamp, leavesIssues, refetch} =
45-
useHealthcheck(tenantName, {
46-
//FIXME https://github.com/ydb-platform/ydb-embedded-ui/issues/1889
47-
autorefresh: name === 'ydb_ru' ? undefined : autoRefreshInterval,
48-
});
42+
useHealthcheck(tenantName);
4943

5044
const issuesCount = React.useMemo(
5145
() => countIssueTypes(leavesIssues),

src/containers/Tenant/TenantDrawerWrappers.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export function TenantDrawerWrapper({children, database}: TenantDrawerWrapperPro
4646

4747
const renderDrawerContent = React.useCallback(() => {
4848
return <Healthcheck tenantName={database} />;
49-
}, []);
49+
}, [database]);
5050

5151
return (
5252
<DrawerContextProvider>

0 commit comments

Comments
 (0)