Skip to content

Commit

Permalink
Add UI Support for DynamoDB to Couchbase (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
prajwal-pai77 authored Jul 1, 2024
1 parent 04d3397 commit 5ca51b7
Show file tree
Hide file tree
Showing 11 changed files with 2,405 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
- name: windows-specific
shell: pwsh
if: matrix.platform == 'win32'
run: choco install openssl.light --version=1.1.1 && choco install cmake --global && npm install --global cmake-js node-gyp && echo CMAKE_JS_LIB - $CMAKE_JS_LIB
run: choco install openssl.light --version=1.1.1 && choco install cmake --global && npm install --global cmake-js node-gyp && echo CMAKE_JS_LIB - $CMAKE_JS_LIB
- name: mac-specific
shell: bash
if: matrix.platform == 'darwin'
Expand Down
1,319 changes: 1,315 additions & 4 deletions package-lock.json

Large diffs are not rendered by default.

27 changes: 21 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-couchbase",
"displayName": "Couchbase",
"description": "",
"version": "2.0.4",
"version": "2.0.5",
"engines": {
"vscode": "^1.63.1"
},
Expand Down Expand Up @@ -91,6 +91,8 @@
"webpack-cli": "^5.1.4"
},
"dependencies": {
"@aws-sdk/client-dynamodb": "^3.602.0",
"@aws-sdk/credential-providers": "^3.600.0",
"@chatscope/chat-ui-kit-styles": "^1.4.0",
"@fortawesome/fontawesome-svg-core": "^6.5.1",
"@fortawesome/free-solid-svg-icons": "^6.5.1",
Expand Down Expand Up @@ -569,6 +571,11 @@
"title": "MongoDB Migrate",
"category": "Couchbase"
},
{
"command": "vscode-couchbase.tools.dynamodbMigrate",
"title": "DynamoDB Migrate",
"category": "Couchbase"
},
{
"command": "vscode-couchbase.tools.dataImport",
"title": "Data Import",
Expand Down Expand Up @@ -898,6 +905,10 @@
"command": "vscode-couchbase.tools.mdbMigrate",
"when": "false"
},
{
"command": "vscode-couchbase.tools.dynamodbMigrate",
"when": "false"
},
{
"command": "vscode-couchbase.tools.dataImport",
"when": "false"
Expand Down Expand Up @@ -1078,19 +1089,23 @@
"vscode-couchbase.toolsMenu": [
{
"command": "vscode-couchbase.tools.dataExport",
"group": "navigation"
"group": "secondary"
},
{
"command": "vscode-couchbase.tools.mdbMigrate",
"group": "navigation"
"group": "tertiary"
},
{
"command": "vscode-couchbase.tools.dynamodbMigrate",
"group": "tertiary"
},
{
"command": "vscode-couchbase.tools.dataImport",
"group": "navigation"
"group": "secondary"
},
{
"command": "vscode-couchbase.tools.DDLExport",
"group": "navigation"
"group": "secondary"
}
],
"vscode-couchbase.filterDocumentsMenu": [
Expand Down Expand Up @@ -1185,4 +1200,4 @@
}
]
}
}
}
1 change: 1 addition & 0 deletions src/commands/extensionCommands/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export namespace Commands {
export const checkAndCreatePrimaryIndex: string = "vscode-couchbase.checkAndCreatePrimaryIndex";
export const dataExport: string = "vscode-couchbase.tools.dataExport";
export const mdbMigrate: string = "vscode-couchbase.tools.mdbMigrate";
export const dynamodbMigrate: string = "vscode-couchbase.tools.dynamodbMigrate";
export const dataImport: string = "vscode-couchbase.tools.dataImport";
export const ddlExport: string = "vscode-couchbase.tools.DDLExport";
export const couchbaseIqViewsCommand: string = "couchbase-iq";
Expand Down
10 changes: 10 additions & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ import { SecretService } from "./util/secretService";
import { kvTypeFilterDocuments } from "./commands/documents/documentFilters/kvTypeFilterDocuments";
import { fetchNamedParameters } from "./pages/namedParameters/namedParameters";
import { sqlppComlpletions, sqlppNamedParametersCompletions, sqlppSchemaComlpletions } from "./commands/sqlpp/sqlppCompletions";
import { dynamodbMigrate } from "./pages/Tools/DynamoDbMigrate/dynamoDbMigrate";

export function activate(context: vscode.ExtensionContext) {
Global.setState(context.globalState);
Expand Down Expand Up @@ -586,6 +587,15 @@ export function activate(context: vscode.ExtensionContext) {
)
);

subscriptions.push(
vscode.commands.registerCommand(
Commands.dynamodbMigrate,
async () => {
await dynamodbMigrate(context);
}
)
);

subscriptions.push(
vscode.commands.registerCommand(
Commands.dataImport,
Expand Down
12 changes: 6 additions & 6 deletions src/handlers/handleCLIDownloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class DependenciesDownloader {
map.set(
this.TOOL_MDB_MIGRATE,
this.getToolSpec(
"https://intellij-plugin-dependencies.s3.us-east-2.amazonaws.com/cbmigrate/cbmigrate_0.0.1-beta_darwin_amd64.zip",
"https://intellij-plugin-dependencies.s3.us-east-2.amazonaws.com/cbmigrate/cbmigrate_0.1.0_darwin_amd64.zip",
this.TOOL_MDB_MIGRATE,
OSUtil.MACOS_64
)
Expand Down Expand Up @@ -141,7 +141,7 @@ class DependenciesDownloader {
map.set(
this.TOOL_MDB_MIGRATE,
this.getToolSpec(
"https://intellij-plugin-dependencies.s3.us-east-2.amazonaws.com/cbmigrate/cbmigrate_0.0.1-beta_darwin_arm64.zip",
"https://intellij-plugin-dependencies.s3.us-east-2.amazonaws.com/cbmigrate/cbmigrate_0.1.0_darwin_arm64.zip",
this.TOOL_MDB_MIGRATE,
OSUtil.MACOS_ARM
)
Expand Down Expand Up @@ -174,7 +174,7 @@ class DependenciesDownloader {
map.set(
this.TOOL_MDB_MIGRATE,
this.getToolSpec(
"https://intellij-plugin-dependencies.s3.us-east-2.amazonaws.com/cbmigrate/cbmigrate_0.0.1-beta_windows_amd64.zip",
"https://intellij-plugin-dependencies.s3.us-east-2.amazonaws.com/cbmigrate/cbmigrate_0.1.0_windows_amd64.zip",
this.TOOL_MDB_MIGRATE,
OSUtil.WINDOWS_64
)
Expand Down Expand Up @@ -207,7 +207,7 @@ class DependenciesDownloader {
map.set(
this.TOOL_MDB_MIGRATE,
this.getToolSpec(
"https://intellij-plugin-dependencies.s3.us-east-2.amazonaws.com/cbmigrate/cbmigrate_0.0.1-beta_windows_amd64.zip",
"https://intellij-plugin-dependencies.s3.us-east-2.amazonaws.com/cbmigrate/cbmigrate_0.1.0_windows_amd64.zip",
this.TOOL_MDB_MIGRATE,
OSUtil.WINDOWS_ARM
)
Expand Down Expand Up @@ -240,7 +240,7 @@ class DependenciesDownloader {
map.set(
this.TOOL_MDB_MIGRATE,
this.getToolSpec(
"https://intellij-plugin-dependencies.s3.us-east-2.amazonaws.com/cbmigrate/cbmigrate_0.0.1-beta_linux_amd64.zip",
"https://intellij-plugin-dependencies.s3.us-east-2.amazonaws.com/cbmigrate/cbmigrate_0.1.0_linux_amd64.zip",
this.TOOL_MDB_MIGRATE,
OSUtil.LINUX_64
)
Expand All @@ -265,7 +265,7 @@ class DependenciesDownloader {
map.set(
this.TOOL_MDB_MIGRATE,
this.getToolSpec(
"https://intellij-plugin-dependencies.s3.us-east-2.amazonaws.com/cbmigrate/cbmigrate_0.0.1-beta_linux_arm64.zip",
"https://intellij-plugin-dependencies.s3.us-east-2.amazonaws.com/cbmigrate/cbmigrate_0.1.0_linux_arm64.zip",
this.TOOL_MDB_MIGRATE,
OSUtil.LINUX_ARM
)
Expand Down
2 changes: 1 addition & 1 deletion src/handlers/versionConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const config = {
SHELL_KEY: "shell",
CBIMPORT_EXPORT_KEY: "cbimport_export",
TOOLS_VERSION: "7.2",
CBMIGRATE_VERSION: "1",
CBMIGRATE_VERSION: "2",
SHELL_VERSION: "1",
CBIMPORT_EXPORT_VERSION: "7.6",
};
Loading

0 comments on commit 5ca51b7

Please sign in to comment.