Skip to content

Commit 1ae7ec2

Browse files
Kristiyan Ivanovvlad-dargelkchepikavaArtemHoruzhenko
authored
Updating main after the 2.66.0 release (#4445)
* release/2.66.0 * RI-6527 Resolve an issue on Ubuntu with a space in a folder name && RI-6551 Resolve the app name issue for Debian (#4304) * RI-6527 Resolve an issue on Ubuntu with a space in a folder name * RI-6551 Resolve the app name issue for Debian * RI-6527 Resolve an issue on Ubuntu with a space in a folder name. Updated based on PR feedback * RI-6527 Resolve an issue on Ubuntu with a space in a folder name && RI-6551 Resolve the app name issue for Debian * fixed chrome sandbox permissions (cherry picked from commit fa50a4f) * RI-6651 fix empty cli opened when switching btw dbs * RI-6651 fix reset db context * RI-6667 better handle errors for recommendations to avoid crashes (#4330) * RI-6660 fix APPLICATION_FIRST_START event was not sent (#4326) * RI-6661 apply "count" arg before applying DEFAULT_COUNT value for threshold (#4328) * e2e/bugfix/fix-failing-e2e (#4327) * e2e/bugfix/fix-failing-e2e * remove only * RI-6656 hide cpu from mini-dash on small screen (#4331) * RI-6684 Open new window doesnt work on windows due to a typo (#4333) --------- Co-authored-by: vlad-dargel <[email protected]> Co-authored-by: Vlad <[email protected]> Co-authored-by: kchepikava <[email protected]> Co-authored-by: Artsiom Kharuzhenka <[email protected]> Co-authored-by: kchepikava <[email protected]>
1 parent 2dd7f80 commit 1ae7ec2

File tree

19 files changed

+33
-22
lines changed

19 files changed

+33
-22
lines changed

.github/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.64.1)
5+
-v - Semver (2.66.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
@@ -84,7 +84,7 @@ export default {
8484
migrateOldFolders: process.env.RI_MIGRATE_OLD_FOLDERS ? process.env.RI_MIGRATE_OLD_FOLDERS === 'true' : true,
8585
autoBootstrap: process.env.RI_AUTO_BOOTSTRAP ? process.env.RI_AUTO_BOOTSTRAP === 'true' : true,
8686
buildType: process.env.RI_BUILD_TYPE || 'DOCKER_ON_PREMISE',
87-
appVersion: process.env.RI_APP_VERSION || '2.64.1',
87+
appVersion: process.env.RI_APP_VERSION || '2.66.0',
8888
requestTimeout: parseInt(process.env.RI_REQUEST_TIMEOUT, 10) || 25000,
8989
excludeRoutes: [],
9090
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.64.1',
8+
version: '2.66.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.64.1",
3+
"version": "2.66.0",
44
"description": "Redis Insight API",
55
"private": true,
66
"author": {

redisinsight/api/src/modules/database-recommendation/database-recommendation.service.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export class DatabaseRecommendationService {
8181
clientMetadata: ClientMetadata,
8282
recommendationNames: string[],
8383
data: any,
84-
): Promise<Map<string, DatabaseRecommendation[]>> {
84+
): Promise<Record<string, DatabaseRecommendation>> {
8585
try {
8686
const newClientMetadata = {
8787
...clientMetadata,
@@ -108,10 +108,10 @@ export class DatabaseRecommendationService {
108108
return results.reduce((acc, result, idx) => ({
109109
...acc,
110110
[recommendationNames[idx]]: result,
111-
}), {} as Map<string, DatabaseRecommendation[]>);
111+
}), {});
112112
} catch (e) {
113113
this.logger.warn('Unable to check recommendation', e, clientMetadata);
114-
return null;
114+
return {};
115115
}
116116
}
117117

@@ -126,8 +126,12 @@ export class DatabaseRecommendationService {
126126
recommendationName: string,
127127
data: any,
128128
): Promise<DatabaseRecommendation> {
129-
const result = await this.checkMulti(clientMetadata, [recommendationName], data);
130-
return result[recommendationName];
129+
try {
130+
const result = await this.checkMulti(clientMetadata, [recommendationName], data);
131+
return result[recommendationName];
132+
} catch (e) {
133+
return null;
134+
}
131135
}
132136

133137
/**

redisinsight/api/src/modules/init/local.init.service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export class LocalInitService extends InitService {
4848
appVersion,
4949
...(await this.featuresConfigService.getControlInfo(sessionMetadata)),
5050
firstStart,
51+
sessionMetadata,
5152
});
5253
}
5354
}

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: 'Redis Insight',
11-
applicationVersion: `${app.getVersion() || '2.64.1'}${
11+
applicationVersion: `${app.getVersion() || '2.66.0'}${
1212
!config.isProduction ? `-dev-${process.getCreationTime()}` : ''
1313
}`,
1414
copyright: `Copyright © ${new Date().getFullYear()} Redis Ltd.`,

redisinsight/desktop/src/lib/window/browserWindow.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const createWindow = async ({
4646

4747
if (isNewMainWindow) {
4848
const [currentWindowX, currentWindowY] = currentWindow.getPosition()
49-
const [currentWindowWidth, currentWindowHeight] = currentWindow?.includeSize()
49+
const [currentWindowWidth, currentWindowHeight] = currentWindow?.getSize()
5050
x = currentWindowX + NEW_WINDOW_OFFSET
5151
y = currentWindowY + NEW_WINDOW_OFFSET
5252
width = currentWindowWidth

redisinsight/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"appName": "Redis Insight",
44
"productName": "RedisInsight",
55
"private": true,
6-
"version": "2.64.1",
6+
"version": "2.66.0",
77
"description": "Redis Insight",
88
"main": "./dist/main/main.js",
99
"author": {

redisinsight/ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "redisinsight",
33
"appName": "Redis Insight",
44
"productName": "RedisInsight",
5-
"version": "2.64.0",
5+
"version": "2.66.0",
66
"description": "Redis Insight",
77
"author": {
88
"name": "Redis Ltd.",

0 commit comments

Comments
 (0)