Skip to content

Commit 6577d79

Browse files
committed
#RI-31 - Logical databases
1 parent 31fed37 commit 6577d79

File tree

44 files changed

+1089
-1053
lines changed

Some content is hidden

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

44 files changed

+1089
-1053
lines changed

.circleci/config.yml

Lines changed: 7 additions & 592 deletions
Large diffs are not rendered by default.

.circleci/config.yml.backup

Lines changed: 610 additions & 0 deletions
Large diffs are not rendered by default.

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ RI_APP_PORT=5541
88
RI_APP_VERSION='1.0.0'
99
RI_APP_PREFIX='api'
1010
RI_APP_FOLDER_NAME='.redis-for-vscode'
11-
RI_CDN_PATH='https://s3.amazonaws.com/redisinsight.download/public/releases/2.54.1/web-mini'
11+
RI_CDN_PATH='https://s3.us-east-1.amazonaws.com/redisinsight.test/public/zalenski/vscode/web-mini'
1212
RI_WITHOUT_BACKEND=false
1313
# RI_WITHOUT_BACKEND=true
1414
RI_STDOUT_LOGGER=false

.eslintrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ module.exports = {
8686
'function-paren-newline': 'off',
8787
'prefer-regex-literals': 'off',
8888
'react/display-name': 'off',
89+
'react/jsx-indent-props': [2, 2],
90+
'react/jsx-indent': [2, 2],
8991
'no-promise-executor-return': 'off',
9092
'import/order': [
9193
1,

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ reports
3838
# App packaged
3939
release
4040
dist
41+
report
4142
distWeb
4243
dll
4344
vendor

.vscode/settings.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
"source.fixAll.eslint": "explicit"
1111
},
1212
"eslint.validate": ["javascript", "typescript"],
13+
"eslint.workingDirectories": [
14+
{ "directory": "./", "changeProcessCWD": true }
15+
],
1316
"files.associations": {
1417
"*.css": "postcss",
1518
"*.scss": "postcss"
@@ -35,6 +38,7 @@
3538
".eslintcache": true,
3639
"bower_components": true,
3740
"release": true,
41+
"src/webviews/public": true,
3842
"npm-debug.log.*": true,
3943
"tests/**/__snapshots__": true,
4044
"yarn.lock": true,
@@ -44,7 +48,13 @@
4448
"**/pnpm-lock.yaml": true,
4549
"**/test-extensions": true
4650
},
47-
"cSpell.words": ["githubocto", "tailwindcss", "webviews", "zustand"],
51+
"cSpell.words": [
52+
"githubocto",
53+
"keyspace",
54+
"tailwindcss",
55+
"webviews",
56+
"zustand"
57+
],
4858
"testing.automaticallyOpenPeekView": "never",
4959
"[typescriptreact]": {
5060
"editor.defaultFormatter": "dbaeumer.vscode-eslint"

.vscodeignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ vite.config.mjs
2828
# test
2929
coverage
3030
test
31+
report
3132
tests
3233
test-workspace
3334
.vscode-test

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,9 @@
194194
"@vitejs/plugin-react": "^4.2.1",
195195
"@vitejs/plugin-react-swc": "^3.6.0",
196196
"@vitest/coverage-v8": "^1.3.1",
197-
"@vitest/ui": "^1.3.1",
197+
"@vitest/ui": "^1.6.0",
198198
"@vscode/l10n-dev": "^0.0.35",
199-
"@vscode/vsce": "^3.0.0",
199+
"@vscode/vsce": "^3.2.1",
200200
"cross-env": "^7.0.3",
201201
"csv-parser": "^3.0.0",
202202
"csv-stringify": "^6.5.1",

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export async function activate(context: vscode.ExtensionContext) {
164164

165165
vscode.commands.registerCommand('RedisForVSCode.editDatabaseClose', (args) => {
166166
WebviewPanel.getInstance({ viewId: ViewId.EditDatabase }).dispose()
167-
sidebarProvider.view?.webview.postMessage({ action: 'RefreshTree', data: args })
167+
sidebarProvider.view?.webview.postMessage({ action: 'UpdateDatabaseInList', data: args })
168168

169169
const keyDetailsWebview = WebviewPanel.instances[ViewId.Key]
170170
if (keyDetailsWebview) {

src/webviews/src/actions/processCliAction.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ import { useDatabasesStore } from 'uiSrc/store'
44

55
export const processCliAction = (message: CliAction) => {
66
const prevDatabaseId = useDatabasesStore.getState().connectedDatabase?.id
7+
const prevDatabaseIndex = useDatabasesStore.getState().connectedDatabase?.db
78
const database = message?.data?.database
9+
const dbIndex = database?.db ?? 0
810

9-
if (prevDatabaseId === database?.id) {
11+
if (prevDatabaseId! + prevDatabaseIndex === database?.id + dbIndex) {
1012
return
1113
}
1214
window.ri.database = database

0 commit comments

Comments
 (0)