Skip to content

Commit 9f127a5

Browse files
authored
Release 0.6.3 to main (#432)
2 parents 1e0c2fc + 29a0be5 commit 9f127a5

20 files changed

Lines changed: 788 additions & 188 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Change Log
22

3+
## 0.6.3
4+
5+
### Improvements
6+
7+
- **Query Insights**: The Query Insights feature has been updated to use the available `executionStats` instead of running the analysis in the AI context, improving performance and reliability. [#404](https://github.com/microsoft/vscode-documentdb/issues/404), [#423](https://github.com/microsoft/vscode-documentdb/pull/423)
8+
- **API Telemetry Support**: Enhanced telemetry support in web views for better monitoring and diagnostics. [#429](https://github.com/microsoft/vscode-documentdb/pull/429)
9+
- **Dependency Security Update**: Updated `tRPC` dependencies to address a security vulnerability. [#430](https://github.com/microsoft/vscode-documentdb/issues/430), [#431](https://github.com/microsoft/vscode-documentdb/pull/431)
10+
311
## 0.6.2
412

513
### Fixes

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ The User Manual provides guidance on using DocumentDB for VS Code. It contains d
6464

6565
Explore the history of updates and improvements to the DocumentDB for VS Code extension. Each release brings new features, enhancements, and fixes to improve your experience.
6666

67-
- [0.6](./release-notes/0.6), [0.6.1](./release-notes/0.6#patch-release-v061), [0.6.2](./release-notes/0.6#patch-release-v062)
67+
- [0.6](./release-notes/0.6), [0.6.1](./release-notes/0.6#patch-release-v061), [0.6.2](./release-notes/0.6#patch-release-v062), [0.6.3](./release-notes/0.6#patch-release-v063)
6868
- [0.5](./release-notes/0.5), [0.5.1](./release-notes/0.5#patch-release-v051), [0.5.2](./release-notes/0.5#patch-release-v052)
6969
- [0.4](./release-notes/0.4), [0.4.1](./release-notes/0.4#patch-release-v041)
7070
- [0.3](./release-notes/0.3), [0.3.1](./release-notes/0.3#patch-release-v031)

docs/release-notes/0.6.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,30 @@ These upgrades ensure the extension remains fast, secure, and aligned with the l
131131

132132
See the full changelog entry for this release:
133133
➡️ [CHANGELOG.md#062](https://github.com/microsoft/vscode-documentdb/blob/main/CHANGELOG.md#062)
134+
135+
---
136+
137+
## Patch Release v0.6.3
138+
139+
This patch release brings performance improvements to Query Insights, enhances telemetry, and includes important dependency updates to address a security vulnerability.
140+
141+
### What's Changed in v0.6.3
142+
143+
#### 💠 **Optimized Query Insights AI Recommendations** ([#404](https://github.com/microsoft/vscode-documentdb/issues/404), [#423](https://github.com/microsoft/vscode-documentdb/pull/423))
144+
145+
We've optimized the AI-powered recommendation engine in Query Insights to improve performance and consistency. Previously, execution statistics were collected twice, leading to minor discrepancies between the data shown in the analysis and the AI-generated recommendations.
146+
147+
This update ensures that the AI assistant reuses the existing `executionStats` from the detailed analysis stage (Stage 2), avoiding a redundant database query. This not only makes the recommendation process faster but also guarantees that the insights are based on the exact same metrics displayed to the user.
148+
149+
#### 💠 **Improved Telemetry for AI Features** ([#429](https://github.com/microsoft/vscode-documentdb/pull/429))
150+
151+
We've improved error handling for AI-driven features, including Query Insights and Copilot services. This update provides more detailed diagnostic information when an operation fails, such as creating an index or getting a response from the AI. These changes allow us to diagnose and resolve issues more effectively, improving the stability of these features.
152+
153+
#### 💠 **Security Update for tRPC Dependencies** ([#430](https://github.com/microsoft/vscode-documentdb/issues/430), [#431](https://github.com/microsoft/vscode-documentdb/pull/431))
154+
155+
We've upgraded our tRPC dependencies (`@trpc/client` and `@trpc/server`) to address a high-severity vulnerability related to possible prototype pollution. This update ensures the extension remains secure and incorporates the latest fixes.
156+
157+
### Changelog
158+
159+
See the full changelog entry for this release:
160+
➡️ [CHANGELOG.md#063](https://github.com/microsoft/vscode-documentdb/blob/main/CHANGELOG.md#063)

l10n/bundle.l10n.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,23 @@
3939
"[Query Insights AI] getCollectionStats completed in {ms}ms": "[Query Insights AI] getCollectionStats completed in {ms}ms",
4040
"[Query Insights AI] getIndexStats completed in {ms}ms": "[Query Insights AI] getIndexStats completed in {ms}ms",
4141
"[Query Insights AI] listIndexes completed in {ms}ms": "[Query Insights AI] listIndexes completed in {ms}ms",
42+
"[Query Insights AI] Using preloaded collection stats": "[Query Insights AI] Using preloaded collection stats",
43+
"[Query Insights AI] Using preloaded execution plan": "[Query Insights AI] Using preloaded execution plan",
44+
"[Query Insights AI] Using preloaded index stats": "[Query Insights AI] Using preloaded index stats",
4245
"[Query Insights Stage 1] Completed: indexes={idx}, collScan={scan}": "[Query Insights Stage 1] Completed: indexes={idx}, collScan={scan}",
4346
"[Query Insights Stage 1] explain(queryPlanner) completed in {ms}ms": "[Query Insights Stage 1] explain(queryPlanner) completed in {ms}ms",
4447
"[Query Insights Stage 1] Query Insights is not supported on Azure Cosmos DB for MongoDB (RU) clusters.": "[Query Insights Stage 1] Query Insights is not supported on Azure Cosmos DB for MongoDB (RU) clusters.",
4548
"[Query Insights Stage 1] Started for {db}.{collection}": "[Query Insights Stage 1] Started for {db}.{collection}",
4649
"[Query Insights Stage 1] Using debug data file": "[Query Insights Stage 1] Using debug data file",
4750
"[Query Insights Stage 2] Completed: execTime={time}ms, returned={ret}, examined={ex}, ratio={ratio}": "[Query Insights Stage 2] Completed: execTime={time}ms, returned={ret}, examined={ex}, ratio={ratio}",
48-
"[Query Insights Stage 2] explain(executionStats) completed in {ms}ms": "[Query Insights Stage 2] explain(executionStats) completed in {ms}ms",
51+
"[Query Insights Stage 2] explain completed in {ms}ms": "[Query Insights Stage 2] explain completed in {ms}ms",
4952
"[Query Insights Stage 2] Query execution failed: {error}": "[Query Insights Stage 2] Query execution failed: {error}",
5053
"[Query Insights Stage 2] Started for {db}.{collection}": "[Query Insights Stage 2] Started for {db}.{collection}",
5154
"[Query Insights Stage 2] Using debug data file": "[Query Insights Stage 2] Using debug data file",
5255
"[Query Insights Stage 3] AI service completed in {ms}ms (requestKey: {key})": "[Query Insights Stage 3] AI service completed in {ms}ms (requestKey: {key})",
5356
"[Query Insights Stage 3] Completed: {count} improvement cards generated (requestKey: {key})": "[Query Insights Stage 3] Completed: {count} improvement cards generated (requestKey: {key})",
5457
"[Query Insights Stage 3] Started for {db}.{collection} (requestKey: {key})": "[Query Insights Stage 3] Started for {db}.{collection} (requestKey: {key})",
58+
"[Query Insights Stage 3] Using cached execution plan from Stage 2 (requestKey: {key})": "[Query Insights Stage 3] Using cached execution plan from Stage 2 (requestKey: {key})",
5559
"{0} tenants available ({1} signed in)": "{0} tenants available ({1} signed in)",
5660
"{countMany} documents have been deleted.": "{countMany} documents have been deleted.",
5761
"{countOne} document has been deleted.": "{countOne} document has been deleted.",
@@ -342,6 +346,7 @@
342346
"Failed to gather schema information: {message}": "Failed to gather schema information: {message}",
343347
"Failed to get optimization recommendations from index advisor.": "Failed to get optimization recommendations from index advisor.",
344348
"Failed to get public IP": "Failed to get public IP",
349+
"Failed to get response from language model": "Failed to get response from language model",
345350
"Failed to hide index.": "Failed to hide index.",
346351
"Failed to initialize Azure management clients": "Failed to initialize Azure management clients",
347352
"Failed to load {0}": "Failed to load {0}",

package-lock.json

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vscode-documentdb",
3-
"version": "0.6.2",
3+
"version": "0.6.3",
44
"aiKey": "0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255",
55
"publisher": "ms-azuretools",
66
"displayName": "DocumentDB for VS Code",
@@ -161,8 +161,8 @@
161161
"@microsoft/vscode-azureresources-api": "~2.5.0",
162162
"@monaco-editor/react": "~4.7.0",
163163
"@mongodb-js/explain-plan-helper": "1.4.24",
164-
"@trpc/client": "~11.7.1",
165-
"@trpc/server": "~11.7.1",
164+
"@trpc/client": "~11.8.0",
165+
"@trpc/server": "~11.8.0",
166166
"@vscode/l10n": "~0.0.18",
167167
"antlr4ts": "^0.5.0-alpha.4",
168168
"bson": "~7.0.0",
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"_debug_active": false,
3+
"_instructions": "Set _debug_active to true to activate this override. This file contains a MongoDB explain('executionStats') response with COLLSCAN.",
4+
"explainVersion": 2,
5+
"command": "db.runCommand({explain: { 'find' : 'f_pos', 'filter' : { 'title' : { '$regex' : 'iwg' } } }})",
6+
"explainCommandPlanningTimeMillis": 0.228,
7+
"explainCommandExecTimeMillis": 1275.03,
8+
"dataSize": "9400 bytes",
9+
"queryPlanner": {
10+
"namespace": "try_on_new_million.f_pos",
11+
"winningPlan": {
12+
"stage": "COLLSCAN",
13+
"runtimeFilterSet": [{ "$regex": { "title": "iwg" } }],
14+
"estimatedTotalKeysExamined": 333333
15+
}
16+
},
17+
"executionStats": {
18+
"nReturned": 235,
19+
"executionTimeMillis": 1250.332,
20+
"executionStartAtTimeMillis": 0.085,
21+
"totalDocsExamined": 1000000,
22+
"totalKeysExamined": 235,
23+
"executionStages": {
24+
"stage": "COLLSCAN",
25+
"nReturned": 235,
26+
"executionTimeMillis": 1250.332,
27+
"executionStartAtTimeMillis": 0.085,
28+
"totalDocsExamined": 1000000,
29+
"totalKeysExamined": 235,
30+
"totalDocsRemovedByRuntimeFilter": 999765,
31+
"numBlocksFromCache": 5282,
32+
"numBlocksFromDisk": 7064
33+
}
34+
},
35+
"ok": 1
36+
}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"_debug_active": false,
3+
"_instructions": "Set _debug_active to true to activate this override. This file contains a MongoDB explain('executionStats') response with FETCH and IXSCAN stages.",
4+
"explainVersion": 2,
5+
"command": "db.runCommand({explain: { 'find' : 'f_neg', 'filter' : { 'title' : { '$regex' : 'iwg' } } }})",
6+
"explainCommandPlanningTimeMillis": 2.029,
7+
"explainCommandExecTimeMillis": 1673.916,
8+
"dataSize": "9400 bytes",
9+
"queryPlanner": {
10+
"namespace": "try_on_new_million.f_neg",
11+
"winningPlan": {
12+
"stage": "FETCH",
13+
"estimatedTotalKeysExamined": 333333,
14+
"inputStage": {
15+
"stage": "IXSCAN",
16+
"indexName": "title_1",
17+
"isBitmap": true,
18+
"indexUsage": [
19+
{
20+
"indexName": "title_1",
21+
"isMultiKey": false,
22+
"bounds": ["[\"title\": [\"\", { })]"]
23+
}
24+
],
25+
"indexFilterSet": [{ "$regex": { "title": "iwg" } }],
26+
"estimatedTotalKeysExamined": 10000
27+
}
28+
}
29+
},
30+
"executionStats": {
31+
"nReturned": 235,
32+
"executionTimeMillis": 1645.04,
33+
"executionStartAtTimeMillis": 1625.541,
34+
"totalDocsExamined": 235,
35+
"totalKeysExamined": 235,
36+
"executionStages": {
37+
"stage": "FETCH",
38+
"nReturned": 235,
39+
"executionTimeMillis": 1644.9950000000001,
40+
"executionStartAtTimeMillis": 1625.539,
41+
"totalDocsExamined": 235,
42+
"totalKeysExamined": 235,
43+
"exactBlocksRead": 231,
44+
"numBlocksFromCache": 231,
45+
"numBlocksFromDisk": 9806,
46+
"inputStage": {
47+
"stage": "IXSCAN",
48+
"nReturned": 235,
49+
"executionTimeMillis": 1625.406,
50+
"executionStartAtTimeMillis": 1625.406,
51+
"indexName": "title_1",
52+
"indexUsage": [
53+
{
54+
"indexName": "title_1",
55+
"scanLoops": 998383,
56+
"scanType": "ordered",
57+
"scanKeys": ["key 1: [(isInequality: true, estimatedEntryCount: 235)]"]
58+
}
59+
],
60+
"totalKeysExamined": 235,
61+
"numBlocksFromDisk": 9806
62+
}
63+
}
64+
},
65+
"ok": 1
66+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"_debug_active": false,
3+
"_instructions": "Set _debug_active to true to activate this override. This file contains a MongoDB explain('executionStats') response for a sharded collection.",
4+
"explainVersion": 2,
5+
"command": "db.runCommand({explain: { 'find' : 'f_sharded', 'filter' : { 'title' : { '$regex' : 'iwg' } } }})",
6+
"explainCommandPlanningTimeMillis": 0.212,
7+
"explainCommandExecTimeMillis": 353.938,
8+
"dataSize": "9400 bytes",
9+
"queryPlanner": {
10+
"namespace": "try_on_new_million.f_sharded",
11+
"winningPlan": {
12+
"stage": "COLLSCAN",
13+
"indexName": "_id_",
14+
"direction": "Forward",
15+
"runtimeFilterSet": [{ "$regex": { "title": "iwg" } }],
16+
"estimatedTotalKeysExamined": 1
17+
}
18+
},
19+
"executionStats": {
20+
"nReturned": 235,
21+
"executionTimeMillis": 330.589,
22+
"executionStartAtTimeMillis": 0.133,
23+
"totalDocsExamined": 1000000,
24+
"totalKeysExamined": 235,
25+
"executionStages": {
26+
"stage": "COLLSCAN",
27+
"nReturned": 235,
28+
"executionTimeMillis": 330.589,
29+
"executionStartAtTimeMillis": 0.133,
30+
"totalDocsExamined": 1000000,
31+
"indexName": "_id_",
32+
"totalKeysExamined": 235,
33+
"totalDocsRemovedByRuntimeFilter": 999765,
34+
"numBlocksFromCache": 18374
35+
}
36+
},
37+
"ok": 1
38+
}

0 commit comments

Comments
 (0)