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

ROVER-331 Add specific CompositionError handling #2422

Merged
merged 4 commits into from
Mar 3, 2025

Conversation

jonathanrainer
Copy link
Contributor

@jonathanrainer jonathanrainer commented Feb 25, 2025

Fixes: #2421

It seems that in the move from old to new we got rid of some specific handling around composition errors. This has been re-added

Error From Rover v0.26.3

{"data":{"success":false},"error":{"code":"E029","details":{"build_errors":[{"code":"INVALID_GRAPHQL","message":"[object Object]","nodes":[{"end":null,"source":"@key(\"randomStuff\")\ntype Query {\n    field1: String!\n}","start":null,"subgraph":"fed-service-1"}],"omittedNodesCount":0,"type":"composition"}]},"message":"Encountered 1 build error while trying to build a supergraph."},"json_version":"1"} 

Error from Rover v0.27.2

{"json_version":"1","data":{"success":false},"error":{"message":"Encountered 1 build error while trying to build a supergraph.","code":null}}

Error from this PR

{"json_version":"1","data":{"success":false},"error":{"details":{"build_errors":[{"message":"[object Object]","code":"INVALID_GRAPHQL","type":"composition","nodes":[{"subgraph":"fed-service-1","source":"@key(\"randomStuff\")\ntype Query {\n    field1: String!\n}","start":null,"end":null}],"omittedNodesCount":0}]},"code":"E029","message":"Encountered 1 build error while trying to build a supergraph."}}

@jonathanrainer jonathanrainer requested a review from a team as a code owner February 25, 2025 12:52
@svc-apollo-docs
Copy link
Collaborator

svc-apollo-docs commented Feb 25, 2025

✅ Docs preview has no changes

The preview was not built because there were no changes.

Build ID: d990ab3e22e85fda612753e3

It seems that in the move from old to new we got rid of some specific
handling around composition errors. This has been re-added
@jonathanrainer jonathanrainer merged commit 452aabd into main Mar 3, 2025
32 checks passed
@jonathanrainer jonathanrainer deleted the jr/bug/ROVER-331 branch March 3, 2025 09:00
@pubmodmatt pubmodmatt added this to the vNext milestone Mar 10, 2025
@pubmodmatt pubmodmatt added the fix 🩹 fixes a bug label Mar 10, 2025
@pubmodmatt pubmodmatt mentioned this pull request Mar 10, 2025
pubmodmatt added a commit that referenced this pull request Mar 12, 2025
# [0.28.0] - 2025-03-12

## 🚀 Features

- **Default to Apollo Router 2.x for `rover dev` - @pubmodmatt PR
#2433**

The default version of Apollo Router used by `rover dev` is now 2.x
instead of 1.x. The default can be overridden by
setting `APOLLO_ROVER_DEV_ROUTER_VERSION`, for example
`APOLLO_ROVER_DEV_ROUTER_VERSION=1.61.0`.

- **Implement supergraph config schema command - @jonathanrainer PR
#2418**

Adds a new `rover supergraph config schema` command to output the
JSONSchema for `supergraph.yaml`. This can be used to configure editor
support for the file.

## 🐛 Fixes

- **Add specific CompositionError handling - @jonathanrainer PR #2422**
- **Pass log_level through to Router binary - @monkpow PR #2426**
- **Fix formatting of table output by `rover config whoami` -
@pubmodmatt PR #2413**
- **Better error on missing environment variable - @pubmodmatt PR
#2442**

## 🛠 Maintenance

- **Add Apollo Router 2.x dependency to renovate - @pubmodmatt PR
#2430**
- **Fix CI post update to Rustup 1.28 - @jonathanrainer PR #2431**
- **Replace backoff with backon - @pubmodmatt PR #2437**
- **Add exemption for unmaintained humantime dependency - @pubmodmatt PR
#2440**

## 📚 Documentation

- **Add docs on using the native GitHub actions - @lleadbet PR #2419**
- **Add changelog entry for new behaviour w.r.t subgraph_url -
@jonathanrainer PR #2420**
- **GitHub CI/CD - @shorgi PR #2427**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix 🩹 fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rover supergraph compose errors are missing the code and details
4 participants