Skip to content

Commit 5dd7f91

Browse files
authored
Merge pull request #2392 from RedisInsight/release/2.30.0
Release/2.30.0 to latest
2 parents e6a3d61 + be2a9bd commit 5dd7f91

File tree

395 files changed

+13384
-2131
lines changed

Some content is hidden

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

395 files changed

+13384
-2131
lines changed

.circleci/config.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,10 @@ orbs:
173173
executors:
174174
linux-executor:
175175
machine:
176-
image: ubuntu-2004:202010-01
176+
image: ubuntu-2004:2023.04.2
177177
linux-executor-dlc:
178178
machine:
179-
image: ubuntu-2004:202010-01
179+
image: ubuntu-2004:2023.04.2
180180
docker_layer_caching: true
181181

182182
jobs:
@@ -790,6 +790,9 @@ jobs:
790790
root: .
791791
paths:
792792
- ./docker-release
793+
- store_artifacts:
794+
path: docker-release
795+
destination: docker-release
793796

794797
# Release jobs
795798
store-build-artifacts:

.dockerignore

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,15 @@
44
.circleci
55
.docker
66

7-
coverage
8-
dll
97
**/node_modules
108
release
119

12-
redisinsight/dist
13-
redisinsight/node_modules
14-
redisinsight/main.prod.js
15-
16-
redisinsight/api/.nyc_output
17-
redisinsight/api/coverage
18-
redisinsight/api/dist
19-
redisinsight/api/node_modules
10+
**/dist
11+
**/coverage
12+
**/dll
13+
**/.issues
14+
**/.parcel-cache
15+
**/.temp_cache
16+
**/.nyc_output
2017

21-
redisinsight/ui/dist
18+
redisinsight/main.prod.js

configs/webpack.config.renderer.dev.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ const configuration: webpack.Configuration = {
232232

233233
new ReactRefreshWebpackPlugin(),
234234

235-
new MonacoWebpackPlugin({ languages: ['json'], features: ['!rename'] }),
235+
new MonacoWebpackPlugin({ languages: ['json', 'javascript', 'typescript'], features: ['!rename'] }),
236236

237237
...htmlPagesNames.map((htmlPageName) => (
238238
new HtmlWebpackPlugin({

configs/webpack.config.renderer.prod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ const configuration: webpack.Configuration = {
180180
},
181181

182182
plugins: [
183-
new MonacoWebpackPlugin({ languages: ['json'], features: ['!rename'] }),
183+
new MonacoWebpackPlugin({ languages: ['json', 'javascript', 'typescript'], features: ['!rename'] }),
184184

185185
new webpack.EnvironmentPlugin({
186186
NODE_ENV: 'production',

configs/webpack.config.web.common.ts

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

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

73-
new MonacoWebpackPlugin({ languages: ['json'], features: ['!rename'] }),
73+
new MonacoWebpackPlugin({ languages: ['json', 'javascript', 'typescript'], features: ['!rename'] }),
7474

7575
new webpack.IgnorePlugin({
7676
checkResource(resource) {

electron-builder.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"type": "distribution",
3030
"hardenedRuntime": true,
3131
"darkModeSupport": true,
32-
"bundleVersion": "50",
32+
"bundleVersion": "70",
3333
"icon": "resources/icon.icns",
3434
"artifactName": "${productName}-${os}-${arch}.${ext}",
3535
"entitlements": "resources/entitlements.mac.plist",

redisinsight/__mocks__/monacoMock.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ export default function MonacoEditor(props) {
1515
createContextKey: jest.fn(),
1616
focus: jest.fn(),
1717
onDidChangeCursorPosition: jest.fn(),
18+
onDidAttemptReadOnlyEdit: jest.fn(),
1819
executeEdits: jest.fn(),
19-
updateOptions: jest.fn()
20+
updateOptions: jest.fn(),
21+
setSelection: jest.fn(),
2022
},
2123
// monaco
2224
{
@@ -57,3 +59,7 @@ export const languages = {
5759
InsertAsSnippet: 4
5860
}
5961
}
62+
63+
export const monaco = {
64+
Selection: jest.fn().mockImplementation(() => { return {} })
65+
}

redisinsight/api/config/default.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default {
5858
tlsKey: process.env.SERVER_TLS_KEY,
5959
staticContent: !!process.env.SERVER_STATIC_CONTENT || false,
6060
buildType: process.env.BUILD_TYPE || 'ELECTRON',
61-
appVersion: process.env.APP_VERSION || '2.28.1',
61+
appVersion: process.env.APP_VERSION || '2.30.0',
6262
requestTimeout: parseInt(process.env.REQUEST_TIMEOUT, 10) || 25000,
6363
excludeRoutes: [],
6464
excludeAuthRoutes: [],
@@ -195,6 +195,13 @@ export default {
195195
url: process.env.COMMANDS_REDISBLOOM_URL
196196
|| 'https://raw.githubusercontent.com/RedisBloom/RedisBloom/master/commands.json',
197197
},
198+
{
199+
name: 'triggers_and_functions',
200+
url: process.env.COMMANDS_TRIGGERS_AND_FUNCTIONS_URL
201+
|| 'https://raw.githubusercontent.com/RedisGears/RedisGears/master/commands.json',
202+
defaultUrl: process.env.COMMANDS_TRIGGERS_AND_FUNCTIONS_DEFAULT_URL
203+
|| 'https://s3.amazonaws.com/redisinsight.download/public/commands/triggers_and_functions.json',
204+
},
198205
],
199206
connections: {
200207
timeout: parseInt(process.env.CONNECTIONS_TIMEOUT_DEFAULT, 10) || 30 * 1_000, // 30 sec

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.28.1',
8+
version: '2.30.0',
99
},
1010
tags: [],
1111
};

redisinsight/api/scripts/default-commands.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ const COMMANDS_CONFIG = get('commands');
88

99
async function init() {
1010
try {
11-
await Promise.all(COMMANDS_CONFIG.map(async ({ name, url }) => {
11+
await Promise.all(COMMANDS_CONFIG.map(async ({ name, url, defaultUrl }) => {
1212
try {
1313
console.log(`Trying to get ${name} commands...`);
14-
const { data } = await axios.get(url, {
14+
const { data } = await axios.get(defaultUrl || url, {
1515
responseType: 'text',
1616
transformResponse: [(raw) => raw],
1717
});

0 commit comments

Comments
 (0)