Skip to content

Commit 7d6788d

Browse files
committed
Merge branch 'main' into fe/bugfix/RI-4825-fix-deleting-key
# Conflicts: # redisinsight/ui/src/pages/browser/BrowserPage.tsx # redisinsight/ui/src/pages/browser/components/browser-left-panel/BrowserLeftPanel.tsx # redisinsight/ui/src/pages/browser/components/key-tree/KeyTree.tsx
2 parents cea58cd + 20f1724 commit 7d6788d

Some content is hidden

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

59 files changed

+1212
-73
lines changed

electron-builder.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@
9999
"Redis Labs Inc."
100100
]
101101
},
102+
"nsis": {
103+
"oneClick": false,
104+
"perMachine": false,
105+
"allowToChangeInstallationDirectory": true
106+
},
102107
"linux": {
103108
"icon": "./resources/icons",
104109
"target": [

redisinsight/api/src/__mocks__/feature.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export const mockFeaturesConfigId = '1';
1717
export const mockFeaturesConfigVersion = defaultConfig.version + 0.111;
1818
export const mockControlNumber = 7.68;
1919
export const mockControlGroup = '7';
20+
export const mockAppVersion = '2.1.0';
2021

2122
export const mockFeaturesConfigJson = {
2223
version: mockFeaturesConfigVersion,

redisinsight/api/src/modules/analytics/analytics.service.spec.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Test, TestingModule } from '@nestjs/testing';
22
import {
33
mockAppSettings,
4-
mockAppSettingsWithoutPermissions, mockControlGroup, mockControlNumber,
4+
mockAppSettingsWithoutPermissions, mockAppVersion, mockControlGroup, mockControlNumber,
55
mockSettingsService,
66
MockType,
77
} from 'src/__mocks__';
@@ -59,6 +59,7 @@ describe('AnalyticsService', () => {
5959
appType: AppType.Electron,
6060
controlNumber: mockControlNumber,
6161
controlGroup: mockControlGroup,
62+
appVersion: mockAppVersion,
6263
});
6364

6465
const anonymousId = service.getAnonymousId();
@@ -76,6 +77,7 @@ describe('AnalyticsService', () => {
7677
appType: AppType.Electron,
7778
controlNumber: mockControlNumber,
7879
controlGroup: mockControlGroup,
80+
appVersion: mockAppVersion,
7981
});
8082
});
8183
it('should send event with anonymousId if permission are granted', async () => {
@@ -95,6 +97,7 @@ describe('AnalyticsService', () => {
9597
buildType: AppType.Electron,
9698
controlNumber: mockControlNumber,
9799
controlGroup: mockControlGroup,
100+
appVersion: mockAppVersion,
98101
},
99102
});
100103
});
@@ -126,6 +129,7 @@ describe('AnalyticsService', () => {
126129
buildType: AppType.Electron,
127130
controlNumber: mockControlNumber,
128131
controlGroup: mockControlGroup,
132+
appVersion: mockAppVersion,
129133
},
130134
});
131135
});

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export interface ITelemetryInitEvent {
2121
appType: string;
2222
controlNumber: number;
2323
controlGroup: string;
24+
appVersion: string;
2425
}
2526

2627
@Injectable()
@@ -35,6 +36,8 @@ export class AnalyticsService {
3536

3637
private controlGroup: string = '-1';
3738

39+
private appVersion: string = '2.0.0';
40+
3841
private analytics;
3942

4043
constructor(
@@ -48,12 +51,13 @@ export class AnalyticsService {
4851
@OnEvent(AppAnalyticsEvents.Initialize)
4952
public initialize(payload: ITelemetryInitEvent) {
5053
const {
51-
anonymousId, sessionId, appType, controlNumber, controlGroup,
54+
anonymousId, sessionId, appType, controlNumber, controlGroup, appVersion,
5255
} = payload;
5356
this.sessionId = sessionId;
5457
this.anonymousId = anonymousId;
5558
this.appType = appType;
5659
this.controlGroup = controlGroup;
60+
this.appVersion = appVersion;
5761
this.controlNumber = controlNumber;
5862
this.analytics = new Analytics(ANALYTICS_CONFIG.writeKey, {
5963
flushInterval: ANALYTICS_CONFIG.flushInterval,
@@ -87,6 +91,7 @@ export class AnalyticsService {
8791
buildType: this.appType,
8892
controlNumber: this.controlNumber,
8993
controlGroup: this.controlGroup,
94+
appVersion: this.appVersion,
9095
},
9196
});
9297
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export class ProfilerController {
2424

2525
res.setHeader('Content-Type', 'application/octet-stream');
2626
res.setHeader('Content-Disposition', `attachment;filename="${filename}.txt"`);
27+
res.setHeader('Access-Control-Expose-Headers', 'Content-Disposition');
2728

2829
stream
2930
.on('error', () => res.status(404).send())

redisinsight/api/src/modules/server/server.service.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ describe('ServerService', () => {
9090
anonymousId: mockServer.id,
9191
sessionId,
9292
appType: SERVER_CONFIG.buildType,
93+
appVersion: SERVER_CONFIG.appVersion,
9394
controlNumber: mockControlNumber,
9495
controlGroup: mockControlGroup,
9596
},

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export class ServerService implements OnApplicationBootstrap {
5252
anonymousId: server.id,
5353
sessionId: this.sessionId,
5454
appType: ServerService.getAppType(SERVER_CONFIG.buildType),
55+
appVersion: SERVER_CONFIG.appVersion,
5556
...(await this.featuresConfigService.getControlInfo()),
5657
});
5758

Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)