Closed tnaum-ms closed 1 week ago
EDIT: nvm, it was a VPN error I ran into
Also using the "Azure Databses"
Button works fine for NoSQL and MongoDB RU accounts, howerver it fails when I use Clusters Accounts > New Connection with an RU account
it asks for username and password which is not appiclable and fails at the end.
But this is minor, we should probably add the same behaviour with a message and add the Cluster to the appropriate section. So basically the opposite behavior to adding RU to Clusters section.
Indeed. I'll look into it in a separate PR once that build is out.
Thank you for your review and the hints. Merging.
This PR introduces support for "MongoDB Cluster Accounts" in the Workspace area. It provides an option to add a MongoDB cluster connection string to the workspace, store it, and use it to interact with a MongoDB cluster account. This feature is not exclusive to Azure domains and allows interaction with any MongoDB cluster.
Workspace Tree View
It is built on the v2 tree view API provided by
azure-resources
. This PR introducesSharedWorkspaceResourceProvider
andSharedWorkspaceStorage
for future use, enabling MongoDB Clusters support throughMongoClustersWorkspaceBranchDataProvider
andMongoDBAccountsWorkspaceItem
Behavior When Connecting to MongoDB Clusters
A new node has been added to the workspace tree view, allowing users to add new connections. There is no limit to the number of accounts that can be added:
When a user attempts to add a connection:
The connection string is verified, and any errors are shown. Users are then prompted to confirm the username and re-enter the password. If the user is confident that the password in the connection string is correct, they can confirm by pressing Enter.
Behavior When Connecting to Azure Cosmos DB for MongoDB (RU)
The connection flow begins similarly to MongoDB Clusters. However, if an RU cluster is detected (by checking the domain name suffix), the following actions occur:
If an RU connection string is detected:
Other Changes
Most changes in the
mongoClusters
folder support the display of MongoDB cluster tree items within the workspace area.