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

Prepare test suite for for v2.4 of the GraphQL gem. #26

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

myronmarston
Copy link
Collaborator

Before v2.4 of the GraphQL gem, GraphQL::Schema#types returned all types defined by the SDL string. Beginning in v2.4, orphaned types (that is, types not reachable from the root Query type) are no longer included. We have a number of unit tests that define orphaned types since we don't want or need a full schema for such a test.

To avoid issues as part of upgrading to v2.4, we need to ensure that our tests don't depend on orphaned types that are unavailable in v2.4 and later.

Before v2.4 of the GraphQL gem, `GraphQL::Schema#types` returned _all_ types defined by the SDL string.
Beginning in v2.4, orphaned types (that is, types not reachable from the root `Query` type) are no longer
included. We have a number of unit tests that define orphaned types since we don't want or need a full
schema for such a test.

To avoid issues as part of upgrading to v2.4, we need to ensure that our tests don't depend on orphaned
types that are unavailable in v2.4 and later.
Copy link
Collaborator

@BrianSigafoos-SQ BrianSigafoos-SQ left a comment

Choose a reason for hiding this comment

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

LGTM

@myronmarston myronmarston merged commit b7ca9d8 into main Nov 8, 2024
10 checks passed
@myronmarston myronmarston deleted the myron/upgrade-graphql-2.4/step1 branch November 8, 2024 15:20
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.

2 participants