-
Notifications
You must be signed in to change notification settings - Fork 299
Dispatch errors from the primary response to deferred responses #2192
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
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
994dac2
handle named fragments
84e9d83
cleanup
5f993b9
do nnot add the defer directive to the generated query
597fbc8
logs
62a3fb7
Merge branch 'dev' into geal/split-queries
73c24fb
update router-bridge and apollo-encoder
405803c
handle queryPath in deferred nodes
02bdb78
split arrays
0364c60
Merge branch 'dev' into geal/split-queries
0563c78
missing snapshots
f903ee5
missing snapshot
ecb2dcb
lint
93a7ec2
handle arrays
9b222bf
remove unused code
606dcbd
add comments
cdf1b03
Merge branch 'dev' into geal/split-queries
3a1bc19
update router-bridge to fix CI builds
e794955
update router-bridge
223bc97
Merge branch 'dev' into geal/split-queries
20eeefe
Merge branch 'dev' into geal/split-queries
55e6ad9
filter the path for valueCompletion extensions
45c5ce8
dispatch errors from the primary query
ca55832
add a test for expected behaviour
68b9b18
we need to check that a path is handled by a query
d268507
lint
0fe7cbf
rename test
7c606d7
check that a query contains an error path
d564e36
changelog & lint
b2fb376
remove debug print
1744aa6
Merge branch 'dev' into geal/dispatch-errors-from-primary
38954e1
fix broken english
dce1978
Apply suggestions from code review
60a3b2e
This is a combination of 2 commits.
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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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