Skip to content

Conversation

@JoshLove-msft
Copy link
Member

Contributing to the Azure SDK

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.

@github-actions github-actions bot added AI Model Inference AI Projects Client This issue is related to a non-management package CodeGen Issues that relate to code generation labels Oct 31, 2025
@github-actions
Copy link

github-actions bot commented Oct 31, 2025

API Change Check

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

Azure.AI.Projects

@JoshLove-msft JoshLove-msft marked this pull request as ready for review November 3, 2025 23:41
@JoshLove-msft JoshLove-msft requested a review from m-nash as a code owner November 3, 2025 23:41
Copilot AI review requested due to automatic review settings November 3, 2025 23:41
@JoshLove-msft JoshLove-msft enabled auto-merge (squash) November 3, 2025 23:51
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 PR extends the SpecialHeadersVisitor to support optionally adding back the x-ms-client-request-id header in generated request methods, enabling the Client Plugin to include this header when needed.

  • Modified SpecialHeadersVisitor to accept a boolean parameter controlling whether to include x-ms-client-request-id in requests
  • Added build targets for the Client Plugin to both service.proj and CodeGeneration.targets
  • Updated the Client Plugin to use the new SpecialHeadersVisitor parameter

Reviewed Changes

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

Show a summary per file
File Description
eng/service.proj Added BuildPlugin target and updated GenerateCode to depend on it; cleaned up whitespace
eng/packages/plugins/client/Client.Plugin/src/ClientPlugin.cs Updated SpecialHeadersVisitor instantiation to include x-ms-client-request-id in requests
eng/packages/plugins/client/Client.Plugin/src/Client.Plugin.csproj Refactored property name from VisitorsSharedSource to AzureGeneratorSource and simplified LinkBase paths
eng/packages/plugins/client/Client.Plugin/ci.yml Added trigger path for http-client-csharp to trigger CI when generator changes
eng/packages/http-client-csharp/generator/Azure.Generator/test/Visitors/SpecialHeadersVisitorTests.cs Expanded test coverage to verify both modes of header inclusion and refactored to test multiple operations
eng/packages/http-client-csharp/generator/Azure.Generator/test/TestHelpers/MockHelpers.cs Added visitors parameter to allow injecting custom visitors during testing
eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/SpecialHeadersVisitor.cs Refactored to support optional inclusion of x-ms-client-request-id header via constructor parameter and split logic into two methods
eng/CodeGeneration.targets Added BuildPlugin target with skip condition and updated GenerateCode to depend on it

@JoshLove-msft
Copy link
Member Author

/check-enforcer evaluate

@JoshLove-msft
Copy link
Member Author

/check-enforcer override

@JoshLove-msft JoshLove-msft merged commit 1580254 into Azure:main Nov 4, 2025
58 of 59 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Model Inference AI Projects Client This issue is related to a non-management package CodeGen Issues that relate to code generation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants