Skip to content

Commit 5283730

Browse files
committed
Merge branch 'main' into fe/bugfix/RI-5610
2 parents 18c158f + 6433717 commit 5283730

File tree

74 files changed

+1018
-623
lines changed

Some content is hidden

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

74 files changed

+1018
-623
lines changed

.circleci/build/build.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ RUN mkdir -p /data && chown -R node:node /data
2828
COPY --chown=node:node ./docker-entry.sh ./
2929
RUN chmod +x docker-entry.sh
3030

31-
# since RI is hard-code to port 5000, expose it from the container
32-
EXPOSE 5000
31+
# since RI is hard-code to port 5540, expose it from the container
32+
EXPOSE 5540
3333

3434
# don't run the node process as root
3535
USER node

.circleci/build/release-docker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -e
33

44
HELP="Args:
5-
-v - Semver (2.64.0)
5+
-v - Semver (2.64.1)
66
-d - Build image repository (Ex: -d redisinsight)
77
-r - Target repository (Ex: -r redis/redisinsight)
88
"

.github/build/build.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ RUN mkdir -p /data && chown -R node:node /data
2828
COPY --chown=node:node ./docker-entry.sh ./
2929
RUN chmod +x docker-entry.sh
3030

31-
# since RI is hard-code to port 5000, expose it from the container
32-
EXPOSE 5000
31+
# since RI is hard-code to port 5540, expose it from the container
32+
EXPOSE 5540
3333

3434
# don't run the node process as root
3535
USER node

.github/build/release-docker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -e
33

44
HELP="Args:
5-
-v - Semver (2.64.0)
5+
-v - Semver (2.64.1)
66
-d - Build image repository (Ex: -d redisinsight)
77
-r - Target repository (Ex: -r redis/redisinsight)
88
"

.github/workflows/tests-integration.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ jobs:
114114
run: |
115115
docker image load -i ./release/docker/docker-linux-alpine.amd64.tar
116116
117+
- name: Make sure coverage dir exists
118+
# Important: this directory is mounted on both the `app` and `test` Docker containers.
119+
run: mkdir -p ./redisinsight/api/test/test-runs/coverage
120+
117121
- name: Run tests
118122
timeout-minutes: 20
119123
run: |
@@ -122,7 +126,7 @@ jobs:
122126
fi
123127
124128
./redisinsight/api/test/test-runs/start-test-run.sh -r ${{ matrix.rte }} -t ${{ inputs.build }}
125-
mkdir -p mkdir itest/coverages && mkdir -p itest/results
129+
mkdir -p itest/coverages && mkdir -p itest/results
126130
127131
cp ./redisinsight/api/test/test-runs/coverage/test-run-result.json ./itest/results/${{ matrix.rte }}.result.json
128132
cp ./redisinsight/api/test/test-runs/coverage/test-run-result.xml ./itest/results/${{ matrix.rte }}.result.xml

babel.config.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module.exports = (api) => {
88
require('@babel/preset-env'),
99
require('@babel/preset-typescript'),
1010
[require('@babel/preset-react'), { development }],
11+
[require('babel-preset-vite'), { env: true, glob: false }],
1112
],
1213
}
1314
}

jest.config.cjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ module.exports = {
2525
d3: '<rootDir>/node_modules/d3/dist/d3.min.js',
2626
'^uuid$': require.resolve('uuid'),
2727
msgpackr: require.resolve('msgpackr'),
28+
'brotli-dec-wasm': '<rootDir>/redisinsight/__mocks__/brotli-dec-wasm.js',
2829
},
2930
setupFiles: [
3031
'construct-style-sheets-polyfill',
@@ -35,7 +36,7 @@ module.exports = {
3536
moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx', 'json'],
3637
testEnvironment: 'jest-environment-jsdom',
3738
transformIgnorePatterns: [
38-
'node_modules/(?!(monaco-editor|react-monaco-editor)/)',
39+
'node_modules/(?!(monaco-editor|react-monaco-editor|brotli-dec-wasm)/)',
3940
],
4041
// TODO: add tests for plugins
4142
modulePathIgnorePatterns: [
@@ -70,4 +71,4 @@ module.exports = {
7071
globals: {
7172
riConfig: {}
7273
}
73-
};
74+
}

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
"word-wrap": "1.2.4",
8888
"**/semver": "^7.5.2",
8989
"rawproto/protobufjs": "^7.2.5",
90+
"@electron/notarize": "2.3.2",
9091
"webpack-bundle-analyzer/ws": "^7.5.10",
9192
"msw/path-to-regexp": "^6.3.0",
9293
"msw/cookie": "^0.7.0",
@@ -139,6 +140,7 @@
139140
"@vitejs/plugin-react": "^4.2.1",
140141
"@vitejs/plugin-react-swc": "^3.6.0",
141142
"assert": "^2.1.0",
143+
"babel-preset-vite": "^1.1.3",
142144
"concurrently": "^9.0.1",
143145
"construct-style-sheets-polyfill": "^3.1.0",
144146
"copyfiles": "^2.4.1",
@@ -197,7 +199,7 @@
197199
"supertest": "^4.0.2",
198200
"terser-webpack-plugin": "^5.3.10",
199201
"text-encoding": "^0.7.0",
200-
"ts-jest": "27.1.5",
202+
"ts-jest": "^29.2.5",
201203
"ts-loader": "^9.5.1",
202204
"ts-mockito": "^2.6.1",
203205
"ts-node": "^10.9.1",
@@ -225,7 +227,7 @@
225227
"@reduxjs/toolkit": "^1.6.2",
226228
"@stablelib/snappy": "^1.0.2",
227229
"axios": "^1.7.4",
228-
"brotli-unicode": "^1.0.2",
230+
"brotli-dec-wasm": "^2.3.0",
229231
"buffer": "^6.0.3",
230232
"classnames": "^2.3.1",
231233
"connection-string": "^4.3.2",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default () => Promise.resolve()

redisinsight/api/config/default.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export default {
8080
migrateOldFolders: process.env.RI_MIGRATE_OLD_FOLDERS ? process.env.RI_MIGRATE_OLD_FOLDERS === 'true' : true,
8181
autoBootstrap: process.env.RI_AUTO_BOOTSTRAP ? process.env.RI_AUTO_BOOTSTRAP === 'true' : true,
8282
buildType: process.env.RI_BUILD_TYPE || 'DOCKER_ON_PREMISE',
83-
appVersion: process.env.RI_APP_VERSION || '2.64.0',
83+
appVersion: process.env.RI_APP_VERSION || '2.64.1',
8484
requestTimeout: parseInt(process.env.RI_REQUEST_TIMEOUT, 10) || 25000,
8585
excludeRoutes: [],
8686
excludeAuthRoutes: [],

0 commit comments

Comments
 (0)