Skip to content

Commit c4ad95c

Browse files
Merge pull request #261 from RedisInsight/main
new rc
2 parents 3e26849 + 4238f82 commit c4ad95c

File tree

439 files changed

+22270
-5213
lines changed

Some content is hidden

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

439 files changed

+22270
-5213
lines changed

.circleci/config.yml

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,19 +84,27 @@ aliases:
8484
- oss-st-5 # OSS Standalone v5
8585
- oss-st-5-pass # OSS Standalone v5 with admin pass required
8686
- oss-st-6 # OSS Standalone v6 and all modules
87-
#- mods-preview # OSS Standalone and all preview modules // todo: uncomment after broken image will be fixed
87+
- oss-st-big # OSS Standalone v6 and all modules and predefined amount of data inside (~3-4M)
88+
- mods-preview # OSS Standalone and all preview modules
8889
- oss-st-6-tls # OSS Standalone v6 with TLS enabled
8990
- oss-st-6-tls-auth # OSS Standalone v6 with TLS auth required
9091
- oss-clu # OSS Cluster
9192
- oss-clu-tls # OSS Cluster with TLS enabled
9293
- oss-sent # OSS Sentinel
9394
- re-st # Redis Enterprise with Standalone inside
9495
- re-clu # Redis Enterprise with Cluster inside
96+
- re-crdt # Redis Enterprise with active-active database inside
97+
guides-filter: &guidesFilter
98+
filters:
99+
branches:
100+
only:
101+
- guides
95102
dev-filter: &devFilter
96103
filters:
97104
branches:
98105
only:
99106
- main
107+
- /^build\/.*/
100108
stage-filter: &stageFilter
101109
filters:
102110
branches:
@@ -301,6 +309,7 @@ jobs:
301309
- run:
302310
name: Run tests
303311
command: |
312+
TEST_BIG_DB_DUMP=$TEST_BIG_DB_DUMP \
304313
docker-compose -f tests/e2e/docker-compose.yml -f tests/e2e/docker.docker-compose.yml up --abort-on-container-exit
305314
no_output_timeout: 5m
306315
- when:
@@ -310,6 +319,7 @@ jobs:
310319
- run:
311320
name: Run tests
312321
command: |
322+
TEST_BIG_DB_DUMP=$TEST_BIG_DB_DUMP \
313323
docker-compose -f tests/e2e/docker-compose.yml up --abort-on-container-exit
314324
no_output_timeout: 5m
315325
- when:
@@ -441,7 +451,7 @@ jobs:
441451
- release/*-linux.yml
442452
macosx:
443453
macos:
444-
xcode: 11.3.0
454+
xcode: 13.2.1
445455
parameters:
446456
env:
447457
description: Build environment (stage || prod)
@@ -729,6 +739,17 @@ jobs:
729739
730740
done
731741
742+
release-guides:
743+
executor: linux-executor
744+
steps:
745+
- checkout
746+
- run:
747+
name: Release guides
748+
command: |
749+
cd ./redisinsight/ui/src/packages/enablement-area && zip -r data.zip .
750+
mkdir -p _build && mv data.zip ./_build
751+
echo "{\"timestamp\":$(date +%s)}" > ./_build/build.json
752+
aws s3 cp _build/ s3://${AWS_BUCKET_NAME}/public/guides --recursive
732753
workflows:
733754
build:
734755
jobs:
@@ -969,3 +990,13 @@ workflows:
969990
report: true
970991
requires:
971992
- Build docker image
993+
guides:
994+
jobs:
995+
- guides-approve:
996+
type: approval
997+
name: Approve guides release
998+
<<: *guidesFilter
999+
- release-guides:
1000+
name: Build & release
1001+
requires:
1002+
- Approve guides release

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ COPY configs ./configs
1010
COPY scripts ./scripts
1111
COPY redisinsight ./redisinsight
1212
RUN SKIP_POSTINSTALL=1 yarn install
13+
RUN yarn --cwd redisinsight/api
1314
RUN yarn build:web
1415
RUN yarn build:statics
1516

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[![Release](https://img.shields.io/github/v/release/RedisInsight/RedisInsight.svg?sort=semver)](https://github.com/RedisInsight/RedisInsight/releases)
2-
[![CircleCI](https://circleci.com/gh/RedisInsight/RedisInsight/tree/master.svg?style=svg)](https://circleci.com/gh/RedisInsight/RedisInsighth/tree/master)
2+
[![CircleCI](https://circleci.com/gh/RedisInsight/RedisInsight/tree/main.svg?style=svg)](https://circleci.com/gh/RedisInsight/RedisInsight/tree/main)
33
[![Total alerts](https://img.shields.io/lgtm/alerts/g/RedisInsight/RedisInsight.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/RedisInsight/RedisInsight/alerts/)
44

55
# <img src="https://redis.com/wp-content/uploads/2019/11/ico-redisinsight.svg" alt="logo" width="25"/> RedisInsight - Developer GUI for Redis, by Redis.

configs/webpack.config.base.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ export default {
6161
// 'swagger-ui-express',
6262
// 'class-transformer',
6363
// 'class-transformer/storage',
64-
'@nestjs/websockets',
64+
// '@nestjs/websockets',
6565
// '@nestjs/core/adapters/http-adapter',
6666
// '@nestjs/core/helpers/router-method-factory',
6767
// '@nestjs/core/metadata-scanner',
6868
'@nestjs/microservices/microservices-module',
69-
'@nestjs/websockets/socket-module',
69+
// '@nestjs/websockets/socket-module',
7070
];
7171
if (!lazyImports.includes(resource)) {
7272
return false;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ export default {
9797
'reflect-metadata',
9898
'swagger-ui-express',
9999
'class-transformer/storage',
100-
'@nestjs/websockets',
100+
// '@nestjs/websockets',
101101
'@nestjs/microservices/microservices-module',
102-
'@nestjs/websockets/socket-module',
102+
// '@nestjs/websockets/socket-module',
103103
];
104104
if (!lazyImports.includes(resource)) {
105105
return false;

docs/plugins/development.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,11 @@ The following function receives props of the executed commands:
103103
```typescript
104104
interface Props {
105105
command: string; // executed command
106-
data: string; // result of the executed command
106+
data: Result[]; // array of results (one item for Standalone)
107+
}
108+
109+
interface Result {
110+
response: any; // response of the executed command
107111
status: 'success' | 'fail'; // response status of the executed command
108112
}
109113

@@ -131,10 +135,11 @@ inside of the plugin script.
131135

132136
```javascript
133137
const { config, modules } = window.state
134-
const { baseUrl } = config
138+
const { baseUrl, appVersion } = config
135139

136140
// modules - the list of modules of the current database
137141
// baseUrl - url for your plugin folder - can be used to include your assets
142+
// appVersion - version of the RedisInsight application
138143
```
139144

140145
### Plugin rendering
@@ -146,13 +151,16 @@ Rendered iframe also includes `theme_DARK` or `theme_LIGHT` className on `body`
146151
_Javascript Example:_
147152
```javascript
148153
const renderVisualization = (props) => {
149-
const { command, data } = props;
154+
const { command, data = [] } = props;
155+
const [{ result, status }] = data
150156
document.getElementById('app')
151157
.innerHTML = `
152158
<h3>Executed command:<h3>
153159
<p>${command}</p>
154160
<h4>Result of the command</h4>
155-
<p>${data}</p>
161+
<p>${result}</p>
162+
<h4>Status of the command</h4>
163+
<p>${status}</p>
156164
`
157165
}
158166

@@ -165,9 +173,10 @@ import { render } from 'react-dom'
165173
import App from './App'
166174

167175
const renderVisualization = (props) => {
168-
const { command, status, data = '' } = props
176+
const { command, data = [] } = props
177+
const [{ result, status }] = data
169178
render(
170-
<App command={command} response={data} status={status} />,
179+
<App command={command} response={result} status={status} />,
171180
document.getElementById('app')
172181
)
173182
}

docs/plugins/introduction.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
# Introduction to plugins for the Workbench
22

3-
Plugins allow the customization of visualizations for Redis commands executed
4-
in the Workbench inside the RedisInsight.
3+
## Introduction
4+
5+
Redis can hold a range of different data types. Visualizing these in a
6+
format that’s convenient to you for validation and debugging is paramount.
7+
You can now easily extend the core functionality of RedisInsight independently by
8+
building your own custom visualization plugin.
9+
10+
Data visualization provided by the plugin is rendered within the
11+
Workbench results area and is based on the executed command, ie. a certain
12+
Redis command can generate its own custom data visualization.
13+
14+
We have included the following [plugin package example](https://github.com/RedisInsight/RedisInsight/tree/main/redisinsight/ui/src/packages/clients-list-example) for your reference: running the CLIENT LIST command presents the output in a tabular format for easier reading.
515

616
## Wiki
717

electron-builder.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"gatekeeperAssess": false
2525
},
2626
"dmg": {
27-
"artifactName": "${productName}-${os}-x64.${ext}",
27+
"artifactName": "${productName}-${os}-${arch}.${ext}",
2828
"contents": [
2929
{
3030
"x": 130,

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
"monaco-editor": "<rootDir>/redisinsight/__mocks__/monacoMock.js",
8080
"unified": "<rootDir>/redisinsight/__mocks__/unified.js",
8181
"remark-parse": "<rootDir>/redisinsight/__mocks__/remarkParse.js",
82+
"remark-gfm": "<rootDir>/redisinsight/__mocks__/remarkGfm.js",
8283
"remark-rehype": "<rootDir>/redisinsight/__mocks__/remarkRehype.js",
8384
"rehype-stringify": "<rootDir>/redisinsight/__mocks__/rehypeStringify.js",
8485
"unist-util-visit": "<rootDir>/redisinsight/__mocks__/unistUtilsVisit.js"
@@ -205,6 +206,7 @@
205206
"rimraf": "^3.0.2",
206207
"sass-loader": "^10.1.0",
207208
"skip-postinstall": "^1.0.0",
209+
"socket.io-mock": "^1.3.2",
208210
"source-map-support": "^0.5.19",
209211
"style-loader": "^2.0.0",
210212
"supertest": "^4.0.2",
@@ -251,8 +253,10 @@
251253
"react-router-dom": "^5.2.0",
252254
"react-virtualized": "^9.22.2",
253255
"rehype-stringify": "^9.0.2",
256+
"remark-gfm": "^3.0.1",
254257
"remark-parse": "^10.0.1",
255258
"remark-rehype": "^10.0.1",
259+
"socket.io-client": "^4.4.0",
256260
"unified": "^10.1.1",
257261
"unist-util-visit": "^4.1.0"
258262
},
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default jest.fn()

0 commit comments

Comments
 (0)