Skip to content

Commit 38c90a2

Browse files
Merge pull request #811 from RedisInsight/main
new rc
2 parents 5521980 + 1397e4b commit 38c90a2

File tree

302 files changed

+15817
-1452
lines changed

Some content is hidden

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

302 files changed

+15817
-1452
lines changed

.circleci/config.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ jobs:
298298
- checkout
299299
- attach_workspace:
300300
at: .
301+
- run: sudo apt-get install net-tools
301302
- run:
302303
name: .AppImage tests
303304
command: |
@@ -710,7 +711,7 @@ jobs:
710711
command: |
711712
applicationVersion=$(jq -r '.version' electron/package.json)
712713
echo "APP VERSION $applicationVersion"
713-
ghr -t ${GH_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -prerelease -delete ${applicationVersion}
714+
ghr -n ${applicationVersion} -t ${GH_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -prerelease -delete ${applicationVersion}
714715
715716
release-aws-test:
716717
executor: linux-executor
@@ -755,11 +756,13 @@ jobs:
755756
latestYmlFileName="latest.yml"
756757
downloadLatestFolderPath="public/latest"
757758
upgradeLatestFolderPath="public/upgrades"
759+
releasesFolderPath="public/releases"
758760
appName=$(jq -r '.productName' electron-builder.json)
759761
appVersion=$(jq -r '.version' redisinsight/package.json)
760762
761763
echo "export downloadLatestFolderPath=${downloadLatestFolderPath}" >> $BASH_ENV
762764
echo "export upgradeLatestFolderPath=${upgradeLatestFolderPath}" >> $BASH_ENV
765+
echo "export releasesFolderPath=${releasesFolderPath}" >> $BASH_ENV
763766
echo "export applicationName=${appName}" >> $BASH_ENV
764767
echo "export applicationVersion=${appVersion}" >> $BASH_ENV
765768
echo "export appFileName=RedisInsight" >> $BASH_ENV
@@ -776,22 +779,24 @@ jobs:
776779
- run:
777780
name: Publish AWS S3
778781
command: |
779-
# move last public version apps for download to /private/{last public version}
780-
aws s3 mv s3://${AWS_BUCKET_NAME}/${downloadLatestFolderPath} \
781-
s3://${AWS_BUCKET_NAME}/private/${previousApplicationVersion}/ --recursive
782+
# remove previous build from the latest directory /public/latest
783+
aws s3 rm s3://${AWS_BUCKET_NAME}/${downloadLatestFolderPath} --recursive
782784
783-
# move last public version apps for upgrades to /private/{last public version}
784-
aws s3 mv s3://${AWS_BUCKET_NAME}/${upgradeLatestFolderPath} \
785-
s3://${AWS_BUCKET_NAME}/private/${previousApplicationVersion}/ --recursive
785+
# remove previous build from the upgrade directory /public/upgrades
786+
aws s3 rm s3://${AWS_BUCKET_NAME}/${upgradeLatestFolderPath} --recursive
786787
787-
# move current version apps for download to /public/latest
788+
# copy current version apps for download to /public/latest
788789
aws s3 cp s3://${AWS_BUCKET_NAME}/private/${applicationVersion}/ \
789790
s3://${AWS_BUCKET_NAME}/${downloadLatestFolderPath} --recursive --exclude "*.zip"
790791
791792
# copy current version apps for upgrades to /public/upgrades
792-
aws s3 mv s3://${AWS_BUCKET_NAME}/private/${applicationVersion}/ \
793+
aws s3 cp s3://${AWS_BUCKET_NAME}/private/${applicationVersion}/ \
793794
s3://${AWS_BUCKET_NAME}/${upgradeLatestFolderPath} --recursive
794795
796+
# !MOVE current version apps to releases folder /public/releases
797+
aws s3 mv s3://${AWS_BUCKET_NAME}/private/${applicationVersion}/ \
798+
s3://${AWS_BUCKET_NAME}/${releasesFolderPath}/${applicationVersion} --recursive
799+
795800
# invalidate cloudfront cash
796801
aws cloudfront create-invalidation --distribution-id ${AWS_DISTRIBUTION_ID} --paths "/*"
797802

.github/redisinsight_browser.png

-76 KB
Loading

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@
202202
"opencollective-postinstall": "^2.0.3",
203203
"react-hot-loader": "^4.13.0",
204204
"react-refresh": "^0.9.0",
205-
"react-test-renderer": "^17.0.1",
206205
"redux-mock-store": "^1.5.4",
207206
"regenerator-runtime": "^0.13.5",
208207
"rimraf": "^3.0.2",

redisinsight/api/src/__mocks__/analytics.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,9 @@ export const mockSettingsAnalyticsService = () => ({
2727
sendAnalyticsAgreementChange: jest.fn(),
2828
sendSettingsUpdatedEvent: jest.fn(),
2929
});
30+
31+
export const mockPubSubAnalyticsService = () => ({
32+
sendMessagePublishedEvent: jest.fn(),
33+
sendChannelSubscribeEvent: jest.fn(),
34+
sendChannelUnsubscribeEvent: jest.fn(),
35+
});

redisinsight/api/src/__mocks__/redis-databases.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export const mockStandaloneDatabaseEntity: DatabaseInstanceEntity = {
2727
provider: HostingProvider.LOCALHOST,
2828
modules: '[]',
2929
encryption: null,
30+
tlsServername: 'server-name',
3031
};
3132

3233
export const mockOSSClusterDatabaseEntity: DatabaseInstanceEntity = {

redisinsight/api/src/app.module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { PluginModule } from 'src/modules/plugin/plugin.module';
1212
import { CommandsModule } from 'src/modules/commands/commands.module';
1313
import { WorkbenchModule } from 'src/modules/workbench/workbench.module';
1414
import { SlowLogModule } from 'src/modules/slow-log/slow-log.module';
15+
import { PubSubModule } from 'src/modules/pub-sub/pub-sub.module';
1516
import { SharedModule } from './modules/shared/shared.module';
1617
import { InstancesModule } from './modules/instances/instances.module';
1718
import { BrowserModule } from './modules/browser/browser.module';
@@ -43,6 +44,7 @@ const PATH_CONFIG = config.get('dir_path');
4344
PluginModule,
4445
CommandsModule,
4546
ProfilerModule,
47+
PubSubModule,
4648
SlowLogModule,
4749
EventEmitterModule.forRoot(),
4850
...(SERVER_CONFIG.staticContent

redisinsight/api/src/app.routes.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { RedisSentinelModule } from 'src/modules/redis-sentinel/redis-sentinel.m
66
import { CliModule } from 'src/modules/cli/cli.module';
77
import { WorkbenchModule } from 'src/modules/workbench/workbench.module';
88
import { SlowLogModule } from 'src/modules/slow-log/slow-log.module';
9+
import { PubSubModule } from 'src/modules/pub-sub/pub-sub.module';
910

1011
export const routes: Routes = [
1112
{
@@ -28,6 +29,10 @@ export const routes: Routes = [
2829
path: '/:dbInstance',
2930
module: SlowLogModule,
3031
},
32+
{
33+
path: '/:dbInstance',
34+
module: PubSubModule,
35+
},
3136
],
3237
},
3338
{

redisinsight/api/src/constants/error-messages.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ export default {
33
INVALID_DATABASE_INSTANCE_ID: 'Invalid database instance id.',
44
COMMAND_EXECUTION_NOT_FOUND: 'Command execution was not found.',
55
PROFILER_LOG_FILE_NOT_FOUND: 'Profiler log file was not found.',
6+
CONSUMER_GROUP_NOT_FOUND: 'Consumer Group with such name was not found.',
67
PLUGIN_STATE_NOT_FOUND: 'Plugin state was not found.',
78
UNDEFINED_INSTANCE_ID: 'Undefined redis database instance id.',
89
NO_CONNECTION_TO_REDIS_DB: 'No connection to the Redis Database.',

redisinsight/api/src/constants/redis-error-codes.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ export enum RedisErrorCodes {
1010
ConnectionReset = 'ECONNRESET',
1111
Timeout = 'ETIMEDOUT',
1212
CommandSyntaxError = 'syntax error',
13+
BusyGroup = 'BUSYGROUP',
14+
NoGroup = 'NOGROUP',
1315
UnknownCommand = 'unknown command',
1416
}
1517

redisinsight/api/src/constants/telemetry-events.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,9 @@ export enum TelemetryEvents {
4545
// Slowlog
4646
SlowlogSetLogSlowerThan = 'SLOWLOG_SET_LOG_SLOWER_THAN',
4747
SlowlogSetMaxLen = 'SLOWLOG_SET_MAX_LEN',
48+
49+
// Pub/Sub
50+
PubSubMessagePublished = 'PUBSUB_MESSAGE_PUBLISHED',
51+
PubSubChannelSubscribed = 'PUBSUB_CHANNEL_SUBSCRIBED',
52+
PubSubChannelUnsubscribed = 'PUBSUB_CHANNEL_UNSUBSCRIBED',
4853
}

0 commit comments

Comments
 (0)