Skip to content

Commit bb2de5e

Browse files
Merge pull request #177 from RedisInsight/feature/bugfix
bugfixing
2 parents acfea61 + 0bcfd4d commit bb2de5e

File tree

31 files changed

+154
-76
lines changed

31 files changed

+154
-76
lines changed

.circleci/config.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,14 +182,18 @@ jobs:
182182
- run:
183183
name: Build .vsix package
184184
command: |
185-
packagePath=./release/redis-for-vscode-extension-linux-x64.vsix
185+
envFile=".env"
186+
packagePath="./release/redis-for-vscode-extension-linux-x64.vsix"
186187
yarn download:backend
187188
188189
if [ << parameters.env >> == 'prod' ]; then
190+
echo "RI_SEGMENT_WRITE_KEY='$RI_SEGMENT_WRITE_KEY'" >> $envFile
189191
yarn package:prod --out ${packagePath}
190192
exit 0;
191193
fi
192194
195+
echo "RI_SEGMENT_WRITE_KEY='$RI_SEGMENT_WRITE_KEY_STAGE'" >> $envFile
196+
sed -i "s/^RI_APP_FOLDER_NAME=.*/RI_APP_FOLDER_NAME='.redis-for-vscode-stage'/" $envFile
193197
yarn package:stage --out ${packagePath}
194198
- persist_to_workspace:
195199
root: .

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
NODE_ENV='production'
66
RI_BASE_APP_URL='http://localhost'
77
RI_APP_PORT=5541
8+
RI_APP_VERSION='0.0.1'
89
RI_APP_PREFIX='api'
910
RI_APP_FOLDER_NAME='.redis-for-vscode'
1011
RI_CDN_PATH='https://s3.amazonaws.com/redisinsight.download/public/releases/2.54.1/web-mini'

.vscodeignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ node_modules
2222
!node_modules/debug
2323
vite.config.mjs
2424
*.zip
25+
.eslintignore
26+
.env.stage
2527

2628
# test
2729
coverage

