Skip to content

Commit 9b9c6ce

Browse files
committed
Merge branch 'main' into feature/RI-2932_Consumer_Groups
# Conflicts: # redisinsight/ui/src/pages/browser/components/stream-details/StreamDetailsWrapper.tsx
2 parents 90c5e92 + d589975 commit 9b9c6ce

File tree

41 files changed

+330
-283
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+330
-283
lines changed

redisinsight/about-panel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const ICON_PATH = app.isPackaged
77

88
export default {
99
applicationName: 'RedisInsight-v2',
10-
applicationVersion: app.getVersion() || '2.0',
10+
applicationVersion: app.getVersion() || '2.2.0',
1111
copyright: `Copyright © ${new Date().getFullYear()} Redis Ltd.`,
1212
iconPath: ICON_PATH,
1313
};

redisinsight/api/src/modules/instances/dto/database-instance.dto.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ export class ConnectionOptionsDto extends EndpointDto {
212212
example: 0,
213213
})
214214
@IsInt()
215-
@Max(15)
216215
@Min(0)
217216
@Type(() => Number)
218217
@IsOptional()
@@ -403,15 +402,13 @@ export class AddDatabaseInstanceDto extends ConnectionOptionsDto {
403402

404403
export class ConnectToRedisDatabaseIndexDto {
405404
@ApiPropertyOptional({
406-
description: 'Databases index. Redis databases are numbered from 0 to 15.',
405+
description: 'Databases index.',
407406
type: Number,
408407
minimum: 0,
409-
maximum: 15,
410408
default: 0,
411409
})
412410
@IsInt()
413411
@Min(0)
414-
@Max(15)
415412
@Type(() => Number)
416413
@IsNotEmpty()
417414
dbNumber?: number;

redisinsight/api/src/modules/instances/dto/redis-sentinel.dto.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ export class AddSentinelMasterDto {
6464
example: 0,
6565
})
6666
@IsInt()
67-
@Max(15)
6867
@Min(0)
6968
@Type(() => Number)
7069
@IsOptional()

redisinsight/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "redisinsight",
33
"productName": "RedisInsight",
44
"private": true,
5-
"version": "2.0.7",
5+
"version": "2.4.0",
66
"description": "RedisInsight",
77
"main": "./main.prod.js",
88
"author": {

redisinsight/ui/src/components/input-field-sentinel/InputFieldSentinel.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { omit } from 'lodash'
33
import React, { useState } from 'react'
44
import cx from 'classnames'
55
import { useDebouncedEffect } from 'uiSrc/services'
6-
import { validateDatabaseNumber } from 'uiSrc/utils'
6+
import { validateNumber } from 'uiSrc/utils'
77

88
import styles from './styles.module.scss'
99

@@ -77,7 +77,7 @@ const InputFieldSentinel = (props: Props) => {
7777
compressed
7878
type="text"
7979
value={value}
80-
onChange={(e) => handleChange(validateDatabaseNumber(e.target?.value))}
80+
onChange={(e) => handleChange(validateNumber(e.target?.value))}
8181
data-testid="sentinel-input-number"
8282
/>
8383
)}

redisinsight/ui/src/components/main-router/constants/redisStackRoutes.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {
33
BrowserPage, InstancePage,
44
} from 'uiSrc/pages'
55
import WorkbenchPage from 'uiSrc/pages/workbench'
6+
import SlowLogPage from 'uiSrc/pages/slowLog'
67
import EditConnection from 'uiSrc/pages/redisStack/components/edit-connection'
78
import COMMON_ROUTES from './commonRoutes'
89

@@ -19,6 +20,12 @@ const INSTANCE_ROUTES: IRoute[] = [
1920
path: Pages.workbench(':instanceId'),
2021
component: WorkbenchPage,
2122
},
23+
{
24+
pageName: PageNames.slowLog,
25+
protected: true,
26+
path: Pages.slowLog(':instanceId'),
27+
component: SlowLogPage,
28+
},
2229
]
2330

