Skip to content

Commit 228ef60

Browse files
fix cluster overview + database analysis for tls cluster >= 7
1 parent fa9e66b commit 228ef60

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

redisinsight/api/src/constants/recommendations.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
export const RECOMMENDATION_NAMES = Object.freeze({
2+
// todo: moved SET_PASSWORD to top [acl list].
3+
// Investigate why there is no response when placed between ZSET_HASHTABLE_TO_ZIPLIST and RSA
4+
SET_PASSWORD: 'setPassword',
25
LUA_SCRIPT: 'luaScript',
36
BIG_HASHES: 'bigHashes',
47
BIG_STRINGS: 'bigStrings',
@@ -12,7 +15,6 @@ export const RECOMMENDATION_NAMES = Object.freeze({
1215
COMPRESS_HASH_FIELD_NAMES: 'compressHashFieldNames',
1316
COMPRESSION_FOR_LIST: 'compressionForList',
1417
ZSET_HASHTABLE_TO_ZIPLIST: 'zSetHashtableToZiplist',
15-
SET_PASSWORD: 'setPassword',
1618
RTS: 'RTS',
1719
REDIS_VERSION: 'redisVersion',
1820
TRY_RDI: 'tryRDI',
@@ -21,7 +23,6 @@ export const RECOMMENDATION_NAMES = Object.freeze({
2123
STRING_TO_JSON: 'stringToJson',
2224
SEARCH_VISUALIZATION: 'searchVisualization',
2325
SEARCH_HASH: 'searchHash',
24-
2526
});
2627

2728
export const ONE_NODE_RECOMMENDATIONS = [

redisinsight/api/src/modules/cluster-monitor/strategies/cluster-shards.info.strategy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ export class ClusterShardsInfoStrategy extends AbstractInfoStrategy {
3535
const node = {
3636
id: nodeObj.id,
3737
host: nodeObj.ip,
38-
port: nodeObj.port || nodeObj.get('tls-port'),
39-
tlsPort: nodeObj.get('tls-port'),
38+
port: nodeObj.port || nodeObj['tls-port'],
39+
tlsPort: nodeObj['tls-port'],
4040
role: nodeObj.role === 'master' ? NodeRole.Primary : NodeRole.Replica,
4141
health: nodeObj.health,
4242
};

0 commit comments

Comments
 (0)