Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
390 commits
Select commit Hold shift + click to select a range
16eb76f
#RI-3590 - fix pr comments
egor-zalenski Oct 5, 2022
9135a73
Merge pull request #1241 from RedisInsight/fe/feature/RI-3590_Summary…
egor-zalenski Oct 5, 2022
6e99975
Merge remote-tracking branch 'origin/feature/RI-3139_speed_up_keys_li…
egor-zalenski Oct 5, 2022
ba09353
#RI-3605 - remove clone db button for redis stack
rsergeenko Oct 5, 2022
2dcd398
#RI-3606 - fix color for anchor button
rsergeenko Oct 5, 2022
5496240
Merge pull request #1239 from RedisInsight/e2e/feature/RI-3482-summar…
vlad-dargel Oct 5, 2022
f62153c
Merge branch 'be/feature/RI-2586-database-analysis' into feature/RI-2…
vlad-dargel Oct 5, 2022
ce271e5
fix component tests
rsergeenko Oct 5, 2022
93876fb
#RI-3519-add top keys table
AmirAllayarovSofteq Oct 5, 2022
3d3a02a
fix components tests
rsergeenko Oct 5, 2022
e400972
#RI-3519-rename components
AmirAllayarovSofteq Oct 5, 2022
235515d
#RI-3519-fix test
AmirAllayarovSofteq Oct 5, 2022
5d9aa50
#RI-3590 - fix don't show expiration groups when total keys = 0
egor-zalenski Oct 5, 2022
3b75680
Merge pull request #1248 from RedisInsight/fe/feature/RI-3590_Summary…
egor-zalenski Oct 5, 2022
2155b1e
#RI-3629-new analysis btn name (#1249)
AmirAllayarovSofteq Oct 5, 2022
7e4a268
fix progress test to work with clusters
Oct 4, 2022
a71dfde
UTests + fixes
Oct 5, 2022
83e1c7a
#RI-3621-add worbench link
AmirAllayarovSofteq Oct 5, 2022
5c74b5b
Fix ttl msec -> sec, fix expire label, add nulls, fix ITests, add UTests
Oct 5, 2022
6a60036
Merge pull request #1250 from RedisInsight/be/feature/RI-2586-databas…
AmirAllayarovSofteq Oct 5, 2022
13ea33c
add tests for summary per expiration time
vlad-dargel Oct 5, 2022
12efd88
fix
vlad-dargel Oct 5, 2022
d8b1d77
final UTests
Oct 5, 2022
ce1b822
add e2e for reports history
Oct 5, 2022
497f2b6
Merge branch 'feature/RI-2586_database_analysis' of https://github.co…
AmirAllayarovSofteq Oct 6, 2022
db31e36
#RI-3633 - The largest value in graph is more than largest y-axis point
egor-zalenski Oct 6, 2022
7863bdb
#RI-3621-update styles
AmirAllayarovSofteq Oct 6, 2022
50bd944
Merge pull request #1238 from RedisInsight/fe/feature/RI-3620_add-unk…
rsergeenko Oct 6, 2022
e4f1719
Merge branch 'feature/RI-2586_database_analysis' into e2e/feature/RI-…
vlad-dargel Oct 6, 2022
3d12044
updates after bug fix
vlad-dargel Oct 6, 2022
3368d3d
Merge branch 'main' into feature/RI-2586_database_analysis
vlad-dargel Oct 6, 2022
69e4991
Merge branch 'feature/RI-2586_database_analysis' into fe/bugfix/RI-36…
egor-zalenski Oct 6, 2022
ebfd905
#RI-3633 - fix pr comments
egor-zalenski Oct 6, 2022
487f2eb
#RI-3633 - fix pr comments
egor-zalenski Oct 6, 2022
be9ba69
Merge pull request #1254 from RedisInsight/fe/bugfix/RI-3633_Y_value_…
egor-zalenski Oct 6, 2022
d959664
Merge pull request #1251 from RedisInsight/e2e/feature/RI-3495-summar…
vlad-dargel Oct 6, 2022
a003f2a
#RI-3630 - add tab context for analytics page
rsergeenko Oct 6, 2022
6dd7714
#RI-3630 - fix routing
rsergeenko Oct 6, 2022
8eeb722
Merge pull request #1252 from RedisInsight/be/feature/RI-2586-databas…
Oct 6, 2022
28f9215
#RI-3595 - Speed up the initial load of the keys
egor-zalenski Oct 6, 2022
c7c50fa
return null instead of undefined
Oct 6, 2022
46d960c
fix logic: return null in case of error only.
Oct 6, 2022
77f72f0
Merge pull request #1257 from RedisInsight/be/feature/RI-3139_speed_u…
Oct 6, 2022
698268a
#RI-3634 - Small value in bytes is not centred in tooltip
egor-zalenski Oct 6, 2022
64135c4
Merge remote-tracking branch 'origin/feature/RI-3139_speed_up_keys_li…
egor-zalenski Oct 6, 2022
e60cbf8
#RI-3630 - fix analytics page routing
rsergeenko Oct 6, 2022
de68918
remove dlc from the e2e-tests
Oct 6, 2022
cad0bff
Merge pull request #1258 from RedisInsight/fe/bugfix/RI-3634_Change_t…
egor-zalenski Oct 6, 2022
6d44405
Merge pull request #1256 from RedisInsight/fe/bugfix/RI-3630_tab-context
rsergeenko Oct 6, 2022
c6a7da4
#RI-3634 - Small value in bytes is not centred in tooltip
egor-zalenski Oct 6, 2022
9b41f99
#RI-3634 - Small value in bytes is not centred in tooltip
egor-zalenski Oct 6, 2022
a2d7f7e
fix expire type
Oct 6, 2022
e40f468
Merge pull request #1260 from RedisInsight/be/bugfix/RI-2586_fix_expi…
Oct 6, 2022
333bc2e
Merge pull request #1259 from RedisInsight/fe/bugfix/RI-3634_Change_t…
egor-zalenski Oct 6, 2022
f1078f0
#RI-3519-resolve comments
AmirAllayarovSofteq Oct 6, 2022
4dd4d6a
Merge branch 'feature/RI-2586_database_analysis' of https://github.co…
AmirAllayarovSofteq Oct 6, 2022
c3376d3
resolve comments
AmirAllayarovSofteq Oct 6, 2022
5666b34
Merge pull request #1246 from RedisInsight/fe/feature/RI-3519_top-keys
AmirAllayarovSofteq Oct 6, 2022
7a52f70
fix tooltip triangle
rsergeenko Oct 6, 2022
a6a6e38
#RI-3519-remove unused code
AmirAllayarovSofteq Oct 6, 2022
6d4bc5d
#RI-3519-fix
AmirAllayarovSofteq Oct 6, 2022
bd1a71a
#RI-3519-change breakpoint
AmirAllayarovSofteq Oct 6, 2022
4e21d25
#RI-3519-fix test
AmirAllayarovSofteq Oct 6, 2022
f6471be
Merge branch 'feature/RI-2586_database_analysis' into e2e/feature/RI-…
Oct 6, 2022
a5c6d9d
add e2e for reports history
Oct 6, 2022
ea5a9e7
debug
Oct 6, 2022
bcfa7ae
Merge branch 'main' into e2e/feature/RI-2904-enablement-area
Oct 7, 2022
8e6bf5c
fix file path
Oct 7, 2022
a79e9a6
Merge branch 'main' into e2e/feature/RI-2904-enablement-area
Oct 7, 2022
93fe833
#RI-3624 - fix heights for browser left panel
rsergeenko Oct 7, 2022
54c65cc
#RI-3649-fix tooltip content
AmirAllayarovSofteq Oct 7, 2022
a5c1f73
#RI-3644-fix data undefined
AmirAllayarovSofteq Oct 7, 2022
7a65833
#RI-3643 - Graph line is displayed in the middle of graph when all ke…
egor-zalenski Oct 7, 2022
9500174
Merge pull request #1267 from RedisInsight/fe/feature/RI-3643_Area_ch…
egor-zalenski Oct 7, 2022
74166cd
testing of temporary file
vlad-dargel Oct 7, 2022
45b31b5
add waiter
vlad-dargel Oct 7, 2022
92e85fb
#RI-3644-add encrypted data message
AmirAllayarovSofteq Oct 9, 2022
c7950d6
comment files removing
Oct 10, 2022
3354081
Merge pull request #1157 from RedisInsight/e2e/feature/RI-2904-enable…
AlenaSY Oct 10, 2022
970f6dc
share tmp folder across docker containers. fix test condition gt -> lt
Oct 10, 2022
9563329
updates
vlad-dargel Oct 10, 2022
500d466
delete 'only'
vlad-dargel Oct 10, 2022
06797a4
return parallelizm
vlad-dargel Oct 10, 2022
6c29ed0
Merge pull request #1269 from RedisInsight/e2e/bugfix/RI-3582-profile…
vlad-dargel Oct 10, 2022
3a42763
Merge branch 'feature/RI-2586_database_analysis' into e2e/feature/RI-…
Oct 11, 2022
0022a44
add additional checks for history test stability
Oct 11, 2022
028a2da
Merge branch 'main' into feature/RI-2586_database_analysis
Oct 11, 2022
11b0921
remove logs and config.yml changes
Oct 11, 2022
1545827
Merge pull request #1253 from RedisInsight/e2e/feature/RI-3628_history
AlenaSY Oct 11, 2022
8b006fb
critical path tests refactoring
vlad-dargel Oct 11, 2022
740e9a5
#RI-3519-update styles
AmirAllayarovSofteq Oct 12, 2022
0ae6f90
RI-3663-fix ts length
AmirAllayarovSofteq Oct 12, 2022
6735f6a
Merge pull request #1261 from RedisInsight/fe/bugfix/RI-3519_styles
AmirAllayarovSofteq Oct 12, 2022
e4bfb6d
Merge branch 'feature/RI-2586_database_analysis' of https://github.co…
Oct 12, 2022
2f56506
#RI-2664 - add parameters for auto-execute button
rsergeenko Oct 12, 2022
df11913
return desktop env to tests, not to fuxture
vlad-dargel Oct 12, 2022
53ecb6f
eslint upd
vlad-dargel Oct 12, 2022
7a75c97
#RI-2664 - fix pr comments
rsergeenko Oct 12, 2022
daa82c2
Merge pull request #1273 from RedisInsight/fe/feature/RI-2664_params-…
rsergeenko Oct 12, 2022
fdf4be1
#RI-3595 - Speed up the initial load of the keys
egor-zalenski Oct 12, 2022
be3dc51
#RI-3595 - fix pr comments
egor-zalenski Oct 12, 2022
ffeab32
#RI-3595 - rename endpoint keys/get-infos to keys/get-metadata
egor-zalenski Oct 12, 2022
c2ee706
#RI-3649-add tooltip title
AmirAllayarovSofteq Oct 12, 2022
8da0330
#RI-3595 - rename endpoint keys/get-infos to keys/get-metadata
egor-zalenski Oct 12, 2022
cba59c4
Merge pull request #1243 from RedisInsight/fe/bugfix/RI-3605_clone-btn
AlenaSY Oct 12, 2022
c120cad
RI-3530 regression tests refactoring
vlad-dargel Oct 12, 2022
b7d4898
RI-3530 smoke tests refactoring
vlad-dargel Oct 12, 2022
82ff675
Merge pull request #1276 from RedisInsight/fe/feature/RI-3595_Speed_u…
egor-zalenski Oct 13, 2022
25dc827
updates by comments
vlad-dargel Oct 13, 2022
416d8b8
upd
vlad-dargel Oct 13, 2022
7a0c39d
#RI-3621-update table styles
AmirAllayarovSofteq Oct 13, 2022
2a9aa49
#RI-3621-add sun-serif
AmirAllayarovSofteq Oct 13, 2022
b3b6086
#RI-3621-add sun-serif
AmirAllayarovSofteq Oct 13, 2022
64fb2a1
Merge pull request #1278 from RedisInsight/e2e/feature/RI-3530-reduce…
vlad-dargel Oct 13, 2022
f7f5f2c
fixes
vlad-dargel Oct 13, 2022
415236d
fix for failed test
vlad-dargel Oct 13, 2022
4f0918f
Merge pull request #1271 from RedisInsight/e2e/feature/RI-3530-reduce…
vlad-dargel Oct 13, 2022
569e8e1
add e2e for top keys
Oct 13, 2022
2453a01
Merge pull request #1279 from RedisInsight/fe/bugfix/RI-3621_table_st…
AmirAllayarovSofteq Oct 14, 2022
b8e47ff
#RI-3612-initial commit
AmirAllayarovSofteq Oct 14, 2022
d49ad2d
Merge branch 'feature/RI-2586_database_analysis' of https://github.co…
Oct 14, 2022
e3c106c
deleted wait into deleteKeyByName and updated typeText with replace p…
vlad-dargel Oct 14, 2022
95b88ed
update for hash test to increase speed
vlad-dargel Oct 14, 2022
8f50440
small fix
vlad-dargel Oct 14, 2022
68e5c68
* #RI-3672 - 400 error and key not displayed when searching for key
egor-zalenski Oct 14, 2022
fa8c2eb
* #RI-3672 - fix tests
egor-zalenski Oct 14, 2022
8483ed9
Merge pull request #1282 from RedisInsight/fe/bugfix/RI-3595_Speed_up…
egor-zalenski Oct 14, 2022
42549c2
replacement of 'visibility' by 'exists'
vlad-dargel Oct 14, 2022
4084f26
Merge pull request #1272 from RedisInsight/be/bugfix/RI-3663_ts_length
AlenaSY Oct 14, 2022
1b0b62d
Merge pull request #1244 from RedisInsight/fe/bugfix/RI-3606_anchor-p…
AlenaSY Oct 17, 2022
0316ddf
Merge pull request #1266 from RedisInsight/fe/bugfix/RI-3624
AlenaSY Oct 17, 2022
30078bf
fix for failed test
vlad-dargel Oct 17, 2022
f1495b8
Merge pull request #1277 from RedisInsight/e2e/feature/RI-3530-reduce…
vlad-dargel Oct 17, 2022
6d4c046
Merge branch 'main' into e2e/feature/RI-3530-investigate-testcafe-pre…
vlad-dargel Oct 17, 2022
db0b42c
#RI-3612-add inifinity score in zset
AmirAllayarovSofteq Oct 17, 2022
b6bbf9c
Merge branch 'feature/RI-2586_database_analysis' of https://github.co…
Oct 17, 2022
be969b7
Merge branch 'feature/RI-2586_database_analysis' into e2e/feature/RI-…
Oct 17, 2022
0f2012f
added line breaks after t.
vlad-dargel Oct 17, 2022
2f4cdac
memory analysis tests fixes
Oct 18, 2022
aa2675c
fix regexp for bulk delete
Oct 18, 2022
3937bf1
comments fixes
Oct 18, 2022
8f46adb
fix comment
Oct 18, 2022
ff42f88
Merge pull request #1281 from RedisInsight/e2e/feature/RI-3638_big-keys
AlenaSY Oct 18, 2022
546b577
Merge pull request #1289 from RedisInsight/e2e/bugfix-bulk-delete
AlenaSY Oct 18, 2022
4ad1640
#RI-3561 - Handle big output in Workbench
egor-zalenski Oct 18, 2022
e5f86f4
#RI-3650 - 431 status error on get big key
egor-zalenski Oct 18, 2022
8375819
#RI-3650 - fix ITests
egor-zalenski Oct 18, 2022
49a182e
#RI-3650 - [FE] 431 status error on get big key
egor-zalenski Oct 18, 2022
7250c03
#RI-3656-add plugins to static server
AmirAllayarovSofteq Oct 18, 2022
ab68457
#RI-3650 - fix pr comment
egor-zalenski Oct 18, 2022
c0a0eee
Merge pull request #1291 from RedisInsight/be/bugfix/RI-3650_status_e…
egor-zalenski Oct 18, 2022
e4fe25b
#RI-3558 - add extrapolation for memory analysis
rsergeenko Oct 19, 2022
4446be6
RI-3612-update test
AmirAllayarovSofteq Oct 19, 2022
ec9d6a5
#RI-3612-rename vszet validator
AmirAllayarovSofteq Oct 19, 2022
6d27e46
Merge pull request #1292 from RedisInsight/fe/bugfix/RI-3650_status_e…
egor-zalenski Oct 19, 2022
00cd57c
#RI-3561 - fix pr comments
egor-zalenski Oct 19, 2022
a85d36e
Merge pull request #1296 from RedisInsight/bugfix/RI-3650_status_erro…
AlenaSY Oct 19, 2022
0ced4e5
#RI-3659 - hide chart labels for medium screens
rsergeenko Oct 19, 2022
b0dd0d5
Merge pull request #1297 from RedisInsight/fe/feature/RI-3659_hide-la…
rsergeenko Oct 19, 2022
33dd9df
Merge branch 'feature/RI-2586_database_analysis' into fe/feature/RI-3…
rsergeenko Oct 19, 2022
51a2a04
#RI-3558 - fix pr comments
rsergeenko Oct 19, 2022
e432e98
Merge pull request #1286 from RedisInsight/e2e/feature/RI-3530-invest…
vlad-dargel Oct 19, 2022
6df13a5
#RI-3561 - fix pr comments
egor-zalenski Oct 19, 2022
4fad02f
Merge pull request #1290 from RedisInsight/fe/feature/RI-3561_Virtual…
egor-zalenski Oct 19, 2022
f624c31
#RI-3687 change EventEmitterModule initialization module
Oct 19, 2022
eee9554
Merge branch 'main' into feature/RI-2586_database_analysis
vlad-dargel Oct 19, 2022
ffaa861
* #RI-3673 - Tree view without metadata
egor-zalenski Oct 19, 2022
de2b7db
#RI-3679 - fix negative pipeline param
rsergeenko Oct 19, 2022
9c3fea1
Merge pull request #1301 from RedisInsight/fe/feature/RI-3679_fix-neg…
rsergeenko Oct 19, 2022
0eab61d
* #RI-3673 - Tree view without metadata
egor-zalenski Oct 19, 2022
74aec79
#RI-3656-update static server for custom plugins
AmirAllayarovSofteq Oct 19, 2022
b38a31a
Merge pull request #1285 from RedisInsight/bugfix/RI-3612_infinity_sc…
AlenaSY Oct 19, 2022
d55fd59
* #RI-3673 - fix tests
egor-zalenski Oct 19, 2022
8d4f72e
fix for analysis history test
vlad-dargel Oct 19, 2022
566b841
Merge pull request #1302 from RedisInsight/fe/bugfix/RI-3673_Tree_vie…
egor-zalenski Oct 19, 2022
3d7fc6e
upd
vlad-dargel Oct 19, 2022
719c21b
Merge pull request #1303 from RedisInsight/e2e/bugfix/analysis-histor…
vlad-dargel Oct 19, 2022
096db2b
Merge pull request #1255 from RedisInsight/feature/RI-2586_database_a…
vlad-dargel Oct 19, 2022
82dd01a
Merge branch 'main' into feature/RI-2664_params-redis-auto-btn
rsergeenko Oct 19, 2022
9540cd3
Merge branch 'main' into feature/RI-3139_speed_up_keys_list
egor-zalenski Oct 19, 2022
34c918c
Merge branch 'main' into fe/feature/RI-3558_extrapolate-results
rsergeenko Oct 20, 2022
01eb649
Merge branch 'main' into bugfix/RI-3687_fix_telemetry_issue
Oct 20, 2022
2a97573
Merge pull request #1274 from RedisInsight/feature/RI-2664_params-red…
AlenaSY Oct 20, 2022
da691cb
Merge pull request #1298 from RedisInsight/bugfix/RI-3687_fix_telemet…
AlenaSY Oct 20, 2022
a90cb4d
#RI-3668 - change tab name & events prefix
rsergeenko Oct 20, 2022
9c45476
#RI-3688 - fix widths for sections
rsergeenko Oct 20, 2022
4be9ca1
Merge pull request #1306 from RedisInsight/fe/bugfix/RI-3688-fix_width
rsergeenko Oct 20, 2022
1513d57
Merge pull request #1295 from RedisInsight/fe/feature/RI-3558_extrapo…
vlad-dargel Oct 20, 2022
35248aa
#RI-3690 - No results displayed for full mode
egor-zalenski Oct 20, 2022
0975e0e
Merge pull request #1307 from RedisInsight/fe/feature/bugfixing
egor-zalenski Oct 20, 2022
3d958bb
#RI-3689 - Key list refreshed when refreshing only key details
egor-zalenski Oct 20, 2022
d7add5e
Merge pull request #1293 from RedisInsight/bugfix/RI-3656_docker_plugins
AlenaSY Oct 20, 2022
2cf1c0e
Merge branch 'main' into e2e/bugfix/error-on-ft-search
vlad-dargel Oct 20, 2022
e5f274a
#RI-3668 - add test for telemetry
rsergeenko Oct 20, 2022
f625ed0
#RI-3697 - add telemetry parameters to extrapolation controls
rsergeenko Oct 20, 2022
84a09da
#RI-3631-update loading behaviour
AmirAllayarovSofteq Oct 20, 2022
80673c9
#RI-3689 - Key list refreshed when refreshing only key details
egor-zalenski Oct 20, 2022
2f3b9a8
#RI-3693 - fix 2 scrolls
rsergeenko Oct 21, 2022
b3fff33
Merge pull request #1309 from RedisInsight/fe/bugfix/RI-3689_Key_list…
egor-zalenski Oct 21, 2022
9dcb4c6
Merge pull request #1311 from RedisInsight/fe/bugfix/RI-3693
rsergeenko Oct 21, 2022
18cf0ad
decrease allocation memory for RE database
Oct 21, 2022
9936d50
Merge pull request #1280 from RedisInsight/feature/RI-3139_speed_up_k…
vlad-dargel Oct 21, 2022
683b91d
Merge branch 'main' of https://github.com/RedisInsight/RedisInsight i…
AmirAllayarovSofteq Oct 21, 2022
a7c4178
Merge pull request #1312 from RedisInsight/e2e/bugfix/fix_re_database…
vlad-dargel Oct 21, 2022
ab55da4
Merge branch 'main' into e2e/bugfix/error-on-ft-search
vlad-dargel Oct 21, 2022
cf02b01
remove .only
vlad-dargel Oct 21, 2022
6f5914f
upd
vlad-dargel Oct 21, 2022
cc6e97d
#RI-3705 - fix height of keys header
rsergeenko Oct 21, 2022
1fce5a1
return skip to client list tests
vlad-dargel Oct 21, 2022
f42f740
Merge branch 'main' of https://github.com/RedisInsight/RedisInsight i…
AmirAllayarovSofteq Oct 21, 2022
0387e87
return dlc
vlad-dargel Oct 21, 2022
fec0f76
Merge pull request #1313 from RedisInsight/e2e/bugfix/error-on-ft-search
vlad-dargel Oct 21, 2022
50b7b53
fixes for tests
vlad-dargel Oct 21, 2022
9c56989
#RI-3718 - fix page view event, fix page title
rsergeenko Oct 24, 2022
4013913
#RI-3699-update tooltips on new report icon
AmirAllayarovSofteq Oct 24, 2022
a035f76
fixes for tests 2
vlad-dargel Oct 24, 2022
e0c0e30
Merge branch 'main' into e2e/bugfix/fixes-for-failed-regression
vlad-dargel Oct 24, 2022
3582458
#RI-3646 - Change the Expiration timeline to bar charts
egor-zalenski Oct 24, 2022
a9929f8
Merge pull request #1319 from RedisInsight/fe/feature/RI-3646_Change_…
egor-zalenski Oct 24, 2022
f65a13d
Revert "#RI-3646, #RI-3721 "
egor-zalenski Oct 24, 2022
88e75c6
Merge pull request #1320 from RedisInsight/revert-1319-fe/feature/RI-…
egor-zalenski Oct 24, 2022
b27faa2
#RI-3646 - Change the Expiration timeline to bar charts
egor-zalenski Oct 24, 2022
ff90dba
return await t.
vlad-dargel Oct 24, 2022
9eab77b
Merge pull request #1305 from RedisInsight/fe/feature/RI-3668_change-…
AlenaSY Oct 24, 2022
b2cd04f
Merge branch 'main' into feature/RI-3699_memory_analisis_tooltip
Oct 24, 2022
08dff37
return await t. to each row because of testcafe unstable cases
vlad-dargel Oct 24, 2022
4c3d07d
fix tooltip header and text
Oct 24, 2022
6b302ab
Merge branch 'main' into feature/RI-3646_Change_Expiration_timeline_t…
egor-zalenski Oct 24, 2022
b66bc15
Merge pull request #1314 from RedisInsight/fe/bugfix/RI-3705
AlenaSY Oct 24, 2022
ab19568
#RI-3646 - resolve merge from main conflicts
egor-zalenski Oct 24, 2022
50cab84
updates for e2e summary per expiration time
vlad-dargel Oct 24, 2022
25bfb16
fixes for tests
vlad-dargel Oct 24, 2022
a8247b3
upd
vlad-dargel Oct 24, 2022
16fc15c
#RI-3699-add tooltip tests
AmirAllayarovSofteq Oct 25, 2022
15c7c43
#RI-3699-add tooltip tests
AmirAllayarovSofteq Oct 25, 2022
1398ca8
Merge pull request #1316 from RedisInsight/feature/RI-3699_memory_ana…
AlenaSY Oct 25, 2022
296dbf6
update for test
vlad-dargel Oct 25, 2022
136eed6
#RI-3722 - No tooltip on hovering on small value chart
egor-zalenski Oct 25, 2022
4885d33
Merge pull request #1324 from RedisInsight/fe/bugfix/RI-3722_No_toolt…
egor-zalenski Oct 25, 2022
9d75621
Merge pull request #1322 from RedisInsight/e2e/bugfix/fixes-for-faile…
vlad-dargel Oct 25, 2022
85a9cdc
Merge pull request #1323 from RedisInsight/e2e/feature/RI-3646-change…
vlad-dargel Oct 25, 2022
98e525b
Merge branch 'main' into feature/RI-3646_Change_Expiration_timeline_t…
vlad-dargel Oct 25, 2022
66102ea
Merge pull request #1321 from RedisInsight/feature/RI-3646_Change_Exp…
vlad-dargel Oct 25, 2022
90fdb96
Merge pull request #1308 from RedisInsight/bugfix/RI-3631_key_list_lo…
AlenaSY Oct 25, 2022
a9638b2
fix ITests
Oct 25, 2022
d2fc109
Merge pull request #1326 from RedisInsight/bugfix/fix-itests
AlenaSY Oct 25, 2022
9b6f00d
#RI-3725 - Module is not found when RediSearch Light is loaded
egor-zalenski Oct 25, 2022
446bee5
Merge branch 'main' into fe/bugfix/RI-3725_Redisearch_light_module_no…
egor-zalenski Oct 25, 2022
7ba7cc0
fix ui tests in the main branch
egor-zalenski Oct 25, 2022
0fcc236
Merge pull request #1328 from RedisInsight/fe/bugfix/RI-3725_Redisear…
AlenaSY Oct 26, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ lerna-debug.log*
# Tests
/coverage
/.nyc_output
**/coverage