l10n/bundle.l10n.json

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
"Last Refresh": "Last Refresh",
1111
"- Welcome": "- Welcome",
1212
"About Redis for VS Code": "About Redis for VS Code",
13-
"Take your productivity to the next level when developing with Redis or Redis Stack! Use Redis for VS Code to visualize and optimize Redis data.": "Take your productivity to the next level when developing with Redis or Redis Stack! Use Redis for VS Code to visualize and optimize Redis data.",
14-
"A powerful desktop manager, Redis for VS Code provides an intuitive and efficient UI for Redis and Redis Stack and supports CLI interaction in a fully-featured desktop UI client.": "A powerful desktop manager, Redis for VS Code provides an intuitive and efficient UI for Redis and Redis Stack and supports CLI interaction in a fully-featured desktop UI client.",
13+
"Redis for VS Code provides an intuitive and efficient UI to visualize and optimize your Redis data.": "Redis for VS Code provides an intuitive and efficient UI to visualize and optimize your Redis data.",
1514
"Start": "Start",
1615
"Connect your database": "Connect your database",
1716
"Create new database": "Create new database",
@@ -53,6 +52,9 @@
5352
"Score": "Score",
5453
"Use CLI to edit the score": "Use CLI to edit the score",
5554
"Enter Score": "Enter Score",
55+
"This data type is not currently supported.": "This data type is not currently supported.",
56+
"We are constantly working to launch support for more data types. If you have any ideas or suggestions, please ": "We are constantly working to launch support for more data types. If you have any ideas or suggestions, please ",
57+
"contact us.": "contact us.",
5658
"Edit value": "Edit value",
5759
"Empty": "Empty",
5860
"loading...": "loading...",
@@ -100,11 +102,11 @@
100102
"TTL: No limit": "TTL: No limit",
101103
"Key name*": "Key name*",
102104
"Encrypted data": "Encrypted data",
103-
"RedisJSON module should be loaded to add this key. Find ": "RedisJSON module should be loaded to add this key. Find ",
104-
"more information": "more information",
105-
" about RedisJSON or create your ": " about RedisJSON or create your ",
106-
"free Redis database": "free Redis database",
107-
" with RedisJSON on Redis Cloud.": " with RedisJSON on Redis Cloud.",
105+
"This database does not support the JSON data structure. Learn more about JSON support ": "This database does not support the JSON data structure. Learn more about JSON support ",
106+
"here.": "here.",
107+
"You can also create a ": "You can also create a ",
108+
"free Redis Cloud database": "free Redis Cloud database",
109+
" with built-in JSON support.": " with built-in JSON support.",
108110
"If you remove the single {0}, the whole Key will be deleted.": "If you remove the single {0}, the whole Key will be deleted.",
109111
"Removing multiple elements is available for Redis databases v. 6.2 or later. Update your Redis database or create a new ": "Removing multiple elements is available for Redis databases v. 6.2 or later. Update your Redis database or create a new ",
110112
"free up-to-date": "free up-to-date",
@@ -313,4 +315,4 @@
313315
"Add": "Add",
314316
"Release Notes": "Release Notes",
315317
"Redis for VS Code extension updated to {0}.": "Redis for VS Code extension updated to {0}."
316-
}
318+
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"icon": "dist/webviews/resources/256x256.png",
1616
"author": {
1717
"name": "Redis Ltd.",
18-
"email": "support@redis.com",
19-
"url": "https://redis.com/redis-enterprise/redis-insight"
18+
"email": "support@redis.io",
19+
"url": "https://redis.io/insight/"
2020
},
2121
"repository": {
2222
"type": "git",

scripts/downloadBackend.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dotenv.config({
1313
const target = process.argv[2];
1414
const cdnPath = process.env.RI_CDN_PATH
1515
const backendPath = path.join(__dirname, '..', 'dist', 'redis-backend')
16-
const staticPath = path.join(backendPath, 'static')
16+
const tutorialsPath = path.join(backendPath, 'dist-minified', 'defaults', 'tutorials')
1717

1818
const downloadBackend = async () => {
1919
if (fs.existsSync(backendPath)) {
@@ -86,8 +86,8 @@ function unzipRedisServer(redisInsideArchivePath: string, extractDir: string) {
8686

8787
cp.spawnSync('tar', ['-xf', redisInsideArchivePath, '-C', extractDir, '--strip-components', '1', 'api'])
8888

89-
// remove plugins
90-
fs.rmSync(staticPath, { recursive: true, force: true });
89+
// remove tutorials
90+
fs.rmSync(tutorialsPath, { recursive: true, force: true });
9191
}
9292

9393
downloadBackend()

src/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ export const MAX_TITLE_KEY_LENGTH = 30
1212
export const EXTENSION_ID = 'Redis.redis-for-vscode'
1313

1414
export const EXTERNAL_LINKS = {
15-
releaseNotes: 'https://github.com/RedisInsight/RedisInsight/releases',
15+
releaseNotes: 'https://github.com/RedisInsight/Redis-for-VS-Code/releases',
1616
}

src/resources/256x256.png

2.47 KB
Loading

src/server/bootstrapBackend.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ import { sleep } from '../utils'
99
let gracefulShutdown: Function
1010
let beApp: any
1111

12-
const backendPath = path.join(__dirname, '..', 'redis-backend/dist-minified')
12+
const backendPath = path.join(__dirname, '..', 'redis-backend', 'dist-minified')
13+
process.env.RI_DEFAULTS_DIR = path.join(backendPath, 'defaults')
1314

1415
export async function startBackend(logger: CustomLogger): Promise<any> {
1516
const appPort = process.env.RI_APP_PORT

src/server/bootstrapBackendE2E.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ const appPrefix = process.env.RI_APP_PREFIX
1717
const appFolder = process.env.RI_APP_FOLDER
1818
const appHost = process.env.RI_APP_HOST
1919

20-
const backendPath = path.join(__dirname, '..', 'redis-backend/dist-minified')
20+
const backendPath = path.join(__dirname, '..', 'redis-backend', 'dist-minified')
21+
const defaultDirPath = path.join(backendPath, 'defaults')
2122
let PSinst: ChildProcessWithoutNullStreams
2223

2324
export async function startBackendE2E(logger: CustomLogger): Promise<any> {
@@ -52,6 +53,7 @@ export async function startBackendE2E(logger: CustomLogger): Promise<any> {
5253
+ `$env:RI_BUILD_TYPE=${process.env.RI_BUILD_TYPE};`
5354
+ `$env:RI_SEGMENT_WRITE_KEY=${process.env.RI_SEGMENT_WRITE_KEY};`
5455
+ `$env:RI_MIGRATE_OLD_FOLDERS=${process.env.RI_MIGRATE_OLD_FOLDERS};`
56+
+ `$env:RI_DEFAULTS_DIR=${defaultDirPath};`
5557
+ '$env:RI_AUTO_BOOTSTRAP=true;'
5658
+ `node ${backendSrcPath}`,
5759
])
@@ -69,6 +71,7 @@ export async function startBackendE2E(logger: CustomLogger): Promise<any> {
6971
RI_BUILD_TYPE: process.env.RI_BUILD_TYPE,
7072
RI_SEGMENT_WRITE_KEY: process.env.RI_SEGMENT_WRITE_KEY,
7173
RI_MIGRATE_OLD_FOLDERS: process.env.RI_MIGRATE_OLD_FOLDERS,
74+
RI_DEFAULTS_DIR: defaultDirPath,
7275
RI_AUTO_BOOTSTRAP: 'true',
7376
PATH: process.env.PATH,
7477
},

0 commit comments

Comments
 (0)