Skip to content

Commit 21a92fa

Browse files
author
Artem
authored
Merge pull request #3090 from RedisInsight/release/2.44.0
Release/2.44.0
2 parents b7f8664 + b55d858 commit 21a92fa

File tree

8 files changed

+19
-15
lines changed

8 files changed

+19
-15
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.42.0)
5+
-v - Semver (2.44.0)
66
-d - Build image repository (Ex: -d redisinsight)
77
-r - Target repository (Ex: -r redis/redisinsight)
88
"

redisinsight/api/config/default.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default {
5757
tlsKey: process.env.RI_SERVER_TLS_KEY,
5858
staticContent: !!process.env.RI_SERVE_STATICS || true,
5959
buildType: process.env.RI_BUILD_TYPE || 'DOCKER_ON_PREMISE',
60-
appVersion: process.env.RI_APP_VERSION || '2.42.0',
60+
appVersion: process.env.RI_APP_VERSION || '2.44.0',
6161
requestTimeout: parseInt(process.env.RI_REQUEST_TIMEOUT, 10) || 25000,
6262
excludeRoutes: [],
6363
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: 'RedisInsight Backend API',
77
description: 'RedisInsight Backend API',
8-
version: '2.42.0',
8+
version: '2.44.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.42.0",
3+
"version": "2.44.0",
44
"description": "RedisInsight API",
55
"private": true,
66
"author": {

redisinsight/api/src/modules/browser/redisearch/redisearch.service.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ describe('RedisearchService', () => {
8181
describe('list', () => {
8282
it('should get list of indexes for standalone', async () => {
8383
standaloneClient.sendCommand.mockResolvedValue([
84-
keyName1.toString(),
85-
keyName2.toString(),
84+
keyName1,
85+
keyName2,
8686
]);
8787

8888
const list = await service.list(mockBrowserClientMetadata);
@@ -97,8 +97,8 @@ describe('RedisearchService', () => {
9797
it('should get list of indexes for cluster (handle unique index name)', async () => {
9898
databaseClientFactory.getOrCreateClient = jest.fn().mockResolvedValue(clusterClient);
9999
mockStandaloneRedisClient.sendCommand.mockResolvedValue([
100-
keyName1.toString(),
101-
keyName2.toString(),
100+
keyName1,
101+
keyName2,
102102
]);
103103

104104
const list = await service.list(mockBrowserClientMetadata);

redisinsight/api/src/modules/browser/redisearch/redisearch.service.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,18 @@ export class RedisearchService {
4949

5050
try {
5151
const client: RedisClient = await this.databaseClientFactory.getOrCreateClient(clientMetadata);
52-
const nodes = this.getShards(client) as RedisClient[];
52+
const nodes = await this.getShards(client) as RedisClient[];
5353

5454
const res = await Promise.all(nodes.map(async (node) => node.sendCommand(
5555
['FT._LIST'],
5656
)));
5757

5858
return plainToClass(ListRedisearchIndexesResponse, {
59-
indexes: (uniq([].concat(...res))).map((idx) => Buffer.from(idx)),
59+
indexes: (
60+
uniq(
61+
([].concat(...res)).map((idx) => idx.toString('hex')),
62+
)
63+
).map((idx) => Buffer.from(idx, 'hex')),
6064
});
6165
} catch (e) {
6266
this.logger.error('Failed to get redisearch indexes', e);
@@ -100,7 +104,7 @@ export class RedisearchService {
100104
}
101105
}
102106

103-
const nodes = this.getShards(client) as RedisClient[];
107+
const nodes = await this.getShards(client) as RedisClient[];
104108

105109
const commandArgs: any[] = [
106110
index, 'ON', type,
@@ -121,7 +125,7 @@ export class RedisearchService {
121125
...commandArgs,
122126
], { replyEncoding: 'utf8' });
123127
} catch (e) {
124-
if (!e.message.includes('MOVED')) {
128+
if (!e.message.includes('MOVED') && !e.message.includes('already exists')) {
125129
throw e;
126130
}
127131
}
@@ -228,7 +232,7 @@ export class RedisearchService {
228232
* @param client
229233
* @private
230234
*/
231-
private getShards(client: RedisClient): Promise<RedisClient[]> | RedisClient[] {
235+
private async getShards(client: RedisClient): Promise<RedisClient[]> {
232236
if (client.getConnectionType() === RedisClientConnectionType.CLUSTER) {
233237
return client.nodes(RedisClientNodeRole.PRIMARY);
234238
}

redisinsight/desktop/src/lib/aboutPanel/aboutPanel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const ICON_PATH = app.isPackaged
88

99
export const AboutPanelOptions = {
1010
applicationName: 'RedisInsight',
11-
applicationVersion: `${app.getVersion() || '2.42.0'}${
11+
applicationVersion: `${app.getVersion() || '2.44.0'}${
1212
!config.isProduction ? `-dev-${process.getCreationTime()}` : ''
1313
}`,
1414
copyright: `Copyright © ${new Date().getFullYear()} Redis Ltd.`,

redisinsight/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "redisinsight",
33
"productName": "RedisInsight",
44
"private": true,
5-
"version": "2.42.0",
5+
"version": "2.44.0",
66
"description": "RedisInsight",
77
"main": "./dist/main/main.js",
88
"author": {

0 commit comments

Comments
 (0)