Skip to content

Commit 2e62def

Browse files
authored
Merge pull request #3094 from RedisInsight/release/2.44.0
Release/2.44.0 to latest
2 parents c0e46ef + b55d858 commit 2e62def

File tree

619 files changed

+18756
-20233
lines changed

Some content is hidden

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

619 files changed

+18756
-20233
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
"

.circleci/config.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,9 @@ parameters:
201201
docker:
202202
type: string
203203
default: *ignore
204+
redis_client:
205+
type: string
206+
default: ""
204207

205208
jobs:
206209
# Test jobs
@@ -302,6 +305,10 @@ jobs:
302305
description: Send report for test run to slack
303306
type: boolean
304307
default: false
308+
redis_client:
309+
description: Library to use for redis connection
310+
type: string
311+
default: ""
305312
steps:
306313
- checkout
307314
- restore_cache:
@@ -319,6 +326,10 @@ jobs:
319326
- run:
320327
name: Run tests
321328
command: |
329+
if [ << parameters.redis_client >> != "" ]; then
330+
export RI_REDIS_CLIENTS_FORCE_STRATEGY=<< parameters.redis_client >>
331+
fi
332+
322333
./redisinsight/api/test/test-runs/start-test-run.sh -r << parameters.rte >> -t << parameters.build >>
323334
mkdir -p mkdir itest/coverages && mkdir -p itest/results
324335
cp ./redisinsight/api/test/test-runs/coverage/test-run-result.json ./itest/results/<< parameters.rte >>.result.json
@@ -410,7 +421,11 @@ jobs:
410421
- checkout
411422
- attach_workspace:
412423
at: .
413-
- run: choco install nodejs --version=18.15.0
424+
- run:
425+
command: |
426+
nvm install 18.15.0
427+
nvm use 18.15.0
428+
npm install --global yarn
414429
- run:
415430
command: |
416431
cd tests/e2e && export TEST_FILES=$(circleci tests glob "tests/electron/**/*.e2e.ts" | circleci tests split --split-by=timings) && cd ../..
@@ -755,7 +770,10 @@ jobs:
755770
- run:
756771
name: Build windows exe
757772
command: |
758-
choco install nodejs --version=18.15.0
773+
nvm install 18.15.0
774+
nvm use 18.15.0
775+
npm install --global yarn
776+
759777
# set ALL_REDIS_COMMANDS=$(curl $ALL_REDIS_COMMANDS_RAW_URL)
760778
yarn install
761779
yarn --cwd redisinsight/api/ install
@@ -1175,6 +1193,7 @@ workflows:
11751193
- /^be/feature.*/
11761194
- /^be/bugfix.*/
11771195
- integration-tests-run:
1196+
redis_client: << pipeline.parameters.redis_client >>
11781197
matrix:
11791198
alias: itest-code
11801199
parameters:
@@ -1251,6 +1270,8 @@ workflows:
12511270
alias: itest-code
12521271
parameters:
12531272
rte: *iTestsNames
1273+
redis_client:
1274+
- << pipeline.parameters.redis_client >>
12541275
name: ITest - << matrix.rte >> (code)
12551276
requires:
12561277
- Start All Tests
@@ -1487,6 +1508,8 @@ workflows:
14871508
alias: itest-code
14881509
parameters:
14891510
rte: *iTestsNames
1511+
redis_client:
1512+
- << pipeline.parameters.redis_client >>
14901513
name: ITest - << matrix.rte >> (code)
14911514
filters: *releaseAndLatestFilter
14921515
- integration-tests-coverage:

