Skip to content

Commit 6bcc5a9

Browse files
committed
merge 2.48.0 into 5041
2 parents 67b106d + 7950450 commit 6bcc5a9

File tree

62 files changed

+881
-1149
lines changed

Some content is hidden

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

62 files changed

+881
-1149
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.46.0)
5+
-v - Semver (2.48.0)
66
-d - Build image repository (Ex: -d redisinsight)
77
-r - Target repository (Ex: -r redis/redisinsight)
88
"

electron-builder.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,11 @@
198198
"to": "defaults",
199199
"filter": ["**/*"]
200200
},
201+
{
202+
"from": "./redisinsight/api/data",
203+
"to": "data",
204+
"filter": ["**/*"]
205+
},
201206
{
202207
"from": "LICENSE",
203208
"to": "LICENSE.redisinsight.txt"

redisinsight/api/config/default.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,16 @@ const defaultPluginsUri = join('/', proxyPath, 'static', 'plugins');
2727
const pluginsAssetsUri = join('/', proxyPath, 'static', 'resources', 'plugins');
2828

2929
const socketPath = join('/', proxyPath, 'socket.io');
30+
const dataDir = process.env.RI_BUILD_TYPE === 'ELECTRON' && process['resourcesPath']
31+
? join(process['resourcesPath'], 'data')
32+
: join(__dirname, '..', 'data');
3033

3134
export default {
3235
dir_path: {
3336
tmpDir: os.tmpdir(),
3437
homedir,
3538
prevHomedir: homedir,
39+
dataDir: process.env.RI_DATA_DIR || dataDir,
3640
staticDir,
3741
defaultsDir,
3842
logs: join(homedir, 'logs'),
@@ -71,7 +75,7 @@ export default {
7175
tlsKey: process.env.RI_SERVER_TLS_KEY,
7276
staticContent: !!process.env.RI_SERVE_STATICS || true,
7377
buildType: process.env.RI_BUILD_TYPE || 'DOCKER_ON_PREMISE',
74-
appVersion: process.env.RI_APP_VERSION || '2.46.0',
78+
appVersion: process.env.RI_APP_VERSION || '2.48.0',
7579
requestTimeout: parseInt(process.env.RI_REQUEST_TIMEOUT, 10) || 25000,
7680
excludeRoutes: [],
7781
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.46.0',
8+
version: '2.48.0',
99
},
1010
tags: [],
1111
};

redisinsight/api/config/test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
export default {
2+
dir_path: {
3+
dataDir: process.env.RI_DATA_DIR || '.test_run/data',
4+
},
25
server: {
36
env: 'test',
47
requestTimeout: parseInt(process.env.RI_REQUEST_TIMEOUT, 10) || 1000,

redisinsight/api/data/common

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
set foo bar

redisinsight/api/data/json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
json.set jsonKey . "{\"key\":\"value\"}"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"files": [
3+
{
4+
"path": "common"
5+
},
6+
{
7+
"path": "json",
8+
"modules": ["rejson"]
9+
}
10+
]
11+
}

redisinsight/api/nest-cli.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
{
1111
"include": "../defaults/**/*",
1212
"outDir": "dist/defaults"
13+
},
14+
{
15+
"include": "../data/**/*",
16+
"outDir": "dist/data"
1317
}
1418
]
1519
}

redisinsight/api/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "redisinsight-api",
3-
"version": "2.46.0",
3+
"version": "2.48.0",
44
"description": "RedisInsight API",
55
"private": true,
66
"author": {
@@ -62,6 +62,7 @@
6262
"busboy": "^1.6.0",
6363
"class-transformer": "^0.2.3",
6464
"class-validator": "^0.14.0",
65+
"combined-stream": "^1.0.8",
6566
"connect-timeout": "^1.9.0",
6667
"date-fns": "^2.29.3",
6768
"detect-port": "^1.5.1",

0 commit comments

Comments
 (0)