Skip to content

Conversation

@haiyuazhang
Copy link
Member

@haiyuazhang haiyuazhang commented Nov 13, 2025

MPG migration - databasewatcher: #53873

Copilot AI review requested due to automatic review settings November 13, 2025 20:21
Copilot finished reviewing on behalf of haiyuazhang November 13, 2025 20:23
@haiyuazhang haiyuazhang marked this pull request as draft November 13, 2025 20:25
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request implements an MPG (Management Plane Generator) migration for the databasewatcher SDK. The migration updates the code generation approach from the legacy generator to the new Azure Management Generator.

Key changes:

  • Updates tsp-location.yaml to reference the new management emitter package
  • Refactors REST operations classes from high-level API methods to low-level protocol methods
  • Introduces new pagination helper classes for collection results
  • Updates serialization patterns and model properties naming conventions
  • Changes from string subscription IDs to Guid type
  • Modernizes code generation patterns across models and operations

Reviewed Changes

Copilot reviewed 7 out of 128 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tsp-location.yaml Adds emitter package reference for management plane generator
WatchersRestOperations.cs Refactored from full REST operations to protocol-level HTTP message builders
TargetsRestOperations.cs Same refactoring pattern as WatchersRestOperations
SharedPrivateLinkResourcesRestOperations.cs Same refactoring pattern as WatchersRestOperations
HealthValidationsRestOperations.cs Same refactoring pattern as WatchersRestOperations
AlertRuleResourcesRestOperations.cs Same refactoring pattern as WatchersRestOperations
*CollectionResultOfT.cs (new files) New pagination helper classes for sync and async operations
Models/*.cs Updated serialization, property naming, and constructor patterns
ProviderConstants.cs Made partial and added XML documentation
Utf8JsonRequestContent.cs Made partial and added XML documentation
AzureResourceManagerDatabaseWatcherContext.cs Updated documentation link format

@github-actions
Copy link

github-actions bot commented Nov 13, 2025

API Change Check

APIView identified API level changes in this PR and created the following API reviews

Azure.ResourceManager.DatabaseWatcher

@haiyuazhang haiyuazhang force-pushed the haiyzhan/databasewatcher branch from 9df4a9d to 291e993 Compare November 14, 2025 06:22
@haiyuazhang haiyuazhang marked this pull request as ready for review November 17, 2025 06:35
Copy link
Member

@live1206 live1206 left a comment

Choose a reason for hiding this comment

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

could you update inventory.md?

@haiyuazhang haiyuazhang force-pushed the haiyzhan/databasewatcher branch from 9c8847d to 7a661f9 Compare November 17, 2025 19:30
@ArthurMa1978 ArthurMa1978 merged commit 33c6a0a into Azure:main Nov 18, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants