Skip to content

Commit 6cc9e67

Browse files
committed
#RI-6129 - do not mark database > 7.9 as redistack
1 parent bac97a3 commit 6cc9e67

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

redisinsight/ui/src/utils/redistack.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Instance, RedisDefaultModules } from 'uiSrc/slices/interfaces'
33
import { isVersionHigherOrEquals, Nullable } from 'uiSrc/utils'
44

55
const REDISTACK_VERSION = '6.2.5'
6+
const NON_REDISTACK_VERSION = '7.9'
67

78
const REDISTACK_REQUIRE_MODULES: Array<string | Array<string>> = [
89
RedisDefaultModules.ReJSON,
@@ -61,6 +62,10 @@ const isRediStack = (modules: any[], version?: Nullable<string>): boolean => {
6162
return checkRediStackModules(modules)
6263
}
6364

65+
if (isVersionHigherOrEquals(version, NON_REDISTACK_VERSION)) {
66+
return false
67+
}
68+
6469
if (isVersionHigherOrEquals(version, REDISTACK_VERSION)) {
6570
return checkRediStackModules(modules)
6671
}

redisinsight/ui/src/utils/tests/redistack.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ const isRediStackTests = [
4343
{ input: [unmapWithName(['bf', 'timeseries', 'ReJSON', 'searchlight', 'graph', 'redisgears', 'custom']), null], expected: false },
4444

4545
{ input: [unmapWithName(['bf', 'timeseries', 'ReJSON', 'searchlight']), '6.2.4'], expected: false },
46+
{ input: [unmapWithName(['bf', 'timeseries', 'ReJSON', 'searchlight', 'redisgears']), '7.9'], expected: false },
47+
{ input: [unmapWithName(['bf', 'timeseries', 'ReJSON', 'searchlight', 'redisgears']), '8.0.0'], expected: false },
48+
{ input: [unmapWithName(['bf', 'timeseries', 'ReJSON', 'searchlight', 'redisgears']), '8.0.0-rc'], expected: false },
4649
]
4750

4851
describe('isRediStack', () => {

0 commit comments

Comments
 (0)