From 3fefa4ee9402f11af2edd521c061865576517d02 Mon Sep 17 00:00:00 2001 From: prajwal-pai77 Date: Wed, 30 Oct 2024 12:24:38 +0530 Subject: [PATCH 1/2] Fix bug for community server --- src/workbench/queryWorkbench.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/workbench/queryWorkbench.ts b/src/workbench/queryWorkbench.ts index a176cd28..7674722c 100644 --- a/src/workbench/queryWorkbench.ts +++ b/src/workbench/queryWorkbench.ts @@ -86,7 +86,7 @@ export class QueryWorkbench { numDocs: result?.meta.metrics?.resultCount.toString() + " docs", size: resultSize ? (resultSize > 1000 ? (resultSize / 1000).toFixed(2) + " KB" : resultSize + " Bytes") : "" }; - const explainPlan = JSON.stringify(result?.meta.profile.executionTimings); + const explainPlan = JSON.stringify(result?.meta.profile?.executionTimings); workbenchWebviewProvider.setQueryResult( JSON.stringify(result?.rows), queryStatusProps, From b5660d3357f0139353c17464a74b9200124832ae Mon Sep 17 00:00:00 2001 From: prajwal-pai77 Date: Wed, 30 Oct 2024 12:25:37 +0530 Subject: [PATCH 2/2] Update package version --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 20bf5856..130f3cb2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "vscode-couchbase", - "version": "2.1.7", + "version": "2.1.8", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "vscode-couchbase", - "version": "2.1.7", + "version": "2.1.8", "license": "SEE LICENSE IN LICENSE", "dependencies": { "@aws-sdk/client-dynamodb": "^3.602.0", diff --git a/package.json b/package.json index 66b1ed59..0bc12c91 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "vscode-couchbase", "displayName": "Couchbase", "description": "", - "version": "2.1.7", + "version": "2.1.8", "engines": { "vscode": "^1.63.1" },