Skip to content

Releasing next with v0.2.2#169

Merged
tnaum-ms merged 83 commits into
mainfrom
next
Jun 16, 2025
Merged

Releasing next with v0.2.2#169
tnaum-ms merged 83 commits into
mainfrom
next

Conversation

@tnaum-ms

Copy link
Copy Markdown
Collaborator

This pull request introduces significant updates to the DocumentDB extension API, including a new experimental migration framework, enhancements to the publishing workflow, and documentation updates. The changes focus on enabling advanced data migration scenarios, improving API usability, and refining the development process for the extension.

API Enhancements:

  • Introduced the DocumentDBExtensionApi interface, providing a structured API for extension interactions, including migration-related functionality (api/src/extensionApi.ts, api/src/index.ts, api/src/migration/index.ts, [1] [2] [3].
  • Added the MigrationApi interface to support registering migration providers (api/src/migration/migrationApi.ts, api/src/migration/migrationApi.tsR1-R18).
  • Defined the MigrationProvider interface, enabling extensible provider-based migrations with authentication and customizable actions (api/src/migration/migrationProvider.ts, api/src/migration/migrationProvider.tsR1-R112).
  • Implemented getDocumentDBExtensionApi utility function for retrieving the API, including experimental safeguards and client whitelisting (api/src/utils/getApi.ts, api/src/utils/getApi.tsR1-R93).

Workflow Improvements:

  • Overhauled the .github/workflows/api-publish.yaml file to automate the API package publishing process, including dependency installation, npm cache restoration, and package publishing (.github/workflows/api-publish.yaml, .github/workflows/api-publish.yamlL17-R50).

Documentation Updates:

  • Created api/README.md to provide detailed guidance on API usage, including migration provider implementation, authentication support, and workflow steps (api/README.md, api/README.mdR1-R231).
  • Updated CHANGELOG.md with new features, improvements, and bug fixes for version 0.2.2, including data migration preview support and connection URL handling (CHANGELOG.md, F7e138d5R1).

Configuration Additions:

  • Added api/api-extractor.json to configure API extraction and TypeScript declaration file generation (api/api-extractor.json, api/api-extractor.jsonR1-R21).
  • Created api/package.json with scripts for building, cleaning, compiling, and publishing the API package, along with dependency definitions (api/package.json, api/package.jsonR1-R35).

Miscellaneous:

  • Updated .eslintignore to exclude additional directories and files from linting (.eslintignore, .eslintignoreR2-R7).

Copilot AI and others added 30 commits June 3, 2025 09:53
Co-authored-by: xingfan-git <50465320+xingfan-git@users.noreply.github.com>
Co-authored-by: xingfan-git <50465320+xingfan-git@users.noreply.github.com>
- Copy documentBuffer.ts from sample PR, excluding cosmos-related code
- Update ClustersClient.ts InsertDocumentsResult and insertDocuments method
- Update importDocuments.ts with buffering logic following sample PR
- Rename insertDocumentIntoCluster to insertDocumentWithBufferIntoCluster
- Update l10n bundle with new error message

Co-authored-by: xingfan-git <50465320+xingfan-git@users.noreply.github.com>
tnaum-ms and others added 23 commits June 13, 2025 16:17
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
# Conflicts:
#	.github/workflows/api-extractor.yaml
…e for plugins

as we're still in the experimental phase
Copilot AI review requested due to automatic review settings June 16, 2025 10:35

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

This PR releases version v0.2.2 of the DocumentDB for VS Code extension with major updates in the migration framework, URL connection handling, and improved import performance while also including documentation and workflow improvements.

  • Introduces an experimental migration framework and API enhancements for provider-based migrations.
  • Adds deep-link URL handling for direct connection navigation and updates several documentation files.
  • Updates CI/CD workflows for API publishing and refines linting rules.

Reviewed Changes

Copilot reviewed 40 out of 40 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
docs/release-notes/0.2.2.md New release notes detailing key features of v0.2.2.
docs/release-notes/0.2.1.md Added release notes for v0.2.1.
docs/manual/index.md New manual index page linking to URL construction documentation.
docs/manual/how-to-construct-url.md Comprehensive documentation on constructing deep-link URLs.
docs/learn-more/index.md Updated TOC including a new experimental Data Migrations section.
docs/learn-more/data-migrations.md New documentation on data migration concepts and workflow.
docs/index.md Updated Table of Contents for documentation.
api/tsconfig.json Added TypeScript configuration for the API project.
api/src/utils/getApi.ts Implements API retrieval with version checking and whitelisting.
api/src/migration/migrationProvider.ts Defines interfaces for migration providers.
api/src/migration/migrationApi.ts Defines migration API interface for provider registration.
api/src/migration/index.ts Re-exports migration API and provider interfaces.
api/src/index.ts Main entry point for the API package re-exporting public APIs.
api/src/extensionApi.ts Defines the DocumentDB extension API interface.
api/package.json New package manifest for the API project.
api/api-extractor.json Configuration file for API extraction and declaration generation.
api/README.md Detailed API usage documentation including migration provider examples.
CHANGELOG.md Updated changelog detailing new features and fixes for v0.2.2.
.github/workflows/api-publish.yaml Revised CI workflow for publishing the API package.
.eslintignore Updated linting ignore rules for the repository and API subproject.

Comment thread .eslintignore
@tnaum-ms tnaum-ms merged commit 37af3c7 into main Jun 16, 2025
9 checks passed
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.

4 participants