-
-
Notifications
You must be signed in to change notification settings - Fork 749
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fusion] Enrich Operation Plan Snapshots (#7816)
- Loading branch information
1 parent
c443c83
commit 45d8625
Showing
13 changed files
with
261 additions
and
177 deletions.
There are no files selected for viewing
14 changes: 13 additions & 1 deletion
14
....Execution/Planning/Nodes/RootPlanNode.cs → ...ecution/Planning/Nodes/RequestPlanNode.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/HotChocolate/Fusion-vnext/test/Fusion.Execution.Tests/Extensions/SnapshotExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using HotChocolate.Fusion.Planning; | ||
using HotChocolate.Fusion.Planning.Nodes; | ||
|
||
namespace HotChocolate.Fusion; | ||
|
||
public static class TestSnapshotExtensions | ||
{ | ||
public static void MatchSnapshot(this RequestPlanNode plan) | ||
{ | ||
plan.ToYaml().MatchSnapshot(extension: ".yaml"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...tion.Tests/__snapshots__/OperationPlannerTests.Plan_Simple_Operation_1_Source_Schema.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
request: | ||
- document: >- | ||
{ | ||
productById(id: 1) { | ||
id | ||
name | ||
} | ||
} | ||
nodes: | ||
- id: 1 | ||
schema: "PRODUCTS" | ||
operation: >- | ||
{ | ||
productById(id: 1) { | ||
id | ||
name | ||
} | ||
} |
Oops, something went wrong.