Skip to content

Commit 056f7dc

Browse files
committed
Merge branch 'release/2.52.0' into fe/bugfix/inline_editor_submit
2 parents 58aa6f0 + 4dac939 commit 056f7dc

File tree

99 files changed

+1318
-261
lines changed

Some content is hidden

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

99 files changed

+1318
-261
lines changed

.circleci/build/release-docker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -e
33

44
HELP="Args:
5-
-v - Semver (2.50.0)
5+
-v - Semver (2.52.0)
66
-d - Build image repository (Ex: -d redisinsight)
77
-r - Target repository (Ex: -r redis/redisinsight)
88
"

.circleci/config.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -392,9 +392,18 @@ jobs:
392392
at: .
393393
- run: sudo apt-get install net-tools
394394
- run:
395-
name: Clone mocked RDI server
395+
name: Install WM
396+
command: sudo apt install fluxbox
397+
- run:
398+
name: Run X11
396399
command: |
397-
git clone https://[email protected]/RedisInsight/RDI_server_mocked.git tests/e2e/rte/rdi
400+
Xvfb :99 -screen 0 1920x1080x24 &
401+
sleep 3
402+
fluxbox &
403+
# - run:
404+
# name: Clone mocked RDI server
405+
# command: |
406+
# git clone https://[email protected]/RedisInsight/RDI_server_mocked.git tests/e2e/rte/rdi
398407
- run:
399408
name: .AppImage tests
400409
command: |
@@ -487,10 +496,10 @@ jobs:
487496
name: Load built docker image from workspace
488497
command: |
489498
docker image load -i /tmp/release/docker/docker-linux-alpine.amd64.tar
490-
- run:
491-
name: Clone mocked RDI server
492-
command: |
493-
git clone https://[email protected]/RedisInsight/RDI_server_mocked.git tests/e2e/rte/rdi
499+
# - run:
500+
# name: Clone mocked RDI server
501+
# command: |
502+
# git clone https://[email protected]/RedisInsight/RDI_server_mocked.git tests/e2e/rte/rdi
494503
- run:
495504
name: Run tests
496505
command: |

redisinsight/api/config/default.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export default {
7676
tlsKey: process.env.RI_SERVER_TLS_KEY,
7777
staticContent: !!process.env.RI_SERVE_STATICS || true,
7878
buildType: process.env.RI_BUILD_TYPE || 'DOCKER_ON_PREMISE',
79-
appVersion: process.env.RI_APP_VERSION || '2.50.0',
79+
appVersion: process.env.RI_APP_VERSION || '2.52.0',
8080
requestTimeout: parseInt(process.env.RI_REQUEST_TIMEOUT, 10) || 25000,
8181
excludeRoutes: [],
8282
excludeAuthRoutes: [],

redisinsight/api/config/swagger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const SWAGGER_CONFIG: Omit<OpenAPIObject, 'paths'> = {
55
info: {
66
title: 'Redis Insight Backend API',
77
description: 'Redis Insight Backend API',
8-
version: '2.50.0',
8+
version: '2.52.0',
99
},
1010
tags: [],
1111
};

redisinsight/api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "redisinsight-api",
3-
"version": "2.50.0",
3+
"version": "2.52.0",
44
"description": "Redis Insight API",
55
"private": true,
66
"author": {

redisinsight/api/src/constants/error-messages.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,5 @@ export default {
111111
RDI_DEPLOY_PIPELINE_FAILURE: 'Failed to deploy pipeline',
112112
RDI_TIMEOUT_ERROR: 'Encountered a timeout error while attempting to retrieve data',
113113
RDI_VALIDATION_ERROR: 'Validation error',
114+
INVALID_RDI_INSTANCE_ID: 'Invalid rdi instance id.',
114115
};

redisinsight/api/src/modules/browser/keys/scanner/strategies/cluster.scanner.strategy.spec.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ describe('Cluster Scanner Strategy', () => {
633633
scanned: 10,
634634
},
635635
]);
636-
expect(strategy.getKeysInfo).toHaveBeenCalledWith(mockClusterRedisClient, [Buffer.from(key)], dto.type);
636+
expect(strategy.getKeysInfo).toHaveBeenCalledWith(mockClusterRedisClient, [Buffer.from(key)]);
637637
expect(strategy['scanNodes']).not.toHaveBeenCalled();
638638
});
639639
it('should find exact key when match is escaped glob patter', async () => {
@@ -666,7 +666,6 @@ describe('Cluster Scanner Strategy', () => {
666666
expect(strategy.getKeysInfo).toHaveBeenCalledWith(
667667
mockClusterRedisClient,
668668
[Buffer.from(searchPattern)],
669-
dto.type,
670669
);
671670
expect(strategy['scanNodes']).not.toHaveBeenCalled();
672671
});
@@ -704,7 +703,6 @@ describe('Cluster Scanner Strategy', () => {
704703
expect(strategy.getKeysInfo).toHaveBeenCalledWith(
705704
mockClusterRedisClient,
706705
[Buffer.from(key)],
707-
dto.type,
708706
);
709707
expect(strategy['scanNodes']).not.toHaveBeenCalled();
710708
});
@@ -741,7 +739,6 @@ describe('Cluster Scanner Strategy', () => {
741739
expect(strategy.getKeysInfo).toHaveBeenCalledWith(
742740
mockClusterRedisClient,
743741
[Buffer.from(key)],
744-
dto.type,
745742
);
746743
expect(strategy['scanNodes']).not.toHaveBeenCalled();
747744
});
@@ -779,7 +776,6 @@ describe('Cluster Scanner Strategy', () => {
779776
expect(strategy.getKeysInfo).toHaveBeenCalledWith(
780777
mockClusterRedisClient,
781778
[Buffer.from(key)],
782-
dto.type,
783779
);
784780
expect(strategy['scanNodes']).not.toHaveBeenCalled();
785781
});

redisinsight/api/src/modules/browser/keys/scanner/strategies/cluster.scanner.strategy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export class ClusterScannerStrategy extends ScannerStrategy {
121121
// eslint-disable-next-line no-param-reassign
122122
node.scanned = isNull(node.total) ? 1 : node.total;
123123
});
124-
nodes[0].keys = await this.getKeysInfo(client, [keyName], args.type);
124+
nodes[0].keys = await this.getKeysInfo(client, [keyName]);
125125
nodes[0].keys = nodes[0].keys.filter((key: GetKeyInfoResponse) => {
126126
if (key.ttl === -2) {
127127
return false;

redisinsight/api/src/modules/browser/keys/scanner/strategies/standalone.scanner.strategy.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,6 @@ describe('StandaloneScannerStrategy', () => {
389389
expect(strategy.getKeysInfo).toHaveBeenCalledWith(
390390
mockStandaloneRedisClient,
391391
[Buffer.from(key)],
392-
dto.type,
393392
);
394393
expect(strategy['scan']).not.toHaveBeenCalled();
395394
});
@@ -413,7 +412,6 @@ describe('StandaloneScannerStrategy', () => {
413412
expect(strategy.getKeysInfo).toHaveBeenCalledWith(
414413
mockStandaloneRedisClient,
415414
[Buffer.from(mockSearchPattern)],
416-
dto.type,
417415
);
418416
expect(strategy['scan']).not.toHaveBeenCalled();
419417
});

redisinsight/api/src/modules/browser/keys/scanner/strategies/standalone.scanner.strategy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export class StandaloneScannerStrategy extends ScannerStrategy {
126126
const keyName = Buffer.from(unescapeRedisGlob(match));
127127
node.cursor = 0;
128128
node.scanned = isNull(node.total) ? 1 : node.total;
129-
node.keys = await this.getKeysInfo(client, [keyName], args.type);
129+
node.keys = await this.getKeysInfo(client, [keyName]);
130130
node.keys = node.keys.filter((key: GetKeyInfoResponse) => {
131131
if (key.ttl === -2) {
132132
return false;

0 commit comments

Comments
 (0)