Skip to content

Commit 58be6f2

Browse files
committed
Merge branch 'main' into feature/RI-4617-sign-in-users
# Conflicts: # redisinsight/ui/src/constants/dbAnalysisRecommendations.json # redisinsight/ui/src/pages/databaseAnalysis/components/recommendations-view/Recommendations.tsx # redisinsight/ui/src/slices/interfaces/content.ts # redisinsight/ui/src/utils/recommendation/utils.tsx # redisinsight/ui/src/utils/tests/recommendation/utils.spec.tsx # tests/e2e/tests/critical-path/triggers-and-functions/libraries.e2e.ts
2 parents 7e1c9f1 + 2e95aa3 commit 58be6f2

File tree

109 files changed

+3606
-2043
lines changed

Some content is hidden

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

109 files changed

+3606
-2043
lines changed

electron-builder.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@
105105
"Redis Labs Inc."
106106
]
107107
},
108+
"nsis": {
109+
"oneClick": false,
110+
"perMachine": false,
111+
"allowToChangeInstallationDirectory": true
112+
},
108113
"linux": {
109114
"icon": "./resources/icons",
110115
"target": [

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@
8282
"**/node-sass": "^8.0.0",
8383
"**/trim": "0.0.3",
8484
"word-wrap": "1.2.4",
85-
"electron-builder/app-builder-lib/@electron/universal/dir-compare/minimatch": "^3.0.5"
85+
"electron-builder/app-builder-lib/@electron/universal/dir-compare/minimatch": "^3.0.5",
86+
"**/semver": "^7.5.2",
87+
"rawproto/protobufjs": "^7.2.4"
8688
},
8789
"devDependencies": {
8890
"@babel/core": "^7.12.9",

redisinsight/api/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141
"nanoid": "^3.1.31",
4242
"word-wrap": "1.2.4",
4343
"mocha/minimatch": "^3.0.5",
44-
"@nestjs/platform-socket.io/socket.io": "^4.7.1"
44+
"@nestjs/platform-socket.io/socket.io": "^4.7.1",
45+
"**/semver": "^7.5.2"
4546
},
4647
"dependencies": {
4748
"@nestjs/common": "^9.0.11",

redisinsight/api/src/__mocks__/feature.ts

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

2223
export const mockFeaturesConfigJson = {
2324
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
@@ -86,6 +86,7 @@ describe('ServerService', () => {
8686
anonymousId: mockServer.id,
8787
sessionId,
8888
appType: SERVER_CONFIG.buildType,
89+
appVersion: SERVER_CONFIG.appVersion,
8990
controlNumber: mockControlNumber,
9091
controlGroup: mockControlGroup,
9192
},

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

redisinsight/api/yarn.lock

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -7446,34 +7446,7 @@ schema-utils@^3.1.1, schema-utils@^3.1.2:
74467446
ajv "^6.12.5"
74477447
ajv-keywords "^3.5.2"
74487448

7449-
"semver@2 || 3 || 4 || 5":
7450-
version "5.7.1"
7451-
resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7"
7452-
integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==
7453-
7454-
[email protected], semver@^7.2.1, semver@^7.3.5, semver@^7.3.8:
7455-
version "7.5.0"
7456-
resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.0.tgz#ed8c5dc8efb6c629c88b23d41dc9bf40c1d96cd0"
7457-
integrity sha512-+XC0AD/R7Q2mPSRuy2Id0+CGTZ98+8f+KvwirxOKIEyid+XSx6HbC63p+O4IndTHuX5Z+JxQ0TghCkO5Cg/2HA==
7458-
dependencies:
7459-
lru-cache "^6.0.0"
7460-
7461-
semver@^5.5.0:
7462-
version "5.7.2"
7463-
resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.2.tgz#48d55db737c3287cd4835e17fa13feace1c41ef8"
7464-
integrity sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==
7465-
7466-
semver@^6.0.0, semver@^6.3.0:
7467-
version "6.3.0"
7468-
resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d"
7469-
integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==
7470-
7471-
semver@^6.3.1:
7472-
version "6.3.1"
7473-
resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4"
7474-
integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==
7475-
7476-
semver@^7.3.2:
7449+
"semver@2 || 3 || 4 || 5", [email protected], semver@^5.5.0, semver@^6.0.0, semver@^6.3.0, semver@^6.3.1, semver@^7.2.1, semver@^7.3.2, semver@^7.3.5, semver@^7.3.8, semver@^7.5.2:
74777450
version "7.5.4"
74787451
resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.4.tgz#483986ec4ed38e1c6c48c34894a9182dbff68a6e"
74797452
integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==

0 commit comments

Comments
 (0)