Skip to content
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

Fixed issue with variable forwarding in nested fields. #6348

Merged
merged 5 commits into from
Jul 18, 2023

Conversation

A360JMaxxgamer
Copy link
Collaborator

No description provided.

@A360JMaxxgamer A360JMaxxgamer added the Area: Fusion Issue is related to Hot Chocolate Fusion label Jul 18, 2023
@@ -55,6 +56,17 @@ protected RequestDocumentFormatter(FusionGraphConfiguration configuration)

rootSelectionSetNode = new SelectionSetNode(new[] { rootResolver });
path = p;

var variables =
Copy link
Member

Choose a reason for hiding this comment

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

Why an immutable dictionary. Those have bad lookup perf.

@@ -96,6 +97,21 @@ protected RequestDocumentFormatter(FusionGraphConfiguration configuration)
executionStep,
rootSelection.Selection,
field);

if (!rootSelection.Selection.Arguments.IsFullyCoercedNoErrors)
Copy link
Member

Choose a reason for hiding this comment

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

We already did traverse the graph for variables but did forget this branch.

@michaelstaib michaelstaib marked this pull request as ready for review July 18, 2023 16:35
@michaelstaib michaelstaib changed the title add test to ensure variables are passed through fusion Fixed issue with variable forwarding in nested fields. Jul 18, 2023
@michaelstaib michaelstaib merged commit 7d375fe into main Jul 18, 2023
@michaelstaib michaelstaib deleted the fusion-nested-variables-bug branch July 18, 2023 16:45
@sonarcloud
Copy link

sonarcloud bot commented Jul 18, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 3 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

This was referenced Sep 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Fusion Issue is related to Hot Chocolate Fusion 🌶️ hot chocolate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants