Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Fusion] Fix mutation execution backlog dropping batched follow-up operations - #9847

#9847
Merged
tobias-tengler merged 1 commit into
mainChilliCream/graphql-platform:mainfrom
tte/fix-operation-batch-after-mutationChilliCream/graphql-platform:tte/fix-operation-batch-after-mutationCopy head branch name to clipboard
Jun 4, 2026
Merged

[Fusion] Fix mutation execution backlog dropping batched follow-up operations#9847
tobias-tengler merged 1 commit into
mainChilliCream/graphql-platform:mainfrom
tte/fix-operation-batch-after-mutationChilliCream/graphql-platform:tte/fix-operation-batch-after-mutationCopy head branch name to clipboard

Conversation

@tobias-tengler

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings June 4, 2026 12:57

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Code review skipped — your organization's overage spend limit has been reached.

Code review is billed via overage credits. To resume reviews, an organization admin can raise the monthly limit at claude.ai/admin-settings/claude-code.

Once credits are available, push a new commit or reopen this pull request to trigger a review.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 Fusion mutation execution scheduling so that mutation follow-up operations (e.g., batched node lookups) are not dropped when the dependent execution nodes have only optional dependencies. It also adds a regression test verifying that follow-up lookups are executed and composed into the final mutation result.

Changes:

  • Fix mutation backlog initialization to treat nodes with optional dependencies as non-root nodes (so they are enqueued properly).
  • Add a regression test covering mutation root execution with batched node lookups and follow-up field hydration.
  • Add a snapshot capturing the expected upstream interactions and operation plan.

Reviewed changes

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

File Description
src/HotChocolate/Fusion/src/Fusion.Execution/Execution/ExecutionState.cs Ensures mutation nodes with optional dependencies are added to the backlog (prevents follow-up ops from being skipped).
src/HotChocolate/Fusion/test/Fusion.AspNetCore.Tests/MutationTests.cs Adds a regression test for mutation execution with batched node lookups and follow-up fields.
src/HotChocolate/Fusion/test/Fusion.AspNetCore.Tests/__snapshots__/MutationTests.Mutation_Root_With_Batched_Node_Lookups_Executes_Followups.yaml Adds the expected snapshot output and upstream interaction trace for the new test.

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

@tobias-tengler
tobias-tengler merged commit dee2704 into main Jun 4, 2026
141 of 143 checks passed
@tobias-tengler
tobias-tengler deleted the tte/fix-operation-batch-after-mutation branch June 4, 2026 13:01
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.