馃悰 Bug Bash "0.8.0" + 馃捇 Interactive Shell #595
Tomasz Naumowicz (tnaum-ms)
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
馃悰 Bug Bash "0.8.0"
0. Prerequisites:
1. DocumentDB for VS Code - download here:
Download Link: vscode-documentdb-0.8.0-bugbash-2.vsix
If you are launching VS Code from WSL:
In VS Code
Extensions View, install the extension from the artifact file by selectingInstall from VSIX...as shown below:2. An existing Azure DocumentDB cluster
<connection string will be shared separately>Where to file the bugs?
鈩癸笍 FYI
traceoutput to help with resolving issues faster. Share the trace output in your report.馃啎 What's New in 0.8.0
This release is a big one. Three new features land together:
馃敜 Autocompletion in the Collection View
The filter, project, sort, and aggregation editors now understand your data. As you type queries, the editor suggests field names (sampled from your collection's actual schema), operators, and values, with hover documentation for every operator. No more guessing
$gtevs$gt.馃幑 Query Playground
A new
.documentdb.jsfile type that lets you write and run JavaScript scripts against your cluster directly inside VS Code. Each script block has its own Run button (CodeLens), there's a Run All, results appear in a dedicated tab, andconsole.log()/print()/printjson()all work. Think of it as a notebook-style scratchpad, but for DocumentDB.We no longer depend on the
mongoshexecutable being installed on your machine. The runtime is bundled directly into the extension, which means it works with Azure DocumentDB clusters that use Entra ID for authentication. (Yes, this is big. We're really proud of it.)This also means that installing the extension is all you need. No cross-platform headaches, no version mismatches, no PATH configuration, no separate install steps. Everything comes preconfigured and ready to go the moment the extension is installed.
馃捇 Interactive Shell
A full REPL terminal embedded in VS Code, giving you the
mongoshexperience integrated with the extension's connection management. Open it from any database or collection in the tree view. Supportsshow dbs,use <db>,help,it(cursor iteration),exit/quit, and Ctrl+C to cancel long-running operations.Same as the Query Playground, no external
mongoshexecutable required. The runtime is bundled, so it works with Azure DocumentDB clusters that use Entra ID for authentication. (Yes, this is big. We're really proud of it.)Again, just install the extension and you're done. No extra tools, no configuration, no surprises regardless of your OS or environment.
馃幆 Bug Bash Focus
We love all three features, but this bug bash zeroes in on the Interactive Shell and the Query Playground. These are the freshest surfaces and the most likely to surprise us.
If you find time and want to hack around the collection-view autocompletion too, even better.
馃И Test Scenarios
0. Find the Query Playground and the Interactive Shell, then find
helpGoal: Get oriented. Both features are new and you'll need to discover where they live in the UI. Once you find them, look for the
helpcommand inside each one and see what it tells you.helpin the Interactive Shell. What does it show?helpin the Query Playground. What does it show? Is it the same?1. Query the
restaurantscollectionGoal: Use the Interactive Shell (or Query Playground) to find the right data.
restaurantscollection.No hints on exact field names. Part of the task is discovering the schema.
2. Write a loop
Goal: Write a small script in both the Interactive Shell and the Query Playground and compare the experience.
sleep()between each print.Enterbehaves as you type.3. A long sleep
Goal: Test cancellation and timeout behavior.
sleep(45000)(45 seconds).4. Switch databases mid-session
Goal: Test shell state persistence.
usea different database.5. Open multiple shells and playgrounds
Goal: Stress the session management.
6. Freestyle - go wild 馃敟
Goal: Do the weird thing. This is the actual bug bash.
All reactions