configs/webpack.config.web.common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export default {
6565

6666
plugins: [
6767
new webpack.DefinePlugin({
68-
'window.app.config.apiPort': JSON.stringify('5000'),
68+
'window.app.config.apiPort': JSON.stringify('5540'),
6969
}),
7070

7171
new HtmlWebpackPlugin({ template: 'index.html.ejs' }),

configs/webpack.config.web.dev.ts

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,32 @@
66
*/
77

88
import path from 'path';
9+
import os from 'os';
910
import webpack from 'webpack';
1011
import { merge } from 'webpack-merge';
11-
import ip from 'ip';
1212
import { toString } from 'lodash'
1313
import commonConfig from './webpack.config.web.common';
1414

1515
function employCache(loaders) {
1616
return ['cache-loader'].concat(loaders);
1717
}
1818

19-
const HOST = process.env.PUBLIC_DEV ? ip.address(): 'localhost'
19+
const getLocalIpAddress = () => {
20+
const ifaces = os.networkInterfaces();
21+
22+
for (const ifaceName of Object.keys(ifaces)) {
23+
const firstIpv4Address = ifaces[ifaceName].find(alias => alias.family === 'IPv4' && !alias.internal);
24+
25+
if (firstIpv4Address) {
26+
return firstIpv4Address.address;
27+
}
28+
}
29+
30+
return 'localhost';
31+
};
32+
33+
34+
const HOST = process.env.PUBLIC_DEV ? getLocalIpAddress(): 'localhost';
2035

2136
const configuration: webpack.Configuration = {
2237
target: 'web',

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@
8484
"word-wrap": "1.2.4",
8585
"electron-builder/app-builder-lib/@electron/universal/dir-compare/minimatch": "^3.0.5",
8686
"**/semver": "^7.5.2",
87-
"rawproto/protobufjs": "^7.2.4"
87+
"rawproto/protobufjs": "^7.2.4",
88+
"**/follow-redirects": "^1.15.4"
8889
},
8990
"devDependencies": {
9091
"@babel/core": "^7.23.2",
@@ -190,7 +191,6 @@
190191
"husky": "^4.2.5",
191192
"identity-obj-proxy": "^3.0.0",
192193
"ioredis-mock": "^5.5.4",
193-
"ip": "^1.1.8",
194194
"jest": "^29.7.0",
195195
"jest-environment-jsdom": "^29.7.0",
196196
"jest-runner-groups": "^2.2.0",

redisinsight/api/.eslintrc.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ module.exports = {
2020
},
2121
overrides: [
2222
{
23-
files: [ '**/*.spec.ts' ],
23+
files: [ '**/*.spec.ts', '**/__mocks__/**/*' ],
2424
rules: {
25-
'no-duplicate-string': 'off',
25+
'sonarjs/no-duplicate-string': 0,
26+
'sonarjs/no-identical-functions': 0,
27+
'import/first': 0,
2628
}
2729
}
2830
]

redisinsight/api/config/default.ts

Lines changed: 4 additions & 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: [],
@@ -72,6 +72,9 @@ export default {
7272
migrationsRun: process.env.RI_DB_MIGRATIONS ? process.env.RI_DB_MIGRATIONS === 'true' : true,
7373
},
7474
redis_clients: {
75+
forceStrategy: process.env.RI_REDIS_CLIENTS_FORCE_STRATEGY,
76+
idleThreshold: parseInt(process.env.RI_REDIS_CLIENTS_IDLE_THRESHOLD, 10) || 1000 * 60 * 60, // 1h
77+
syncInterval: parseInt(process.env.RI_REDIS_CLIENTS_SYNC_INTERVAL, 10) || 1000 * 60, // 1m
7578
idleSyncInterval: parseInt(process.env.RI_CLIENTS_IDLE_SYNC_INTERVAL, 10) || 1000 * 60 * 60, // 1hr
7679
maxIdleThreshold: parseInt(process.env.RI_CLIENTS_MAX_IDLE_THRESHOLD, 10) || 1000 * 60 * 60, // 1hr
7780
retryTimes: parseInt(process.env.RI_CLIENTS_RETRY_TIMES, 10) || 3,

redisinsight/api/config/features-config.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": 2.3403,
2+
"version": 2.3405,
33
"features": {
44
"insightsRecommendations": {
55
"flag": true,
@@ -82,6 +82,13 @@
8282
}
8383
]
8484
}
85+
},
86+
"redisClient": {
87+
"flag": true,
88+
"perc": [[0, 100]],
89+
"data": {
90+
"strategy": "ioredis"
91+
}
8592
}
8693
}
8794
}

redisinsight/api/config/ormconfig.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ import { CaCertificateEntity } from 'src/modules/certificate/entities/ca-certifi
1313
import { ClientCertificateEntity } from 'src/modules/certificate/entities/client-certificate.entity';
1414
import { DatabaseEntity } from 'src/modules/database/entities/database.entity';
1515
import { SshOptionsEntity } from 'src/modules/ssh/entities/ssh-options.entity';
16-
import { BrowserHistoryEntity } from 'src/modules/browser/entities/browser-history.entity';
16+
import { BrowserHistoryEntity } from 'src/modules/browser/browser-history/entities/browser-history.entity';
1717
import { CustomTutorialEntity } from 'src/modules/custom-tutorial/entities/custom-tutorial.entity';
1818
import { FeatureEntity } from 'src/modules/feature/entities/feature.entity';
1919
import { FeaturesConfigEntity } from 'src/modules/feature/entities/features-config.entity';
2020
import { CloudDatabaseDetailsEntity } from 'src/modules/cloud/database/entities/cloud-database-details.entity';
21+
import { CloudCapiKeyEntity } from 'src/modules/cloud/capi-key/entity/cloud-capi-key.entity';
2122
import migrations from '../migration';
2223
import * as config from '../src/utils/config';
23-
import { CloudCapiKeyEntity } from 'src/modules/cloud/capi-key/entity/cloud-capi-key.entity';
2424

2525
const dbConfig = config.get('db');
2626

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
};

0 commit comments

Comments
 (0)