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

Add support of SDL to KnownTypeNames validation rule #999

Merged
merged 18 commits into from
Mar 14, 2022

Conversation

vhenzl
Copy link
Contributor

@vhenzl vhenzl commented Oct 31, 2021

Extends KnownTypeNames rule to support SDL validation.

Corresponding change in the reference implementation: graphql/graphql-js@3b9ea61

The implementation uses Schema::getType() instead Schema::getTypeMap() to prevent full schema scan. As result, a test is currently failing because of #997.

One test is marked as skipped because of #964.

@vhenzl vhenzl marked this pull request as ready for review February 18, 2022 06:03
src/Validator/Rules/KnownTypeNames.php Outdated Show resolved Hide resolved
src/Validator/Rules/KnownTypeNames.php Outdated Show resolved Hide resolved
src/Validator/Rules/KnownTypeNames.php Outdated Show resolved Hide resolved
src/Validator/Rules/KnownTypeNames.php Outdated Show resolved Hide resolved
src/Validator/Rules/KnownTypeNames.php Outdated Show resolved Hide resolved
@vhenzl
Copy link
Contributor Author

vhenzl commented Feb 18, 2022

@spawnia #1073 closed this :/ I don't think there is a way to reopen it so I'll create a new PR later.

@spawnia spawnia reopened this Feb 18, 2022
@spawnia
Copy link
Collaborator

spawnia commented Feb 18, 2022

Sorry about this, fortunately I can reopen 😉

@vhenzl
Copy link
Contributor Author

vhenzl commented Mar 14, 2022

This should be good to go now.

@vhenzl
Copy link
Contributor Author

vhenzl commented Mar 14, 2022

No, wait…

@vhenzl
Copy link
Contributor Author

vhenzl commented Mar 14, 2022

Now it's ready.

@spawnia spawnia merged commit 08d9db9 into webonyx:master Mar 14, 2022
@spawnia
Copy link
Collaborator

spawnia commented Mar 14, 2022

@vhenzl Smashing those PRs - nice! I am looking towards doing a release once your remaining PRs are in.

@vhenzl
Copy link
Contributor Author

vhenzl commented Mar 14, 2022

Thanks! There is still a lot of work to be done to get those two PRs merged. I'll try my best.

@vhenzl vhenzl deleted the rule-known-type-names-sdl branch March 15, 2022 03:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants