Skip to content

Commit d19c765

Browse files
Merge pull request #3664 from RedisInsight/bugfix/release-small-fixes
Bugfix/release small fixes
2 parents ea8c337 + 94ba2e6 commit d19c765

File tree

5 files changed

+16
-9
lines changed

5 files changed

+16
-9
lines changed

redisinsight/ui/src/pages/rdi/statistics/StatisticsPage.spec.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ describe('StatisticsPage', () => {
161161
})
162162
})
163163

164-
it('should call proper telemetry event when refresh is clicked for data streams section', () => {
164+
xit('should call proper telemetry event when refresh is clicked for data streams section', () => {
165165
render(<StatisticsPage />)
166166

167167
fireEvent.click(screen.getByTestId('data-streams-refresh-btn'))
@@ -175,7 +175,7 @@ describe('StatisticsPage', () => {
175175
})
176176
})
177177

178-
it('should call proper telemetry event when refresh is clicked for clients section', () => {
178+
xit('should call proper telemetry event when refresh is clicked for clients section', () => {
179179
render(<StatisticsPage />)
180180

181181
fireEvent.click(screen.getByTestId('clients-refresh-btn'))
@@ -228,7 +228,7 @@ describe('StatisticsPage', () => {
228228
})
229229
})
230230

231-
it('should call proper telemetry event when auto refresh is enabled for data streams section', async () => {
231+
xit('should call proper telemetry event when auto refresh is enabled for data streams section', async () => {
232232
render(<StatisticsPage />)
233233

234234
const testid = 'data-streams'
@@ -247,7 +247,7 @@ describe('StatisticsPage', () => {
247247
})
248248
})
249249

250-
it('should call proper telemetry event when auto refresh is disabled for data streams section', async () => {
250+
xit('should call proper telemetry event when auto refresh is disabled for data streams section', async () => {
251251
render(<StatisticsPage />)
252252

253253
const testid = 'data-streams'
@@ -267,7 +267,7 @@ describe('StatisticsPage', () => {
267267
})
268268
})
269269

270-
it('should call proper telemetry event when auto refresh is enabled for clients section', async () => {
270+
xit('should call proper telemetry event when auto refresh is enabled for clients section', async () => {
271271
render(<StatisticsPage />)
272272

273273
const testid = 'clients'
@@ -286,7 +286,7 @@ describe('StatisticsPage', () => {
286286
})
287287
})
288288

289-
it('should call proper telemetry event when auto refresh is disabled for clients section', async () => {
289+
xit('should call proper telemetry event when auto refresh is disabled for clients section', async () => {
290290
render(<StatisticsPage />)
291291

292292
const testid = 'clients'

redisinsight/ui/src/pages/rdi/statistics/clients/Clients.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ const Clients = ({ data, loading, onRefresh, onRefreshClicked, onChangeAutoRefre
7070
<Accordion
7171
id="clients"
7272
title="Clients"
73+
hideAutoRefresh
7374
loading={loading}
7475
onRefresh={onRefresh}
7576
onRefreshClicked={onRefreshClicked}

redisinsight/ui/src/pages/rdi/statistics/data-streams/DataStreams.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ const DataStreams = ({ data, loading, onRefresh, onRefreshClicked, onChangeAutoR
101101
<Accordion
102102
id="data-streams"
103103
title="Data streams overview"
104+
hideAutoRefresh
104105
loading={loading}
105106
onRefresh={onRefresh}
106107
onRefreshClicked={onRefreshClicked}

redisinsight/ui/src/pages/rdi/statistics/target-connections/TargetConnections.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { EuiBasicTableColumn, EuiIcon, EuiToolTip } from '@elastic/eui'
22
import React from 'react'
33

4-
import { IConnections } from 'uiSrc/slices/interfaces'
4+
import { IConnections, StatisticsConnectionStatus } from 'uiSrc/slices/interfaces'
55
import { formatLongName } from 'uiSrc/utils'
66
import Accordion from '../components/accordion'
77
import Panel from '../components/panel'
@@ -22,7 +22,7 @@ const columns: EuiBasicTableColumn<ConnectionData>[] = [
2222
field: 'status',
2323
width: '80px',
2424
render: (status: string) =>
25-
(status === 'good' ? (
25+
(status === StatisticsConnectionStatus.connected ? (
2626
<EuiIcon type="dot" color="var(--buttonSuccessColor)" />
2727
) : (
2828
<EuiIcon type="alert" color="danger" />

redisinsight/ui/src/slices/interfaces/rdi.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,16 @@ export interface IRdiPipelineStrategies {
5151
data: IRdiPipelineStrategy[]
5252
}
5353

54+
export enum StatisticsConnectionStatus {
55+
notYetUsed = 'not yet used',
56+
connected = 'connected'
57+
}
58+
5459
export interface IConnections {
5560
[key: string]: {
5661
host: string
5762
port: number
58-
status: string
63+
status: StatisticsConnectionStatus
5964
type: string
6065
database: string
6166
user: string

0 commit comments

Comments
 (0)