Skip to content

[Fusion] Make capabilities opt-out#9497

Merged
tobias-tengler merged 3 commits intomainfrom
tte/fix-capabilities-inference-from-settings
Apr 1, 2026
Merged

[Fusion] Make capabilities opt-out#9497
tobias-tengler merged 3 commits intomainfrom
tte/fix-capabilities-inference-from-settings

Conversation

@tobias-tengler
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings April 1, 2026 17:15
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

Updates Fusion gateway source-schema client configuration so transport capabilities are opt-out (defaulting to “all supported”), aligning runtime behavior with more permissive defaults and adding test coverage to lock in the new behavior.

Changes:

  • Default SourceSchemaClientCapabilities and supported operations to All when capabilities aren’t explicitly restricted.
  • Update JSON capabilities parsing logic to remove capabilities/operations only when explicitly set to false.
  • Add execution tests covering default behavior, opt-out flags, custom client names, and custom Accept formats.

Reviewed changes

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

File Description
src/HotChocolate/Fusion/test/Fusion.Execution.Tests/Execution/FusionRequestExecutorManagerTests.cs Adds tests validating default (opt-out) capabilities, supported operations, Accept headers, and overrides via settings.
src/HotChocolate/Fusion/src/Fusion.Execution/Execution/FusionRequestExecutorManager.cs Switches capability/operation defaults to All and changes parsing to disable features only when explicitly configured off.
src/HotChocolate/Fusion/src/Fusion.Execution/Execution/Clients/SourceSchemaHttpClientConfiguration.cs Updates default Capabilities fallback to SourceSchemaClientCapabilities.All.
src/HotChocolate/Fusion/src/Fusion.Execution/Execution/Clients/SourceSchemaClientCapabilities.cs Introduces All convenience flag combining VariableBatching and RequestBatching.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants