Skip to content

Closed - #733

Closed
BChoudhury-ms wants to merge 23 commits into
mainfrom
dev/bchoudhury/atlas-mongodb-discovery
Closed

Closed#733
BChoudhury-ms wants to merge 23 commits into
mainfrom
dev/bchoudhury/atlas-mongodb-discovery

Conversation

@BChoudhury-ms

@BChoudhury-ms BChoudhury-ms commented Jun 10, 2026 •

Copy link
Copy Markdown
Contributor

This pull request has been closed and superseded. Its branch has been removed.

Copilot AI review requested due to automatic review settings June 10, 2026 03:50
@BChoudhury-ms
BChoudhury-ms requested a review from a team as a code owner June 10, 2026 03:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-mongodb plugin: 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.

Comment thread l10n/bundle.l10n.json Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 33 out of 33 changed files in this pull request and generated 10 comments.

Comment thread l10n/bundle.l10n.json Resolved
@BChoudhury-ms
BChoudhury-ms force-pushed the dev/bchoudhury/atlas-mongodb-discovery branch from e602e24 to c7e81fd Compare June 16, 2026 06:43
@BChoudhury-ms
BChoudhury-ms requested a review from Copilot June 16, 2026 06:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 35 out of 35 changed files in this pull request and generated 9 comments.

BChoudhury-ms and others added 8 commits June 16, 2026 12:28
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]>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 35 out of 35 changed files in this pull request and generated 5 comments.

@tnaum-ms
Tomasz Naumowicz (tnaum-ms) deleted the dev/bchoudhury/atlas-mongodb-discovery branch June 30, 2026 10:46
@tnaum-ms
Tomasz Naumowicz (tnaum-ms) restored the dev/bchoudhury/atlas-mongodb-discovery branch June 30, 2026 11:57
@tnaum-ms Tomasz Naumowicz (tnaum-ms) changed the title feat: Add Atlas MongoDB discovery provider plugin Closed Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: MongoDB Atlas Service Discovery (UX)

4 participants