-
Notifications
You must be signed in to change notification settings - Fork 340
Microsoft.StorageSync | Adding arguments to trigger change detection command #1473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Added required directory-path, optional change-detection-mode, and paths options to the cloud endpoint change detection command. Updated service and option definitions to support these parameters, and adjusted tests and documentation accordingly for improved flexibility and control.
Refactored StorageSyncService to set ChangeDetectionMode using the constructor instead of Enum.TryParse. Updated live test to use 'Recursive' mode and an empty paths array. Updated assets.json tag for live tests.
There was a problem hiding this 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 enhances the StorageSync cloud endpoint change detection command by adding optional parameters to provide more granular control over the change detection process. The changes replace the previous boolean recursive flag with a more flexible changeDetectionMode parameter and add support for specifying specific paths.
Key Changes:
- Replaces the
recursiveboolean parameter with achangeDetectionModestring parameter that accepts values like "Default" or "Recursive" - Changes
directoryPathfrom optional to required parameter - Adds a new
pathsparameter to allow specifying an array of specific paths for change detection - Updates tests, documentation, and command-line options to reflect the new parameter structure
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| tools/Azure.Mcp.Tools.StorageSync/src/Services/IStorageSyncService.cs | Updates method signature to replace recursive boolean and optional filePaths with required directoryPath and optional changeDetectionMode and paths parameters |
| tools/Azure.Mcp.Tools.StorageSync/src/Services/StorageSyncService.cs | Implements the new parameter handling logic, including conditional setting of change detection mode and path addition |
| tools/Azure.Mcp.Tools.StorageSync/src/Options/StorageSyncOptionDefinitions.cs | Replaces Recursive option with ChangeDetectionMode and Paths options with updated descriptions |
| tools/Azure.Mcp.Tools.StorageSync/src/Options/CloudEndpoint/CloudEndpointTriggerChangeDetectionOptions.cs | Adds properties for the new parameters: DirectoryPath, ChangeDetectionMode, and Paths |
| tools/Azure.Mcp.Tools.StorageSync/src/Commands/CloudEndpoint/CloudEndpointTriggerChangeDetectionCommand.cs | Updates command registration and option binding to use the new parameters, makes DirectoryPath required |
| tools/Azure.Mcp.Tools.StorageSync/tests/Azure.Mcp.Tools.StorageSync.LiveTests/StorageSyncCommandTests.cs | Updates test to include the new required parameters with sample values |
| tools/Azure.Mcp.Tools.StorageSync/tests/Azure.Mcp.Tools.StorageSync.LiveTests/assets.json | Updates the tag for recorded test assets |
| servers/Azure.Mcp.Server/docs/azmcp-commands.md | Updates command documentation to show the new required and optional parameters |
| servers/Azure.Mcp.Server/docs/e2eTestPrompts.md | Updates the test prompt to include directory path parameter |
...Mcp.Tools.StorageSync/tests/Azure.Mcp.Tools.StorageSync.LiveTests/StorageSyncCommandTests.cs
Show resolved
Hide resolved
...Mcp.Tools.StorageSync/tests/Azure.Mcp.Tools.StorageSync.LiveTests/StorageSyncCommandTests.cs
Show resolved
Hide resolved
tools/Azure.Mcp.Tools.StorageSync/src/Options/StorageSyncOptionDefinitions.cs
Outdated
Show resolved
Hide resolved
...cp.Tools.StorageSync/src/Options/CloudEndpoint/CloudEndpointTriggerChangeDetectionOptions.cs
Show resolved
Hide resolved
...p.Tools.StorageSync/src/Commands/CloudEndpoint/CloudEndpointTriggerChangeDetectionCommand.cs
Outdated
Show resolved
Hide resolved
Renamed the 'triggerchangedetection' command and related references to 'changedetection' for consistency and clarity across the StorageSync tool, documentation, and tests. Updated option descriptions for improved clarity.
What does this PR do?
[Provide a clear, concise description of the changes][Any additional context, screenshots, or information that helps reviewers]GitHub issue number?
[Link to the GitHub issue this PR addresses]Pre-merge Checklist
servers/Azure.Mcp.Server/CHANGELOG.mdand/orservers/Fabric.Mcp.Server/CHANGELOG.mdfor product changes (features, bug fixes, UI/UX, updated dependencies)servers/Azure.Mcp.Server/README.mdand/orservers/Fabric.Mcp.Server/README.mddocumentationeng/scripts/Process-PackageReadMe.ps1. See Package README/servers/Azure.Mcp.Server/docs/azmcp-commands.mdand/or/docs/fabric-commands.md.\eng\scripts\Update-AzCommandsMetadata.ps1to update tool metadata in azmcp-commands.md (required for CI)ToolDescriptionEvaluatorand obtained a score of0.4or more and a top 3 ranking for all related test promptsconsolidated-tools.json/servers/Azure.Mcp.Server/docs/e2eTestPrompts.mdcrypto mining, spam, data exfiltration, etc.)/azp run mcp - pullrequest - liveto run Live Test Pipeline