Skip to content

Fix naming of MCPApproval#53073

Merged
nick863 merged 3 commits intomainfrom
nirovins/fix_property_name
Oct 10, 2025
Merged

Fix naming of MCPApproval#53073
nick863 merged 3 commits intomainfrom
nirovins/fix_property_name

Conversation

@nick863
Copy link
Copy Markdown
Member

@nick863 nick863 commented Oct 8, 2025

Contributing to the Azure SDK

See issue

Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.

For specific information about pull request etiquette and best practices, see this section.

@nick863 nick863 requested a review from trangevi as a code owner October 8, 2025 18:45
Copilot AI review requested due to automatic review settings October 8, 2025 18:45
Copy link
Copy Markdown
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 PR fixes the naming of properties in the MCPApproval class to better reflect their actual behavior. The properties were renamed from AlwaysApprove/NeverApprove to AlwaysRequireApproval/NeverRequireApproval to clarify that they indicate when approval is required, not when it's automatically granted.

Key changes:

  • Renamed AlwaysApprove to AlwaysRequireApproval and NeverApprove to NeverRequireApproval
  • Updated all test references to use the new property names
  • Updated API surface files to reflect the breaking change

Reviewed Changes

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

Show a summary per file
File Description
sdk/ai/Azure.AI.Agents.Persistent/src/Custom/MCPApproval.cs Renamed properties and updated internal logic to use new names
sdk/ai/Azure.AI.Agents.Persistent/tests/UnitTests.cs Updated all test assertions to reference the renamed properties
sdk/ai/Azure.AI.Agents.Persistent/api/Azure.AI.Agents.Persistent.netstandard2.0.cs Updated API surface to reflect the property name changes
sdk/ai/Azure.AI.Agents.Persistent/api/Azure.AI.Agents.Persistent.net8.0.cs Updated API surface to reflect the property name changes
sdk/ai/Azure.AI.Agents.Persistent/CHANGELOG.md Added changelog entry documenting the naming fix

Comment thread sdk/ai/Azure.AI.Agents.Persistent/src/Custom/MCPApproval.cs Outdated
Comment thread sdk/ai/Azure.AI.Agents.Persistent/src/Custom/MCPApproval.cs Outdated
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Oct 8, 2025

API Change Check

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

Azure.AI.Agents.Persistent

@nick863 nick863 merged commit 6dad381 into main Oct 10, 2025
17 checks passed
@nick863 nick863 deleted the nirovins/fix_property_name branch October 10, 2025 16:54
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