1
1
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' ;
3
3
4
4
import { ResponseError } from '../../../../../components/Errors/ResponseError' ;
5
- import { useClusterBaseInfo } from '../../../../../store/reducers/cluster/cluster' ;
6
5
import { healthcheckApi } from '../../../../../store/reducers/healthcheckInfo/healthcheckInfo' ;
7
6
import { SelfCheckResult } from '../../../../../types/api/healthcheck' ;
8
7
import { cn } from '../../../../../utils/cn' ;
@@ -12,8 +11,6 @@ import {useTenantQueryParams} from '../../../useTenantQueryParams';
12
11
13
12
import i18n from './i18n' ;
14
13
15
- import CircleExclamationIcon from '@gravity-ui/icons/svgs/circle-exclamation.svg' ;
16
-
17
14
import './HealthcheckPreview.scss' ;
18
15
19
16
const b = cn ( 'ydb-healthcheck-preview' ) ;
@@ -35,21 +32,16 @@ export function HealthcheckPreview(props: HealthcheckPreviewProps) {
35
32
const { tenantName} = props ;
36
33
const [ autoRefreshInterval ] = useAutoRefreshInterval ( ) ;
37
34
38
- const { name} = useClusterBaseInfo ( ) ;
39
-
40
35
const { handleShowHealthcheckChange} = useTenantQueryParams ( ) ;
41
36
42
- const healthcheckPreviewDisabled = name === 'ydb_ru' ;
43
-
44
37
const {
45
38
currentData : data ,
46
39
isFetching,
47
40
error,
48
41
} = healthcheckApi . useGetHealthcheckInfoQuery (
49
42
{ database : tenantName } ,
50
43
{
51
- //FIXME https://github.com/ydb-platform/ydb-embedded-ui/issues/1889
52
- pollingInterval : healthcheckPreviewDisabled ? undefined : autoRefreshInterval ,
44
+ pollingInterval : autoRefreshInterval ,
53
45
} ,
54
46
) ;
55
47
@@ -81,15 +73,6 @@ export function HealthcheckPreview(props: HealthcheckPreviewProps) {
81
73
< Flex gap = { 1 } alignItems = "center" >
82
74
{ HEALTHCHECK_RESULT_TO_TEXT [ selfCheckResult ] }
83
75
{ 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 }
93
76
</ Flex >
94
77
{ issuesCount && (
95
78
< Button
0 commit comments