-
Notifications
You must be signed in to change notification settings - Fork 272
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
Dispatch errors from the primary response to deferred responses #2192
Merged
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
8b8c8b9
split queries between primary and deferred parts
Geal 994dac2
handle named fragments
Geal 84e9d83
cleanup
Geal 5f993b9
do nnot add the defer directive to the generated query
Geal 597fbc8
logs
Geal 62a3fb7
Merge branch 'dev' into geal/split-queries
Geal 73c24fb
update router-bridge and apollo-encoder
Geal 405803c
handle queryPath in deferred nodes
Geal 02bdb78
split arrays
Geal 0364c60
Merge branch 'dev' into geal/split-queries
Geal 0563c78
missing snapshots
Geal f903ee5
missing snapshot
Geal ecb2dcb
lint
Geal 93a7ec2
handle arrays
Geal 9b222bf
remove unused code
Geal 606dcbd
add comments
Geal cdf1b03
Merge branch 'dev' into geal/split-queries
Geal 3a1bc19
update router-bridge to fix CI builds
Geal e794955
update router-bridge
Geal 223bc97
Merge branch 'dev' into geal/split-queries
Geal 20eeefe
Merge branch 'dev' into geal/split-queries
Geal 55e6ad9
filter the path for valueCompletion extensions
Geal 45c5ce8
dispatch errors from the primary query
Geal ca55832
add a test for expected behaviour
Geal 68b9b18
we need to check that a path is handled by a query
Geal d268507
lint
Geal 0fe7cbf
rename test
Geal 7c606d7
check that a query contains an error path
Geal d564e36
changelog & lint
Geal b2fb376
remove debug print
Geal 1744aa6
Merge branch 'dev' into geal/dispatch-errors-from-primary
Geal 38954e1
fix broken english
Geal dce1978
Apply suggestions from code review
Geal 60a3b2e
This is a combination of 2 commits.
Geal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
32 changes: 32 additions & 0 deletions
32
...er__services__supergraph_service__tests__errors_from_primary_on_deferred_responses-2.snap
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,32 @@ | ||
--- | ||
source: apollo-router/src/services/supergraph_service.rs | ||
expression: stream.next_response().await.unwrap() | ||
--- | ||
{ | ||
"hasNext": false, | ||
"incremental": [ | ||
{ | ||
"data": { | ||
"errorField": null | ||
}, | ||
"path": [ | ||
"computer" | ||
], | ||
"errors": [ | ||
{ | ||
"message": "Error field", | ||
"locations": [ | ||
{ | ||
"line": 1, | ||
"column": 93 | ||
} | ||
], | ||
"path": [ | ||
"computer", | ||
"errorField" | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
12 changes: 12 additions & 0 deletions
12
...uter__services__supergraph_service__tests__errors_from_primary_on_deferred_responses.snap
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 @@ | ||
--- | ||
source: apollo-router/src/services/supergraph_service.rs | ||
expression: stream.next_response().await.unwrap() | ||
--- | ||
{ | ||
"data": { | ||
"computer": { | ||
"id": "Computer1" | ||
} | ||
}, | ||
"hasNext": true | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is removing the redundant parts of the snapshot, now that error dispatching is fixed