Skip to content

Commit 9f2036b

Browse files
author
ALENA NABOKA
committed
Merge branch 'main' into bugfix/RI-3432-fix-commands-order
2 parents 8fca0c5 + 9e0dfb5 commit 9f2036b

File tree

89 files changed

+913
-367
lines changed

Some content is hidden

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

89 files changed

+913
-367
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ jobs:
404404
docker-compose \
405405
-f tests/e2e/rte.docker-compose.yml \
406406
-f tests/e2e/docker.web.docker-compose.yml \
407-
up --abort-on-container-exit --force-recreate
407+
up --abort-on-container-exit --force-recreate --build
408408
no_output_timeout: 5m
409409
- when:
410410
condition:
@@ -675,7 +675,7 @@ jobs:
675675
- <<: *scan
676676
- <<: *validate
677677
docker:
678-
executor: linux-executor-dlc
678+
executor: linux-executor
679679
parameters:
680680
env:
681681
type: enum

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,10 @@ Check out the [release notes](https://docs.redis.com/latest/ri/release-notes/).
3939

4040
## Get started with RedisInsight
4141

42-
This repository includes the code for RedisInsight 2.0, Currently available in public preview. Check out the [blogpost](https://redis.com/blog/introducing-redisinsight-2/) announcing it.
43-
44-
The current GA version of RedisInsight is 1.11. You can install RedisInsight 2.0 along with the GA version.
42+
This repository includes the code for the GA version of RedisInsight 2.0. Check out the [blogpost](https://redis.com/blog/introducing-redisinsight-2/) announcing it.
4543

4644
### Installable
47-
Available to download for free from [here](https://redis.com/redis-enterprise/redis-insight/#insight-form).
45+
Available to download for free from [here](https://redis.com/redis-enterprise/redis-insight/#insight-form).
4846

4947
### Build
5048
Alternatively you can also build from source. See our wiki for instructions.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@
226226
"html-entities": "^2.3.2",
227227
"html-react-parser": "^1.2.4",
228228
"java-object-serialization": "^0.1.1",
229+
"jpickle": "^0.4.1",
229230
"jsonpath": "^1.1.1",
230231
"lodash": "^4.17.21",
231232
"php-serialize": "^4.0.2",

redisinsight/ui/src/components/advanced-settings/AdvancedSettings.tsx

Lines changed: 0 additions & 77 deletions
This file was deleted.

redisinsight/ui/src/components/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import InputFieldSentinel from './input-field-sentinel/InputFieldSentinel'
1010
import PageBreadcrumbs from './page-breadcrumbs/PageBreadcrumbs'
1111
import ContentEditable from './ContentEditable'
1212
import Config from './config'
13-
import AdvancedSettings from './advanced-settings/AdvancedSettings'
13+
import SettingItem from './settings-item/SettingItem'
1414
import { ConsentsSettings, ConsentsSettingsPopup, ConsentsPrivacy, ConsentsNotifications } from './consents-settings'
1515
import KeyboardShortcut from './keyboard-shortcut/KeyboardShortcut'
1616
import ShortcutsFlyout from './shortcuts-flyout/ShortcutsFlyout'
@@ -38,7 +38,7 @@ export {
3838
ConsentsSettingsPopup,
3939
ConsentsPrivacy,
4040
ConsentsNotifications,
41-
AdvancedSettings,
41+
SettingItem,
4242
KeyboardShortcut,
4343
MonitorConfig,
4444
PubSubConfig,

redisinsight/ui/src/components/query-card/QueryCard.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export interface Props {
3030
result: Maybe<CommandExecutionResult[]>
3131
activeMode: RunQueryMode
3232
mode: RunQueryMode
33+
emptyCommand: boolean
3334
createdAt?: Date
3435
loading?: boolean
3536
onQueryDelete: () => void
@@ -52,7 +53,8 @@ const QueryCard = (props: Props) => {
5253
onQueryOpen,
5354
onQueryDelete,
5455
onQueryReRun,
55-
loading
56+
loading,
57+
emptyCommand,
5658
} = props
5759

5860
const { visualizations = [] } = useSelector(appPluginsSelector)
@@ -146,6 +148,7 @@ const QueryCard = (props: Props) => {
146148
selectedValue={selectedViewValue}
147149
activeMode={activeMode}
148150
mode={mode}
151+
emptyCommand={emptyCommand}
149152
toggleOpen={toggleOpen}
150153
toggleFullScreen={toggleFullScreen}
151154
setSelectedValue={changeViewTypeSelected}

redisinsight/ui/src/components/query-card/QueryCardHeader/QueryCardHeader.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export interface Props {
4343
queryType: WBQueryType
4444
selectedValue: string
4545
loading?: boolean
46+
emptyCommand: boolean
4647
toggleOpen: () => void
4748
toggleFullScreen: () => void
4849
setSelectedValue: (type: WBQueryType, value: string) => void
@@ -63,6 +64,7 @@ const QueryCardHeader = (props: Props) => {
6364
mode,
6465
activeMode,
6566
selectedValue,
67+
emptyCommand,
6668
setSelectedValue,
6769
onQueryDelete,
6870
onQueryReRun,
@@ -302,7 +304,13 @@ const QueryCardHeader = (props: Props) => {
302304
content="Run again"
303305
position="left"
304306
>
305-
<EuiButtonIcon iconType="play" aria-label="Re-run command" data-testid="re-run-command" onClick={handleQueryReRun} />
307+
<EuiButtonIcon
308+
disabled={emptyCommand}
309+
iconType="play"
310+
aria-label="Re-run command"
311+
data-testid="re-run-command"
312+
onClick={handleQueryReRun}
313+
/>
306314
</EuiToolTip>
307315
</EuiFlexItem>
308316
)}
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
screen,
55
fireEvent,
66
} from 'uiSrc/utils/test-utils'
7-
import AdvancedSettingsItem from './AdvancedSettingsItem'
7+
import SettingItem from './SettingItem'
88

99
jest.mock('uiSrc/slices/user/user-settings', () => ({
1010
...jest.requireActual('uiSrc/slices/user/user-settings'),
@@ -28,24 +28,24 @@ const mockedProps = {
2828
label: 'Keys to Scan:',
2929
}
3030

31-
describe('AdvancedSettingsItem', () => {
31+
describe('SettingItem', () => {
3232
it('should render', () => {
33-
expect(render(<AdvancedSettingsItem {...mockedProps} />)).toBeTruthy()
33+
expect(render(<SettingItem {...mockedProps} />)).toBeTruthy()
3434
})
3535

3636
it('should render keys to scan value', () => {
37-
render(<AdvancedSettingsItem {...mockedProps} />)
37+
render(<SettingItem {...mockedProps} />)
3838
expect(screen.getByTestId(/keys-to-scan-value/)).toHaveTextContent('10000')
3939
})
4040

4141
it('should render keys to scan input after click value', () => {
42-
render(<AdvancedSettingsItem {...mockedProps} />)
42+
render(<SettingItem {...mockedProps} />)
4343
fireEvent.click(screen.getByTestId(/keys-to-scan-value/))
4444
expect(screen.getByTestId(/keys-to-scan-input/)).toBeInTheDocument()
4545
})
4646

4747
it('should change keys to scan input properly', () => {
48-
render(<AdvancedSettingsItem {...mockedProps} />)
48+
render(<SettingItem {...mockedProps} />)
4949
fireEvent.click(screen.getByTestId(/keys-to-scan-value/))
5050
fireEvent.change(
5151
screen.getByTestId(/keys-to-scan-input/),
@@ -57,7 +57,7 @@ describe('AdvancedSettingsItem', () => {
5757
})
5858

5959
it('should properly apply changes', () => {
60-
render(<AdvancedSettingsItem {...mockedProps} />)
60+
render(<SettingItem {...mockedProps} />)
6161

6262
fireEvent.click(screen.getByTestId(/keys-to-scan-value/))
6363
fireEvent.change(
@@ -71,7 +71,7 @@ describe('AdvancedSettingsItem', () => {
7171
})
7272

7373
it('should properly decline changes', async () => {
74-
render(<AdvancedSettingsItem {...mockedProps} />)
74+
render(<SettingItem {...mockedProps} />)
7575
fireEvent.click(screen.getByTestId(/keys-to-scan-value/))
7676

7777
fireEvent.change(

redisinsight/ui/src/components/advanced-settings/AdvancedSettingsItem.tsx renamed to redisinsight/ui/src/components/settings-item/SettingItem.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export interface Props {
2525
validation: (value: string) => string,
2626
}
2727

28-
const AdvancedSettingsItem = (props: Props) => {
28+
const SettingItem = (props: Props) => {
2929
const { initValue, title, summary, testid, placeholder, label, onApply, validation = (val: string) => val } = props
3030

3131
const [value, setValue] = useState<string>(initValue)
@@ -117,4 +117,4 @@ const AdvancedSettingsItem = (props: Props) => {
117117
)
118118
}
119119

120-
export default AdvancedSettingsItem
120+
export default SettingItem
File renamed without changes.

0 commit comments

Comments
 (0)