Skip to content

Commit 2730459

Browse files
committed
Merge branch 'main' into feature/RI-4352-bulk_upload_from_tutorials
2 parents e1e110b + 110e340 commit 2730459

File tree

25 files changed

+8675
-10467
lines changed

25 files changed

+8675
-10467
lines changed

configs/webpack.config.web.dev.babel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export default merge(commonConfig, {
174174

175175
devServer: {
176176
host: HOST,
177-
disableHostCheck: true,
177+
allowedHosts: 'all',
178178
port: 8080,
179179
hot: true, // enable HMR on the server
180180
historyApiFallback: true,

package.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@
7777
],
7878
"homepage": "https://github.com/RedisInsight/RedisInsight#readme",
7979
"resolutions": {
80-
"**/node-sass": "^6.0.1"
80+
"**/node-sass": "^6.0.1",
81+
"**/trim": "0.0.3"
8182
},
8283
"devDependencies": {
8384
"@babel/core": "^7.12.9",
@@ -103,10 +104,7 @@
103104
"@babel/preset-react": "^7.12.7",
104105
"@babel/preset-typescript": "^7.12.7",
105106
"@babel/register": "^7.12.1",
106-
"@nestjs/cli": "^7.0.0",
107-
"@nestjs/schematics": "^7.0.0",
108-
"@nestjs/testing": "^7.0.0",
109-
"@pmmmwh/react-refresh-webpack-plugin": "^0.4.3",
107+
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
110108
"@svgr/webpack": "^6.2.1",
111109
"@teamsupercell/typings-for-css-modules-loader": "^2.4.0",
112110
"@testing-library/jest-dom": "^5.16.4",
@@ -153,7 +151,7 @@
153151
"core-js": "^3.6.5",
154152
"cross-env": "^7.0.2",
155153
"css-loader": "^5.0.1",
156-
"css-minimizer-webpack-plugin": "^1.2.0",
154+
"css-minimizer-webpack-plugin": "^2.0.0",
157155
"electron": "19.0.7",
158156
"electron-builder": "^23.6.0",
159157
"electron-builder-notarize": "^1.5.1",
@@ -211,7 +209,7 @@
211209
"webpack": "^5.5.1",
212210
"webpack-bundle-analyzer": "^4.1.0",
213211
"webpack-cli": "^4.3.0",
214-
"webpack-dev-server": "^3.11.0",
212+
"webpack-dev-server": "^4.13.3",
215213
"webpack-merge": "^5.4.0",
216214
"whatwg-fetch": "^3.6.2",
217215
"yarn-deduplicate": "^3.1.0"

redisinsight/api/src/modules/browser/services/keys-business/keys-business.service.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ describe('KeysBusinessService', () => {
105105
databaseService = module.get(DatabaseService);
106106
browserTool = module.get<BrowserToolService>(BrowserToolService);
107107
browserHistory = module.get<BrowserHistoryService>(BrowserHistoryService);
108-
const scannerManager = get(service, 'scanner');
109-
const keyInfoManager = get(service, 'keyInfoManager');
108+
const scannerManager: any = get(service, 'scanner');
109+
const keyInfoManager: any = get(service, 'keyInfoManager');
110110
standaloneScanner = scannerManager.getStrategy(ConnectionType.STANDALONE);
111111
clusterScanner = scannerManager.getStrategy(ConnectionType.CLUSTER);
112112
stringTypeInfoManager = keyInfoManager.getStrategy(RedisDataType.String);

redisinsight/api/src/modules/profiler/profiler.gateway.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@ export class ProfilerGateway implements OnGatewayConnection, OnGatewayDisconnect
6969
}
7070

7171
static getInstanceId(client: Socket): string {
72-
return get(client, 'handshake.query.instanceId');
72+
return get(client, 'handshake.query.instanceId') as string;
7373
}
7474
}

redisinsight/api/src/modules/profiler/providers/profiler-client.provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class ProfilerClientProvider {
2828

2929
// set database alias as part of the log file name
3030
const alias = (await this.databaseService.get(
31-
get(socket, 'handshake.query.instanceId'),
31+
get(socket, 'handshake.query.instanceId') as string,
3232
)).name;
3333
profilerLogFile.setAlias(alias);
3434

redisinsight/api/src/modules/pub-sub/model/redis-client.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ describe('RedisClient', () => {
8686
});
8787
it('should emit message event (message source)', async () => {
8888
await redisClient['connect']();
89-
const [id, message] = await new Promise((res) => {
89+
const [id, message] = await new Promise((res: (value: any[]) => void) => {
9090
redisClient.on('message', (i, m) => res([i, m]));
9191
nodeClient.emit('message', 'channel-a', 'message-a');
9292
});
@@ -97,7 +97,7 @@ describe('RedisClient', () => {
9797
});
9898
it('should emit message event (pmessage source)', async () => {
9999
await redisClient['connect']();
100-
const [id, message] = await new Promise((res) => {
100+
const [id, message] = await new Promise((res: (value: any[]) => void) => {
101101
redisClient.on('message', (i, m) => res([i, m]));
102102
nodeClient.emit('pmessage', '*', 'channel-aa', 'message-aa');
103103
});

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class RecommendationService {
3939
exclude,
4040
} = dto;
4141

42-
const recommendations = new Map([
42+
const recommendations = new Map<string, () => Promise<Recommendation | null>>([
4343
[
4444
RECOMMENDATION_NAMES.LUA_SCRIPT,
4545
async () => await this.recommendationProvider.determineLuaScriptRecommendation(client),

redisinsight/api/src/modules/workbench/workbench.service.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ export class WorkbenchService {
8181
db,
8282
databaseId: clientMetadata.databaseId,
8383
};
84-
let executionTimeInNanoseconds = BigInt(0);
8584

8685
const startCommandExecutionTime = process.hrtime.bigint();
8786

@@ -96,11 +95,9 @@ export class WorkbenchService {
9695
});
9796
}
9897
const result = await this.commandsExecutor.sendCommand(clientMetadata, { ...dto, command });
99-
const endCommandExecutionTime = process.hrtime.bigint();
100-
101-
executionTimeInNanoseconds += (endCommandExecutionTime - startCommandExecutionTime);
10298
return ({ ...result[0], command });
10399
}));
100+
const executionTimeInNanoseconds = process.hrtime.bigint() - startCommandExecutionTime;
104101

105102
if (Number(executionTimeInNanoseconds) !== 0) {
106103
commandExecution.executionTime = Math.round(Number(executionTimeInNanoseconds) / 1000);

0 commit comments

Comments
 (0)