Skip to content

Commit 6ed077e

Browse files
authored
fix(HealthcheckPreview): enable autorefresh for all clusters (#2512)
1 parent 2e0f203 commit 6ed077e

File tree

2 files changed

+2
-25
lines changed

2 files changed

+2
-25
lines changed

src/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckPreview.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
.ydb-healthcheck-preview {
22
$block: &;
33

4-
&__icon-wrapper {
5-
display: inline-flex;
6-
7-
color: var(--g-color-text-warning);
8-
}
9-
104
&__skeleton {
115
width: 100%;
126
height: 60px;

src/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckPreview.tsx

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import type {AlertProps} from '@gravity-ui/uikit';
2-
import {Alert, Button, Flex, Icon, Popover, Skeleton} from '@gravity-ui/uikit';
2+
import {Alert, Button, Flex, Icon, Skeleton} from '@gravity-ui/uikit';
33

44
import {ResponseError} from '../../../../../components/Errors/ResponseError';
5-
import {useClusterBaseInfo} from '../../../../../store/reducers/cluster/cluster';
65
import {healthcheckApi} from '../../../../../store/reducers/healthcheckInfo/healthcheckInfo';
76
import {SelfCheckResult} from '../../../../../types/api/healthcheck';
87
import {cn} from '../../../../../utils/cn';
@@ -12,8 +11,6 @@ import {useTenantQueryParams} from '../../../useTenantQueryParams';
1211

1312
import i18n from './i18n';
1413

15-
import CircleExclamationIcon from '@gravity-ui/icons/svgs/circle-exclamation.svg';
16-
1714
import './HealthcheckPreview.scss';
1815

1916
const b = cn('ydb-healthcheck-preview');
@@ -35,21 +32,16 @@ export function HealthcheckPreview(props: HealthcheckPreviewProps) {
3532
const {tenantName} = props;
3633
const [autoRefreshInterval] = useAutoRefreshInterval();
3734

38-
const {name} = useClusterBaseInfo();
39-
4035
const {handleShowHealthcheckChange} = useTenantQueryParams();
4136

42-
const healthcheckPreviewDisabled = name === 'ydb_ru';
43-
4437
const {
4538
currentData: data,
4639
isFetching,
4740
error,
4841
} = healthcheckApi.useGetHealthcheckInfoQuery(
4942
{database: tenantName},
5043
{
51-
//FIXME https://github.com/ydb-platform/ydb-embedded-ui/issues/1889
52-
pollingInterval: healthcheckPreviewDisabled ? undefined : autoRefreshInterval,
44+
pollingInterval: autoRefreshInterval,
5345
},
5446
);
5547

@@ -81,15 +73,6 @@ export function HealthcheckPreview(props: HealthcheckPreviewProps) {
8173
<Flex gap={1} alignItems="center">
8274
{HEALTHCHECK_RESULT_TO_TEXT[selfCheckResult]}
8375
{issuesText ? ` ${issuesText}` : ''}
84-
{healthcheckPreviewDisabled ? (
85-
<Popover
86-
content={'Healthcheck is disabled. Please update healthcheck manually.'}
87-
placement={['top']}
88-
className={b('icon-wrapper')}
89-
>
90-
{() => <Icon size={16} data={CircleExclamationIcon} />}
91-
</Popover>
92-
) : null}
9376
</Flex>
9477
{issuesCount && (
9578
<Button

0 commit comments

Comments
 (0)