Repository navigation
Closed - #733
Closed
BChoudhury-ms wants to merge 23 commits into
Closed
Closed#733BChoudhury-ms wants to merge 23 commits into
BChoudhury-ms wants to merge 23 commits into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new MongoDB Atlas Service Discovery provider plugin to the VS Code DocumentDB extension, enabling users to authenticate to Atlas, browse projects/clusters in the Discovery view, and import/connect to Atlas clusters with the existing connection experience.
Changes:
- Introduces
service-atlas-mongodbplugin: Atlas Admin API client (OAuth device flow + API key digest), session management, discovery tree items, and discovery wizard steps. - Integrates Atlas as a first-class “experience” and wires the provider into discovery registration + context-menu enablement.
- Updates database creation and shell UX for Atlas (initial collection option; terminal title/banner labeling).
Reviewed changes
Copilot reviewed 30 out of 30 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| src/plugins/service-atlas-mongodb/models/AtlasProjectModel.ts | Atlas API response shape interfaces (org/user/project/cluster). |
| src/plugins/service-atlas-mongodb/models/AtlasClusterModel.ts | Atlas-specific BaseClusterModel extension + factory helper. |
| src/plugins/service-atlas-mongodb/discovery-wizard/SelectAtlasSteps.ts | Wizard prompt steps for selecting Atlas project/cluster. |
| src/plugins/service-atlas-mongodb/discovery-wizard/AtlasExecuteStep.ts | Wizard execute step that sets the selected connection string. |
| src/plugins/service-atlas-mongodb/discovery-tree/AtlasServiceRootItem.ts | Discovery tree root node with auth gating + project listing. |
| src/plugins/service-atlas-mongodb/discovery-tree/AtlasProjectItem.ts | Project node that lists clusters on expand. |
| src/plugins/service-atlas-mongodb/discovery-tree/AtlasClusterItem.ts | Cluster leaf node integrating with connection/auth flows and UI tooltip. |
| src/plugins/service-atlas-mongodb/config.ts | Provider constants (IDs, labels, URLs, storage keys). |
| src/plugins/service-atlas-mongodb/auth/AtlasSessionManager.ts | Session persistence/refresh state machine backed by SecretStorage/globalState. |
| src/plugins/service-atlas-mongodb/auth/AtlasSession.ts | Session/auth method types + session state enum. |
| src/plugins/service-atlas-mongodb/auth/AtlasOAuthDeviceFlow.ts | Orchestrates OAuth device flow (progress UI + polling + token storage). |
| src/plugins/service-atlas-mongodb/auth/AtlasOAuthClient.ts | HTTP calls for device authorize/token polling/refresh. |
| src/plugins/service-atlas-mongodb/auth/AtlasAuthQuickPick.ts | QuickPick for choosing OAuth vs API key authentication. |
| src/plugins/service-atlas-mongodb/auth/AtlasApiKeyFlow.ts | API key input + validation + credential storage. |
| src/plugins/service-atlas-mongodb/AtlasDiscoveryProvider.ts | Provider implementation + registration hooks (tree root + wizard + filters/credentials). |
| src/plugins/service-atlas-mongodb/api/AtlasDigestAuth.ts | Digest auth challenge parsing + response header computation. |
| src/plugins/service-atlas-mongodb/api/AtlasApiClient.ts | Atlas Admin API v2 client supporting OAuth bearer + digest auth. |
| src/DocumentDBExperiences.ts | Adds Atlas as a new Experience/API entry. |
| src/documentdb/shell/ShellSessionManager.ts | Adds optional shellLabel to drive terminal labeling. |
| src/documentdb/shell/DocumentDBShellPty.ts | Uses shellLabel in shell banner and terminal title strings. |
| src/documentdb/ClustersExtension.ts | Registers the new Atlas discovery provider. |
| src/documentdb/ClustersClient.ts | Extends createDatabase to optionally create a user-named initial collection. |
| src/commands/openInteractiveShell/openInteractiveShell.ts | Uses shellLabel when naming terminals; sets Atlas label based on experience. |
| src/commands/createDatabase/ExecuteStep.ts | Passes optional initial collection name through to ClustersClient.createDatabase. |
| src/commands/createDatabase/CreateDatabaseWizardContext.ts | Adds requiresInitialCollection + collectionName to wizard context. |
| src/commands/createDatabase/createDatabase.ts | Adds initial collection prompt step when creating DB for Atlas experience. |
| src/commands/createCollection/InitialCollectionNameStep.ts | New prompt step wrapper for initial collection name. |
| package.json | Enables existing commands/menus for the new Atlas experience context. |
| l10n/bundle.l10n.json | Adds localization entries for new Atlas user-facing strings. |
| docs/atlas-mongodb-discovery-flow.md | Documents the end-to-end Atlas discovery flow and architecture. |
…f an Atlas session
…on, and localize wizard errors
…eak cryptographic algorithm' Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
BChoudhury-ms
force-pushed
the
dev/bchoudhury/atlas-mongodb-discovery
branch
from
June 16, 2026 06:43
e602e24 to
c7e81fd
Compare
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Tomasz Naumowicz (tnaum-ms)
deleted the
dev/bchoudhury/atlas-mongodb-discovery
branch
June 30, 2026 10:46
Tomasz Naumowicz (tnaum-ms)
restored the
dev/bchoudhury/atlas-mongodb-discovery
branch
June 30, 2026 11:57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request has been closed and superseded. Its branch has been removed.