# IDEs and editors
/.idea
Expand Down
10 changes: 9 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ const { TextDecoder, TextEncoder } = require('util');
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
testURL: 'http://localhost/',
runner: 'groups',
moduleNameMapper: {
'\\.(jpg|jpeg|png|ico|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'\\.(jpg|jpeg|png|ico|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'<rootDir>/redisinsight/__mocks__/fileMock.js',
'\\.svg': '<rootDir>/redisinsight/__mocks__/svg.js',
'\\.(css|less|sass|scss)$': 'identity-obj-proxy',
'uiSrc/(.*)': '<rootDir>/redisinsight/ui/src/$1',
'monaco-editor': '<rootDir>/redisinsight/__mocks__/monacoMock.js',
Expand Down Expand Up @@ -44,6 +46,12 @@ module.exports = {
'<rootDir>/redisinsight/ui/src/packages',
'<rootDir>/redisinsight/ui/src/mocks',
],
coverageDirectory: './coverage',
coveragePathIgnorePatterns: [
'/node_modules/',
'<rootDir>/redisinsight/api',
'<rootDir>/redisinsight/ui/src/packages',
],
coverageThreshold: {
global: {
statements: 70,
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
"test": "jest ./redisinsight/ui -w 1",
"test:watch": "jest ./redisinsight/ui --watch -w 1",
"test:cov": "jest ./redisinsight/ui --coverage -w 1",
"test:cov:unit": "jest ./redisinsight/ui --group=-component --coverage -w 1",
"test:cov:component": "jest ./redisinsight/ui --group=component --coverage -w 1",
"type-check:ui": "tsc --project redisinsight/ui --noEmit"
},
"lint-staged": {
Expand Down Expand Up @@ -173,6 +175,7 @@
"ioredis-mock": "^5.5.4",
"ip": "^1.1.8",
"jest": "^27.5.1",
"jest-runner-groups": "^2.2.0",
"jest-when": "^3.2.1",
"lint-staged": "^10.2.11",
"mini-css-extract-plugin": "^1.3.1",
Expand Down
2 changes: 2 additions & 0 deletions redisinsight/__mocks__/svg.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export default 'SvgrURL'
export const ReactComponent = 'div'
3 changes: 3 additions & 0 deletions redisinsight/api/config/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ export default {
unsupportedCommands: JSON.parse(process.env.WORKBENCH_UNSUPPORTED_COMMANDS || '[]'),
countBatch: parseInt(process.env.WORKBENCH_BATCH_SIZE, 10) || 5,
},
database_analysis: {
maxItemsPerDb: parseInt(process.env.DATABASE_ANALYSIS_MAX_ITEMS_PER_DB, 10) || 5,
},
commands: [
{
name: 'main',
Expand Down
9 changes: 7 additions & 2 deletions redisinsight/api/config/ormconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ import { SettingsEntity } from 'src/modules/core/models/settings.entity';
import { CommandExecutionEntity } from 'src/modules/workbench/entities/command-execution.entity';
import { PluginStateEntity } from 'src/modules/workbench/entities/plugin-state.entity';
import { NotificationEntity } from 'src/modules/notification/entities/notification.entity';
import { DatabaseAnalysisEntity } from 'src/modules/database-analysis/entities/database-analysis.entity';
import { DataSource } from 'typeorm';
import migrations from '../migration';
import * as config from '../src/utils/config';

const dbConfig = config.get('db');
const ormConfig: TypeOrmModuleOptions = {

const ormConfig = {
type: 'sqlite',
database: dbConfig.database,
synchronize: dbConfig.synchronize,
Expand All @@ -27,8 +30,10 @@ const ormConfig: TypeOrmModuleOptions = {
CommandExecutionEntity,
PluginStateEntity,
NotificationEntity,
DatabaseAnalysisEntity,
],
migrations,
};

export default ormConfig;
export const ormModuleOptions: TypeOrmModuleOptions = ormConfig as TypeOrmModuleOptions;
export default new DataSource({ ...ormConfig, type: 'sqlite' });
34 changes: 34 additions & 0 deletions redisinsight/api/migration/1664785208236-database-analysis.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import { MigrationInterface, QueryRunner } from "typeorm";

export class databaseAnalysis1664785208236 implements MigrationInterface {
name = 'databaseAnalysis1664785208236'

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`CREATE TABLE "database_analysis" ("id" varchar PRIMARY KEY NOT NULL, "databaseId" varchar NOT NULL, "filter" blob, "delimiter" varchar NOT NULL, "progress" blob, "totalKeys" blob, "totalMemory" blob, "topKeysNsp" blob, "topMemoryNsp" blob, "topKeysLength" blob, "topKeysMemory" blob, "encryption" varchar, "createdAt" datetime NOT NULL DEFAULT (datetime('now')))`);
await queryRunner.query(`CREATE INDEX "IDX_d174a8edc2201d6c5781f0126a" ON "database_analysis" ("databaseId") `);
await queryRunner.query(`CREATE INDEX "IDX_fdd0daeb4d8f226cf1ff79bebb" ON "database_analysis" ("createdAt") `);
await queryRunner.query(`DROP INDEX "IDX_d174a8edc2201d6c5781f0126a"`);
await queryRunner.query(`DROP INDEX "IDX_fdd0daeb4d8f226cf1ff79bebb"`);
await queryRunner.query(`CREATE TABLE "temporary_database_analysis" ("id" varchar PRIMARY KEY NOT NULL, "databaseId" varchar NOT NULL, "filter" blob, "delimiter" varchar NOT NULL, "progress" blob, "totalKeys" blob, "totalMemory" blob, "topKeysNsp" blob, "topMemoryNsp" blob, "topKeysLength" blob, "topKeysMemory" blob, "encryption" varchar, "createdAt" datetime NOT NULL DEFAULT (datetime('now')), CONSTRAINT "FK_d174a8edc2201d6c5781f0126ae" FOREIGN KEY ("databaseId") REFERENCES "database_instance" ("id") ON DELETE CASCADE ON UPDATE NO ACTION)`);
await queryRunner.query(`INSERT INTO "temporary_database_analysis"("id", "databaseId", "filter", "delimiter", "progress", "totalKeys", "totalMemory", "topKeysNsp", "topMemoryNsp", "topKeysLength", "topKeysMemory", "encryption", "createdAt") SELECT "id", "databaseId", "filter", "delimiter", "progress", "totalKeys", "totalMemory", "topKeysNsp", "topMemoryNsp", "topKeysLength", "topKeysMemory", "encryption", "createdAt" FROM "database_analysis"`);
await queryRunner.query(`DROP TABLE "database_analysis"`);
await queryRunner.query(`ALTER TABLE "temporary_database_analysis" RENAME TO "database_analysis"`);
await queryRunner.query(`CREATE INDEX "IDX_d174a8edc2201d6c5781f0126a" ON "database_analysis" ("databaseId") `);
await queryRunner.query(`CREATE INDEX "IDX_fdd0daeb4d8f226cf1ff79bebb" ON "database_analysis" ("createdAt") `);
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`DROP INDEX "IDX_fdd0daeb4d8f226cf1ff79bebb"`);
await queryRunner.query(`DROP INDEX "IDX_d174a8edc2201d6c5781f0126a"`);
await queryRunner.query(`ALTER TABLE "database_analysis" RENAME TO "temporary_database_analysis"`);
await queryRunner.query(`CREATE TABLE "database_analysis" ("id" varchar PRIMARY KEY NOT NULL, "databaseId" varchar NOT NULL, "filter" blob, "delimiter" varchar NOT NULL, "progress" blob, "totalKeys" blob, "totalMemory" blob, "topKeysNsp" blob, "topMemoryNsp" blob, "topKeysLength" blob, "topKeysMemory" blob, "encryption" varchar, "createdAt" datetime NOT NULL DEFAULT (datetime('now')))`);
await queryRunner.query(`INSERT INTO "database_analysis"("id", "databaseId", "filter", "delimiter", "progress", "totalKeys", "totalMemory", "topKeysNsp", "topMemoryNsp", "topKeysLength", "topKeysMemory", "encryption", "createdAt") SELECT "id", "databaseId", "filter", "delimiter", "progress", "totalKeys", "totalMemory", "topKeysNsp", "topMemoryNsp", "topKeysLength", "topKeysMemory", "encryption", "createdAt" FROM "temporary_database_analysis"`);
await queryRunner.query(`DROP TABLE "temporary_database_analysis"`);
await queryRunner.query(`CREATE INDEX "IDX_fdd0daeb4d8f226cf1ff79bebb" ON "database_analysis" ("createdAt") `);
await queryRunner.query(`CREATE INDEX "IDX_d174a8edc2201d6c5781f0126a" ON "database_analysis" ("databaseId") `);
await queryRunner.query(`DROP INDEX "IDX_fdd0daeb4d8f226cf1ff79bebb"`);
await queryRunner.query(`DROP INDEX "IDX_d174a8edc2201d6c5781f0126a"`);
await queryRunner.query(`DROP TABLE "database_analysis"`);
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { MigrationInterface, QueryRunner } from "typeorm";

export class databaseAnalysisExpirationGroups1664886479051 implements MigrationInterface {
name = 'databaseAnalysisExpirationGroups1664886479051'

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`DROP INDEX "IDX_fdd0daeb4d8f226cf1ff79bebb"`);
await queryRunner.query(`DROP INDEX "IDX_d174a8edc2201d6c5781f0126a"`);
await queryRunner.query(`CREATE TABLE "temporary_database_analysis" ("id" varchar PRIMARY KEY NOT NULL, "databaseId" varchar NOT NULL, "filter" blob, "delimiter" varchar NOT NULL, "progress" blob, "totalKeys" blob, "totalMemory" blob, "topKeysNsp" blob, "topMemoryNsp" blob, "topKeysLength" blob, "topKeysMemory" blob, "encryption" varchar, "createdAt" datetime NOT NULL DEFAULT (datetime('now')), "expirationGroups" blob, CONSTRAINT "FK_d174a8edc2201d6c5781f0126ae" FOREIGN KEY ("databaseId") REFERENCES "database_instance" ("id") ON DELETE CASCADE ON UPDATE NO ACTION)`);
await queryRunner.query(`INSERT INTO "temporary_database_analysis"("id", "databaseId", "filter", "delimiter", "progress", "totalKeys", "totalMemory", "topKeysNsp", "topMemoryNsp", "topKeysLength", "topKeysMemory", "encryption", "createdAt") SELECT "id", "databaseId", "filter", "delimiter", "progress", "totalKeys", "totalMemory", "topKeysNsp", "topMemoryNsp", "topKeysLength", "topKeysMemory", "encryption", "createdAt" FROM "database_analysis"`);
await queryRunner.query(`DROP TABLE "database_analysis"`);
await queryRunner.query(`ALTER TABLE "temporary_database_analysis" RENAME TO "database_analysis"`);
await queryRunner.query(`CREATE INDEX "IDX_fdd0daeb4d8f226cf1ff79bebb" ON "database_analysis" ("createdAt") `);
await queryRunner.query(`CREATE INDEX "IDX_d174a8edc2201d6c5781f0126a" ON "database_analysis" ("databaseId") `);
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`DROP INDEX "IDX_d174a8edc2201d6c5781f0126a"`);
await queryRunner.query(`DROP INDEX "IDX_fdd0daeb4d8f226cf1ff79bebb"`);
await queryRunner.query(`ALTER TABLE "database_analysis" RENAME TO "temporary_database_analysis"`);
await queryRunner.query(`CREATE TABLE "database_analysis" ("id" varchar PRIMARY KEY NOT NULL, "databaseId" varchar NOT NULL, "filter" blob, "delimiter" varchar NOT NULL, "progress" blob, "totalKeys" blob, "totalMemory" blob, "topKeysNsp" blob, "topMemoryNsp" blob, "topKeysLength" blob, "topKeysMemory" blob, "encryption" varchar, "createdAt" datetime NOT NULL DEFAULT (datetime('now')), CONSTRAINT "FK_d174a8edc2201d6c5781f0126ae" FOREIGN KEY ("databaseId") REFERENCES "database_instance" ("id") ON DELETE CASCADE ON UPDATE NO ACTION)`);
await queryRunner.query(`INSERT INTO "database_analysis"("id", "databaseId", "filter", "delimiter", "progress", "totalKeys", "totalMemory", "topKeysNsp", "topMemoryNsp", "topKeysLength", "topKeysMemory", "encryption", "createdAt") SELECT "id", "databaseId", "filter", "delimiter", "progress", "totalKeys", "totalMemory", "topKeysNsp", "topMemoryNsp", "topKeysLength", "topKeysMemory", "encryption", "createdAt" FROM "temporary_database_analysis"`);
await queryRunner.query(`DROP TABLE "temporary_database_analysis"`);
await queryRunner.query(`CREATE INDEX "IDX_d174a8edc2201d6c5781f0126a" ON "database_analysis" ("databaseId") `);
await queryRunner.query(`CREATE INDEX "IDX_fdd0daeb4d8f226cf1ff79bebb" ON "database_analysis" ("createdAt") `);
}

}
4 changes: 4 additions & 0 deletions redisinsight/api/migration/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ import { notification1655821010349 } from './1655821010349-notification';
import { notificationCategory1659687030433 } from './1659687030433-notification-category';
import { workbenchMode1660664717573 } from './1660664717573-workbench-mode';
import { workbenchGroupMode1663093411715 } from './1663093411715-workbench-group-mode';
import { databaseAnalysis1664785208236 } from './1664785208236-database-analysis';
import { databaseAnalysisExpirationGroups1664886479051 } from './1664886479051-database-analysis-expiration-groups';

export default [
initialMigration1614164490968,
Expand All @@ -38,4 +40,6 @@ export default [
notificationCategory1659687030433,
workbenchMode1660664717573,
workbenchGroupMode1663093411715,
databaseAnalysis1664785208236,
databaseAnalysisExpirationGroups1664886479051,
];
6 changes: 3 additions & 3 deletions redisinsight/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
"test:cov": "cross-env NODE_ENV=test ./node_modules/.bin/jest --coverage -w 1",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand -w 1",
"test:e2e": "jest --config ./test/jest-e2e.json -w 1",
"typeorm": "ts-node -r tsconfig-paths/register ./node_modules/typeorm/cli.js --config ./config/ormconfig.ts",
"typeorm": "ts-node -r tsconfig-paths/register ./node_modules/typeorm/cli.js -d ./config/ormconfig.ts",
"test:api": "ts-mocha --paths -p test/api/api.tsconfig.json --config ./test/api/.mocharc.yml",
"test:api:cov": "nyc --reporter=html --reporter=text --reporter=text-summary yarn run test:api",
"test:api:ci:cov": "nyc -r text -r text-summary yarn run test:api --reporter mocha-multi-reporters --reporter-options configFile=test/api/reporters.json && nyc merge .nyc_output ./coverage/test-run-coverage.json",
"typeorm:migrate": "cross-env NODE_ENV=production yarn typeorm migration:generate -- -n migration",
"test:api:ci:cov": "nyc -r text -r text-summary -r html yarn run test:api --reporter mocha-multi-reporters --reporter-options configFile=test/api/reporters.json && nyc merge .nyc_output ./coverage/test-run-coverage.json",
"typeorm:migrate": "cross-env NODE_ENV=production yarn typeorm migration:generate ./migration/migration",
"typeorm:run": "yarn typeorm migration:run"
},
"dependencies": {
Expand Down
8 changes: 4 additions & 4 deletions redisinsight/api/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
} from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { ServeStaticModule } from '@nestjs/serve-static';
import { EventEmitterModule } from '@nestjs/event-emitter';
import { RouterModule } from 'nest-router';
import { join } from 'path';
import config from 'src/utils/config';
Expand All @@ -16,6 +15,7 @@ import { PubSubModule } from 'src/modules/pub-sub/pub-sub.module';
import { NotificationModule } from 'src/modules/notification/notification.module';
import { BulkActionsModule } from 'src/modules/bulk-actions/bulk-actions.module';
import { ClusterMonitorModule } from 'src/modules/cluster-monitor/cluster-monitor.module';
import { DatabaseAnalysisModule } from 'src/modules/database-analysis/database-analysis.module';
import { SharedModule } from './modules/shared/shared.module';
import { InstancesModule } from './modules/instances/instances.module';
import { BrowserModule } from './modules/browser/browser.module';
Expand All @@ -28,14 +28,14 @@ import { SettingsController } from './controllers/settings.controller';
import { ServerInfoController } from './controllers/server-info.controller';
import { ExcludeRouteMiddleware } from './middleware/exclude-route.middleware';
import { routes } from './app.routes';
import ormConfig from '../config/ormconfig';
import { ormModuleOptions } from '../config/ormconfig';

const SERVER_CONFIG = config.get('server');
const PATH_CONFIG = config.get('dir_path');

@Module({
imports: [
TypeOrmModule.forRoot(ormConfig),
TypeOrmModule.forRoot(ormModuleOptions),
RouterModule.forRoutes(routes),
SharedModule,
InstancesModule,
Expand All @@ -52,7 +52,7 @@ const PATH_CONFIG = config.get('dir_path');
NotificationModule,
BulkActionsModule,
ClusterMonitorModule,
EventEmitterModule.forRoot(),
DatabaseAnalysisModule,
...(SERVER_CONFIG.staticContent
? [
ServeStaticModule.forRoot({
Expand Down
5 changes: 5 additions & 0 deletions redisinsight/api/src/app.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { WorkbenchModule } from 'src/modules/workbench/workbench.module';
import { SlowLogModule } from 'src/modules/slow-log/slow-log.module';
import { PubSubModule } from 'src/modules/pub-sub/pub-sub.module';
import { ClusterMonitorModule } from 'src/modules/cluster-monitor/cluster-monitor.module';
import { DatabaseAnalysisModule } from 'src/modules/database-analysis/database-analysis.module';

export const routes: Routes = [
{
Expand Down Expand Up @@ -38,6 +39,10 @@ export const routes: Routes = [
path: '/:dbInstance',
module: ClusterMonitorModule,
},
{
path: '/:dbInstance',
module: DatabaseAnalysisModule,
},
],
},
{
Expand Down
1 change: 1 addition & 0 deletions redisinsight/api/src/common/decorators/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from './redis-string';
export * from './zset-score';
1 change: 1 addition & 0 deletions redisinsight/api/src/common/decorators/zset-score/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './zset-score.decorator';
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import {
registerDecorator,
ValidationOptions,
} from 'class-validator';
import { ZSetScoreValidator } from 'src/common/validators';

export function isZSetScore(validationOptions?: ValidationOptions) {
return (object: any, propertyName: string) => {
registerDecorator({
name: 'isZSetScore',
target: object.constructor,
propertyName,
options: validationOptions,
validator: ZSetScoreValidator,
});
};
}
1 change: 1 addition & 0 deletions redisinsight/api/src/common/validators/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from './redis-string.validator';
export * from './zset-score.validator';
17 changes: 17 additions & 0 deletions redisinsight/api/src/common/validators/zset-score.validator.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { isNumber } from 'lodash';
import {
ValidationArguments,
ValidatorConstraint,
ValidatorConstraintInterface,
} from 'class-validator';

@ValidatorConstraint({ name: 'RedisStringValidator', async: true })
export class ZSetScoreValidator implements ValidatorConstraintInterface {
async validate(value: any) {
return value === 'inf' || value === '-inf' || isNumber(value);
}

defaultMessage(args: ValidationArguments) {
return `${args.property || 'field'} must be a string or a number`;
}
}
1 change: 1 addition & 0 deletions redisinsight/api/src/constants/error-messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
export default {
INVALID_DATABASE_INSTANCE_ID: 'Invalid database instance id.',
COMMAND_EXECUTION_NOT_FOUND: 'Command execution was not found.',
DATABASE_ANALYSIS_NOT_FOUND: 'Database analysis was not found.',
PROFILER_LOG_FILE_NOT_FOUND: 'Profiler log file was not found.',
CONSUMER_GROUP_NOT_FOUND: 'Consumer Group with such name was not found.',
PLUGIN_STATE_NOT_FOUND: 'Plugin state was not found.',
Expand Down
4 changes: 2 additions & 2 deletions redisinsight/api/src/models/redis-consumer.interface.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { IFindRedisClientInstanceByOptions } from 'src/modules/core/services/redis/redis.service';
import { ReplyError } from 'src/models/redis-client';
import { Redis } from 'ioredis';
import { Cluster, Redis } from 'ioredis';

export interface IRedisConsumer {
execCommand(
Expand All @@ -17,7 +17,7 @@ export interface IRedisConsumer {
): Promise<[ReplyError | null, any]>;

execPipelineFromClient(
client: Redis,
client: Redis | Cluster,
toolCommands: Array<
[toolCommand: any, ...args: Array<string | number | Buffer>]
>,
Expand Down
19 changes: 16 additions & 3 deletions redisinsight/api/src/modules/browser/__mocks__/z-set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,21 @@ import { SortOrder } from 'src/constants';

export const mockZSetMemberDto: ZSetMemberDto = {
name: Buffer.from('member1'),
score: 0,
score: '-inf',
};
export const mockZSetMemberDto2: ZSetMemberDto = {
name: Buffer.from('member2'),
score: 0,
};
export const mockZSetMemberDto3: ZSetMemberDto = {
name: Buffer.from('member3'),
score: 2,
};

export const mockZSetMemberDto4: ZSetMemberDto = {
name: Buffer.from('member4'),
score: 'inf',
};
export const mockGetMembersDto: GetZSetMembersDto = {
keyName: Buffer.from('zSet'),
offset: 0,
Expand All @@ -28,7 +37,7 @@ export const mockSearchMembersDto: SearchZSetMembersDto = {
};
export const mockAddMembersDto: AddMembersToZSetDto = {
keyName: mockGetMembersDto.keyName,
members: [mockZSetMemberDto, mockZSetMemberDto2],
members: [mockZSetMemberDto, mockZSetMemberDto2, mockZSetMemberDto3, mockZSetMemberDto4],
};
export const mockUpdateMemberDto: UpdateMemberInZSetDto = {
keyName: mockGetMembersDto.keyName,
Expand All @@ -39,10 +48,14 @@ export const mockMembersForZAddCommand = [
mockZSetMemberDto.name,
mockZSetMemberDto2.score,
mockZSetMemberDto2.name,
mockZSetMemberDto3.score,
mockZSetMemberDto3.name,
mockZSetMemberDto4.score,
mockZSetMemberDto4.name,
];
export const mockDeleteMembersDto: DeleteMembersFromZSetDto = {
keyName: mockAddMembersDto.keyName,
members: [mockZSetMemberDto.name, mockZSetMemberDto2.name],
members: [mockZSetMemberDto.name, mockZSetMemberDto2.name, mockZSetMemberDto3.name, mockZSetMemberDto4.name],
};
export const getZSetMembersInAscResponse = {
keyName: mockGetMembersDto.keyName,
Expand Down
Loading