2431
const ROUTES: IRoute[] = [

redisinsight/ui/src/components/range-filter/RangeFilter.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,15 +118,15 @@ const RangeFilter = (props: Props) => {
118118
}, [end])
119119

120120
useEffect(() => {
121-
if (max && prevValue && prevValue.max !== max && end === prevValue.max) {
121+
if (prevValue.max !== max && end === prevValue.max) {
122122
handleUpdateRangeMax(max)
123123
}
124-
if (min && prevValue && prevValue.min !== min && start === prevValue.min) {
124+
if (prevValue.min !== min && start === prevValue.min) {
125125
handleUpdateRangeMin(min)
126126
}
127127
}, [prevValue])
128128

129-
if (start === 0 && end === 0) {
129+
if (start === 0 && max !== 0 && end === 0 && min !== 0) {
130130
return (
131131
<div data-testid="mock-blank-range" className={styles.rangeWrapper}>
132132
<div className={cx(styles.sliderTrack, styles.mockRange)} />

redisinsight/ui/src/constants/durationUnits.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const DURATION_UNITS: EuiSuperSelectOption<DurationUnits>[] = [
1818

1919
export const MINUS_ONE = -1
2020
export const DEFAULT_SLOWLOG_MAX_LEN = 128
21-
export const DEFAULT_SLOWLOG_SLOWER_THAN = 10000
21+
export const DEFAULT_SLOWLOG_SLOWER_THAN = 10_000
2222
export const DEFAULT_SLOWLOG_DURATION_UNIT = DurationUnits.microSeconds
2323

2424
export default DURATION_UNITS

redisinsight/ui/src/packages/redisgraph/src/graphd3.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,10 @@ function GraphD3(_selector: HTMLDivElement, _options: any): IGraphD3 {
816816
if (typeof options.onNodeClick === 'function') {
817817
options.onNodeClick(this, d, event)
818818
}
819+
820+
if (info) {
821+
updateInfo(d)
822+
}
819823
})
820824
.on('dblclick', function onNodeDoubleClick(event, d) {
821825
stickNode(this, event, d)
@@ -843,10 +847,6 @@ function GraphD3(_selector: HTMLDivElement, _options: any): IGraphD3 {
843847
.call(zoom.translateTo as any, d.x, d.y), 10)
844848
})
845849
.on('mouseenter', function onNodeMouseEnter(event, d) {
846-
if (info) {
847-
updateInfo(d)
848-
}
849-
850850
if (typeof options.onNodeMouseEnter === 'function') {
851851
options.onNodeMouseEnter(this, d, event)
852852
}
@@ -893,6 +893,10 @@ function GraphD3(_selector: HTMLDivElement, _options: any): IGraphD3 {
893893
if (typeof options.onNodeInfoClick === 'function') {
894894
options.onNodeInfoClick(this, d, event)
895895
}
896+
897+
if (info) {
898+
updateInfo(d)
899+
}
896900
})
897901

898902
g.append('rect')
@@ -985,7 +989,7 @@ function GraphD3(_selector: HTMLDivElement, _options: any): IGraphD3 {
985989
options.onRelationshipDoubleClick(this, d, event)
986990
}
987991
})
988-
.on('mouseenter', (event, d) => {
992+
.on('click', (event, d) => {
989993
if (info) {
990994
updateInfo(d)
991995
}

redisinsight/ui/src/pages/browser/components/hash-details/HashDetails.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,8 @@ const HashDetails = (props: Props) => {
259259
data-testid={`edit-hash-button-${field}`}
260260
/>
261261
<PopoverDelete
262-
header={createDeleteFieldHeader(key)}
263-
text={createDeleteFieldMessage(field)}
262+
header={createDeleteFieldHeader(field)}
263+
text={createDeleteFieldMessage(key)}
264264
item={field}
265265
suffix={suffix}
266266
deleting={deleting}

0 commit comments

Comments
 (0)