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

fix: Support new error type for persisted query publish #1697

Merged
merged 3 commits into from
Aug 2, 2023

Conversation

dbanty
Copy link
Contributor

@dbanty dbanty commented Aug 2, 2023

Also removes what appears to be accidental duplicate code.

@dbanty dbanty requested a review from glasser August 2, 2023 21:05
@@ -6,6 +6,9 @@ mutation PublishOperationsMutation($graphId: ID!, $listId: ID!, $operationManife
... on PermissionError {
message
}
... on CannotModifyOperationBodyError {
Copy link
Member

Choose a reason for hiding this comment

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

Just for posterity, a better thing to do here would be ... on Error but graphql-client seems to disallow that :( graphql-rust/graphql-client#454

@dbanty dbanty added this to the v0.17.3 milestone Aug 2, 2023
@dbanty dbanty merged commit 46a57ce into main Aug 2, 2023
@dbanty dbanty deleted the pq-cannot-modify-operation-body-error branch August 2, 2023 21:30
@dbanty dbanty added the bug 🐞 label Aug 2, 2023
@dbanty dbanty mentioned this pull request Aug 2, 2023
dbanty added a commit that referenced this pull request Aug 2, 2023
## 🚀 Features

- **Support binary mirrors via the npm installer - @LongLiveCHIEF,
#1675**

When installing Rover via npm, you can override the base URL where Rover
binaries are downloaded from in one of two ways:
     - by setting the `APOLLO_ROVER_DOWNLOAD_HOST` environment variable
     - by adding the following to your global or local `.npmrc`:
  
  ```ini
  apollo_rover_download_host=https://your.mirror.com/repository
  ```

This enables installing Rover when `https://rover.apollo.dev` is
unavailable, for example, in a private network.

## 🐛 Fixes

- **Improve error handling for `persisted-queries publish` - @dbanty,
#1697**

## 📚 Documentation

- **Clarify that `routing_url` is optional when using a graph ref with
`rover dev` - @smyrick, #1683**

---------

Co-authored-by: Dylan Anthony <[email protected]>
Co-authored-by: Maria Elisabeth Schreiber <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants