Skip to content

Commit 2bc4a8e

Browse files
Merge branch 'main' of https://github.com/RedisInsight/RedisInsight into feature/RI-2509-wb-group-mode
2 parents f86a2f2 + 8700076 commit 2bc4a8e

File tree

131 files changed

+3877
-311
lines changed

Some content is hidden

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

131 files changed

+3877
-311
lines changed

.circleci/config.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ jobs:
311311
- run:
312312
name: .AppImage tests
313313
command: |
314-
cd tests/e2e && export TEST_FILES=$(circleci tests glob "tests/**/*.e2e.ts" | circleci tests split) && cd ../..
314+
cd tests/e2e && export TEST_FILES=$(circleci tests glob "tests/**/*.e2e.ts" | circleci tests split --split-by=timings) && cd ../..
315315
.circleci/e2e/test.app-image.sh
316316
- when:
317317
condition:
@@ -348,7 +348,7 @@ jobs:
348348
- run: choco install nodejs --version=16.15.1
349349
- run:
350350
command: |
351-
cd tests/e2e && export TEST_FILES=$(circleci tests glob "tests/**/*.e2e.ts" | circleci tests split) && cd ../..
351+
cd tests/e2e && export TEST_FILES=$(circleci tests glob "tests/**/*.e2e.ts" | circleci tests split --split-by=timings) && cd ../..
352352
.circleci/e2e/test.exe.cmd
353353
shell: bash.exe
354354
- when:
@@ -399,7 +399,7 @@ jobs:
399399
- run:
400400
name: Run tests
401401
command: |
402-
cd tests/e2e && export TEST_FILES=$(circleci tests glob "tests/**/*.e2e.ts" | circleci tests split) && cd ../..
402+
cd tests/e2e && export TEST_FILES=$(circleci tests glob "tests/**/*.e2e.ts" | circleci tests split --split-by=timings) && cd ../..
403403
TEST_BIG_DB_DUMP=$TEST_BIG_DB_DUMP \
404404
docker-compose \
405405
-f tests/e2e/rte.docker-compose.yml \
@@ -413,7 +413,7 @@ jobs:
413413
- run:
414414
name: Run tests
415415
command: |
416-
cd tests/e2e && export TEST_FILES=$(circleci tests glob "tests/**/*.e2e.ts" | circleci tests split) && cd ../..
416+
cd tests/e2e && export TEST_FILES=$(circleci tests glob "tests/**/*.e2e.ts" | circleci tests split --split-by=timings) && cd ../..
417417
TEST_BIG_DB_DUMP=$TEST_BIG_DB_DUMP \
418418
docker-compose \
419419
-f tests/e2e/rte.docker-compose.yml \
@@ -1218,12 +1218,12 @@ workflows:
12181218
requires:
12191219
- Build docker image
12201220
# e2e desktop tests on AppImage build
1221-
- e2e-app-image:
1222-
name: E2ETest (AppImage) - Nightly
1223-
parallelism: 4
1224-
report: true
1225-
requires:
1226-
- Build app - Linux (stage)
1221+
# - e2e-app-image:
1222+
# name: E2ETest (AppImage) - Nightly
1223+
# parallelism: 4
1224+
# report: true
1225+
# requires:
1226+
# - Build app - Linux (stage)
12271227
# # e2e desktop tests on exe build
12281228
# - e2e-exe:
12291229
# name: E2ETest (exe) - Nightly

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,6 @@ vendor
5858

5959
# Parcel
6060
.parcel-cache
61+
62+
# caches
63+
.temp_cache

configs/webpack.config.web.dev.babel.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* https://webpack.js.org/concepts/hot-module-replacement/
66
*/
77

8+
import path from 'path';
89
import webpack from 'webpack';
910
import { merge } from 'webpack-merge';
1011
import ip from 'ip';
@@ -21,6 +22,18 @@ export default merge(commonConfig, {
2122

2223
mode: 'development',
2324

25+
cache: {
26+
type: 'filesystem',
27+
allowCollectingMemory: true,
28+
cacheDirectory: path.resolve(__dirname, '../.temp_cache'),
29+
name: 'webpack',
30+
maxAge: 86_400_000, // 1 day
31+
buildDependencies: {
32+
// This makes all dependencies of this file - build dependencies
33+
config: [__filename],
34+
}
35+
},
36+
2437
devtool: 'source-map',
2538

2639
entry: [

jest.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ module.exports = {
1616
'rehype-stringify': '<rootDir>/redisinsight/__mocks__/rehypeStringify.js',
1717
'unist-util-visit': '<rootDir>/redisinsight/__mocks__/unistUtilsVisit.js',
1818
'react-children-utilities': '<rootDir>/redisinsight/__mocks__/react-children-utilities.js',
19+
d3: '<rootDir>/node_modules/d3/dist/d3.min.js',
1920
},
2021
setupFiles: [
2122
'<rootDir>/redisinsight/ui/src/setup-env.ts',
@@ -38,6 +39,11 @@ module.exports = {
3839
transformIgnorePatterns: [
3940
'node_modules/(?!(monaco-editor|react-monaco-editor)/)',
4041
],
42+
// TODO: add tests for plugins
43+
modulePathIgnorePatterns: [
44+
'<rootDir>/redisinsight/ui/src/packages',
45+
'<rootDir>/redisinsight/ui/src/mocks',
46+
],
4147
coverageThreshold: {
4248
global: {
4349
statements: 70,

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@
110110
"@testing-library/user-event": "^14.4.3",
111111
"@types/axios": "^0.14.0",
112112
"@types/classnames": "^2.2.11",
113+
"@types/d3": "^7.4.0",
113114
"@types/date-fns": "^2.6.0",
114115
"@types/detect-port": "^1.3.0",
115116
"@types/electron-store": "^3.2.0",
@@ -216,6 +217,7 @@
216217
"buffer": "^6.0.3",
217218
"classnames": "^2.3.1",
218219
"connection-string": "^4.3.2",
220+
"d3": "^7.6.1",
219221
"date-fns": "^2.16.1",
220222
"detect-port": "^1.3.0",
221223
"electron-context-menu": "^3.1.0",
Lines changed: 25 additions & 0 deletions
Loading
Lines changed: 17 additions & 0 deletions
Loading
Lines changed: 17 additions & 0 deletions
Loading
Lines changed: 20 additions & 0 deletions
Loading
Lines changed: 25 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)