Skip to content

Commit 0a05762

Browse files
author
Artem
committed
Merge branch 'main' into feature/RI-4643-move-to-node-redis
# Conflicts: # redisinsight/ui/src/pages/browser/modules/key-details/components/hash-details/add-hash-fields/AddHashFields.tsx
2 parents 5c65bb8 + 65b8861 commit 0a05762

File tree

54 files changed

+522
-283
lines changed

Some content is hidden

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

54 files changed

+522
-283
lines changed

.circleci/build/sum_sha256.sh

100644100755
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
#!/bin/bash
22
set -e
33

4-
cd ./release/web
5-
6-
for f in *.tar.gz; do
7-
sha256sum "$f" > "$f.sha256"
8-
done
4+
find ./release -type f -name '*.tar.gz' -execdir sh -c 'sha256sum "$1" > "$1.sha256"' _ {} \;

.circleci/config.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,10 @@ jobs:
657657
type: enum
658658
default: stage
659659
enum: ['stage', 'prod', 'dev']
660+
redisstack:
661+
description: Build RedisStack archives
662+
type: boolean
663+
default: true
660664
target:
661665
description: Build target
662666
type: string
@@ -721,6 +725,15 @@ jobs:
721725
rm -rf release/mac
722726
mv release/mas-universal/RedisInsight-mac-universal-mas.pkg release/RedisInsight-mac-universal-mas.pkg
723727
no_output_timeout: 60m
728+
- when:
729+
condition:
730+
equal: [ true, << parameters.redisstack >> ]
731+
steps:
732+
- run:
733+
name: Repack dmg to tar
734+
command: |
735+
ARCH=x64 ./.circleci/redisstack/dmg.repack.sh
736+
ARCH=arm64 ./.circleci/redisstack/dmg.repack.sh
724737
- persist_to_workspace:
725738
root: .
726739
paths:
@@ -729,6 +742,7 @@ jobs:
729742
- release/RedisInsight*.dmg.blockmap
730743
- release/RedisInsight*.pkg
731744
- release/*-mac.yml
745+
- release/redisstack
732746
windows:
733747
executor:
734748
name: win/default
@@ -972,6 +986,7 @@ jobs:
972986
--include "RedisInsight*" \
973987
--include "web/*" \
974988
--include "docker/*"
989+
--include "redisstack/*"
975990
976991
release-aws-private:
977992
executor: linux-executor
@@ -1348,6 +1363,7 @@ workflows:
13481363
- macosx:
13491364
name: Build app - MacOS (stage)
13501365
env: stage
1366+
redisstack: false
13511367
target: << pipeline.parameters.mac >>
13521368
requires:
13531369
- Setup build (stage)
@@ -1584,6 +1600,19 @@ workflows:
15841600
name: Build docker images (prod)
15851601
env: production
15861602
requires: *prodElectronBuildRequires
1603+
# e2e desktop tests on AppImage build
1604+
- e2e-app-image:
1605+
name: E2ETest (AppImage)
1606+
parallelism: 2
1607+
requires:
1608+
- Build app - Linux (prod)
1609+
# e2e docker tests
1610+
- e2e-tests:
1611+
name: E2ETest
1612+
build: docker
1613+
parallelism: 4
1614+
requires:
1615+
- Build docker images (prod)
15871616
# virus check all electron apps (prod)
15881617
- virustotal-file:
15891618
name: Virus check - AppImage (prod)

electron-builder.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"productName": "RedisInsight",
33
"appId": "org.RedisLabs.RedisInsight-V2",
4-
"copyright": "Copyright © 2023 Redis Ltd.",
4+
"copyright": "Copyright © 2024 Redis Ltd.",
55
"files": [
66
"dist",
77
"node_modules",

redisinsight/api/config/default.ts

Lines changed: 1 addition & 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.40.0',
60+
appVersion: process.env.RI_APP_VERSION || '2.42.0',
6161
requestTimeout: parseInt(process.env.RI_REQUEST_TIMEOUT, 10) || 25000,
6262
excludeRoutes: [],
6363
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.40.0',
8+
version: '2.42.0',
99
},
1010
tags: [],
1111
};

redisinsight/api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "redisinsight-api",
3-
"version": "2.40.0",
3+
"version": "2.42.0",
44
"description": "RedisInsight API",
55
"private": true,
66
"author": {

redisinsight/api/src/modules/custom-tutorial/providers/custom-tutorial.fs.provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export class CustomTutorialFsProvider {
7979

8080
return this.unzipToTmpFolder(new AdmZip(data));
8181
} catch (e) {
82-
this.logger.error('Unable to fetch zip file from external source', e);
82+
this.logger.error('Unable to fetch zip file from external source');
8383
throw wrapHttpError(e, ERROR_MESSAGES.CUSTOM_TUTORIAL_UNABLE_TO_FETCH_FROM_EXTERNAL);
8484
}
8585
}

redisinsight/api/src/modules/statics-management/statics-management.module.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { Module } from '@nestjs/common';
22
import { ServeStaticModule } from '@nestjs/serve-static';
33
import { join } from 'path';
44
import config, { Config } from 'src/utils/config';
5+
import { Response } from 'express';
56
import { AutoUpdatedStaticsProvider } from './providers/auto-updated-statics.provider';
67

78
const SERVER_CONFIG = config.get('server') as Config['server'];
@@ -10,20 +11,29 @@ const TUTORIALS_CONFIG = config.get('tutorials') as Config['tutorials'];
1011

1112
const CONTENT_CONFIG = config.get('content');
1213

14+
const downloadableStaticFiles = (res: Response) => {
15+
if (res.req?.query?.download === 'true') {
16+
res.setHeader('Content-Type', 'application/octet-stream');
17+
res.setHeader('Content-Disposition', 'attachment;');
18+
}
19+
};
20+
1321
@Module({
1422
imports: [
1523
ServeStaticModule.forRoot({
1624
serveRoot: SERVER_CONFIG.tutorialsUri,
1725
rootPath: join(PATH_CONFIG.tutorials),
1826
serveStaticOptions: {
1927
fallthrough: false,
28+
setHeaders: downloadableStaticFiles,
2029
},
2130
}),
2231
ServeStaticModule.forRoot({
2332
serveRoot: SERVER_CONFIG.customTutorialsUri,
2433
rootPath: join(PATH_CONFIG.customTutorials),
2534
serveStaticOptions: {
2635
fallthrough: false,
36+
setHeaders: downloadableStaticFiles,
2737
},
2838
}),
2939
ServeStaticModule.forRoot({

redisinsight/desktop/src/lib/aboutPanel/aboutPanel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const ICON_PATH = app.isPackaged
88

99
export const AboutPanelOptions = {
1010
applicationName: 'RedisInsight',
11-
applicationVersion: `${app.getVersion() || '2.40.0'}${
11+
applicationVersion: `${app.getVersion() || '2.42.0'}${
1212
!config.isProduction ? `-dev-${process.getCreationTime()}` : ''
1313
}`,
1414
copyright: `Copyright © ${new Date().getFullYear()} Redis Ltd.`,

redisinsight/desktop/src/lib/app/deep-link.handlers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const deepLinkHandler = async (from?: string): Promise<undefined | IParse
2222
break
2323
default:
2424
return {
25-
from: encodeURIComponent(from),
25+
from,
2626
target: url.query?.target || '_self',
2727
initialPage: url.query?.initialPage,
2828
} as IParsedDeepLink

0 commit comments

Comments
 (0)