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

Move gateway post-processing errors into extensions #2380

Merged
merged 2 commits into from
Feb 8, 2023

Conversation

pcmanus
Copy link
Contributor

@pcmanus pcmanus commented Feb 7, 2023

This align with what the router does, and allow to include post-processing error messages in the response without generating errors we weren't before and thus avoids backward compatibility headaches.

Fixes #2374.

@netlify
Copy link

netlify bot commented Feb 7, 2023

👷 Deploy request for apollo-federation-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit d366d2c

@changeset-bot
Copy link

changeset-bot bot commented Feb 7, 2023

🦋 Changeset detected

Latest commit: d366d2c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
@apollo/gateway Patch
@apollo/federation-internals Patch
@apollo/composition Patch
@apollo/query-planner Patch
@apollo/query-graphs Patch
@apollo/subgraph Patch
apollo-federation-integration-testsuite Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codesandbox-ci
Copy link

codesandbox-ci bot commented Feb 7, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

This align with what the router does, and allow to include
post-processing error messages in the response without generating
errors we weren't before and thus avoids backward compatibility
headaches.

Fixes apollographql#2374.
"@apollo/gateway": patch
---

Move gateway post-processing errors into extensions of the response
Copy link
Member

Choose a reason for hiding this comment

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

I do think in general these entries should offer a lot of explanation and context, particularly with respect to what the outcome is from the user's perspective.

In this case, references to the original change that necessitates this one and the related issue would both be helpful for building context. Additionally, I'd mention the versions affected here (2.3.0, 2.3.1), what was "broken", and the behavior we restored (and introduced).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm curious as how changeset handles multi-line changelog entries, but we'll see. Happy with your edits otherwise, thanks.

.changeset/eleven-guests-battle.md Outdated Show resolved Hide resolved
Co-authored-by: Trevor Scheer <trevor.scheer@gmail.com>
@pcmanus pcmanus merged commit c6a8a0c into apollographql:main Feb 8, 2023
@pcmanus pcmanus added this to the 2.3.2 milestone Feb 8, 2023
@pcmanus pcmanus self-assigned this Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Returning null from reference resolver results in "non-nullable field" error for nullable object
2 participants