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

chore: Update graphql-server to Yoga v4 and latest subscriptions #8753

Merged
merged 12 commits into from
Jun 29, 2023

Conversation

dthyresson
Copy link
Contributor

@dthyresson dthyresson commented Jun 27, 2023

This PR bumps

  • Yoga to v4
  • related graphql-tools packages
  • GraphQL
  • GraphQL Armor

There are some new tests for errors to ensure GraphQL errors are not masked.

Also, the behavior of the GraphQL scalar validation message has changed.

it is still an error, but now the message is masked because it is in fact a proper runtime exception (confirmed this behavior with The Guild and is how core Yoga works).

If you are in development, though the original error message about what field failed validation will be present in the extensions.

Note: I don't think this is a breaking change per se, since the scalar behavior is still an error. But, could add in release notes that the message will change.

@dthyresson dthyresson added the release:chore This PR is a chore (means nothing for users) label Jun 27, 2023
@dthyresson dthyresson marked this pull request as draft June 27, 2023 16:41
@dthyresson dthyresson marked this pull request as ready for review June 28, 2023 16:31
@dthyresson dthyresson added this to the chore milestone Jun 29, 2023
Copy link
Collaborator

@Josh-Walker-GM Josh-Walker-GM left a comment

Choose a reason for hiding this comment

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

Looks good to me!

I pushed a change to add a resolution to the e2e tests. Without it I was getting the following error:
image
Setting a resolution was based on the change made in #7695 which made a similar version change for graphql-yoga

I am happy for that to be reverted if there is a better solution.

@dthyresson dthyresson merged commit 89cdba8 into redwoodjs:main Jun 29, 2023
29 checks passed
@jtoar jtoar modified the milestones: chore, v6.0.0 Jun 29, 2023
jtoar pushed a commit that referenced this pull request Jun 30, 2023
* WIP v4 yoga and gql updates

* Update graphql tools bump

* yarn constraints

* GraphQLArmor bump

* Updates scalars in studio

* Updates error masking tests

* Resolve yarn

* yarn dedupe

* Add resolution to e2e

---------

Co-authored-by: Josh GM Walker <56300765+Josh-Walker-GM@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:chore This PR is a chore (means nothing for users)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants