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

introduce internal getVariableSignature utility #4175

Closed
wants to merge 1 commit into from

Conversation

yaacovCR
Copy link
Contributor

extracted from my fragment arguments scratch branch

@yaacovCR yaacovCR requested a review from a team as a code owner August 22, 2024 11:06
Copy link

netlify bot commented Aug 22, 2024

Deploy Preview for compassionate-pike-271cb3 ready!

Name Link
🔨 Latest commit f6fa29e
🔍 Latest deploy log https://app.netlify.com/sites/compassionate-pike-271cb3/deploys/66cb1cca2cb0d90008ea7b53
😎 Deploy Preview https://deploy-preview-4175--compassionate-pike-271cb3.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@yaacovCR yaacovCR added the PR: polish 💅 PR doesn't change public API or any observed behaviour label Aug 22, 2024
Copy link

Hi @yaacovCR, I'm @github-actions bot happy to help you with this PR 👋

Supported commands

Please post this commands in separate comments and only one per comment:

  • @github-actions run-benchmark - Run benchmark comparing base and merge commits for this PR
  • @github-actions publish-pr-on-npm - Build package from this PR and publish it on NPM

extracted from my fragment arguments scratch branch
@yaacovCR yaacovCR force-pushed the fragment-variable-signature branch from d73a391 to f6fa29e Compare August 25, 2024 12:00
yaacovCR added a commit to yaacovCR/graphql-js that referenced this pull request Aug 25, 2024
now extracted also to graphql-js PR, see graphql#4175
JoviDeCroock pushed a commit to JoviDeCroock/graphql-js that referenced this pull request Aug 25, 2024
* introduce internal getVariableSignature utility

now extracted also to graphql-js PR, see graphql#4175

* execution suggestions
JoviDeCroock pushed a commit to JoviDeCroock/graphql-js that referenced this pull request Aug 30, 2024
* add directive test

* add failing test

add additional nested fragment test (#8)

Correct test and lint stuff

suggestions for execution (#11)

* introduce internal getVariableSignature utility

now extracted also to graphql-js PR, see graphql#4175

* execution suggestions

fixes execution to always use fragment variable when has the same name as an operation variable

previously, we were allowing an operation variable to be used if the fragment variable was not provided, and the field had no default. Now, we still use the fragment variable, and so the value is null.

this now correct logic allows us to significantly reduce the diff from main

adds additional test
JoviDeCroock pushed a commit to JoviDeCroock/graphql-js that referenced this pull request Aug 30, 2024
* add directive test

* add failing test

add additional nested fragment test (#8)

Correct test and lint stuff

suggestions for execution (#11)

* introduce internal getVariableSignature utility

now extracted also to graphql-js PR, see graphql#4175

* execution suggestions

fixes execution to always use fragment variable when has the same name as an operation variable

previously, we were allowing an operation variable to be used if the fragment variable was not provided, and the field had no default. Now, we still use the fragment variable, and so the value is null.

this now correct logic allows us to significantly reduce the diff from main

adds additional test
JoviDeCroock pushed a commit to JoviDeCroock/graphql-js that referenced this pull request Aug 30, 2024
* add directive test

* add failing test

add additional nested fragment test (#8)

Correct test and lint stuff

suggestions for execution (#11)

* introduce internal getVariableSignature utility

now extracted also to graphql-js PR, see graphql#4175

* execution suggestions

fixes execution to always use fragment variable when has the same name as an operation variable

previously, we were allowing an operation variable to be used if the fragment variable was not provided, and the field had no default. Now, we still use the fragment variable, and so the value is null.

this now correct logic allows us to significantly reduce the diff from main

adds additional test
JoviDeCroock added a commit to JoviDeCroock/graphql-js that referenced this pull request Sep 4, 2024
* implement execution for fragment arguments syntax

Co-authored-by: mjmahone <mahoney.mattj@gmail.com>

* add directive test (#9)

* add directive test

* add failing test

add additional nested fragment test (#8)

Correct test and lint stuff

suggestions for execution (#11)

* introduce internal getVariableSignature utility

now extracted also to graphql-js PR, see graphql#4175

* execution suggestions

fixes execution to always use fragment variable when has the same name as an operation variable

previously, we were allowing an operation variable to be used if the fragment variable was not provided, and the field had no default. Now, we still use the fragment variable, and so the value is null.

this now correct logic allows us to significantly reduce the diff from main

adds additional test

* move getVariableSignature to execution

as it cannot be used by validation, which must collect all errors rather than fail with invalid type for signature

---------

Co-authored-by: mjmahone <mahoney.mattj@gmail.com>
Co-authored-by: Yaacov Rydzinski <yaacovCR@gmail.com>
@yaacovCR
Copy link
Contributor Author

yaacovCR commented Sep 6, 2024

Merged already as part of #4015

@yaacovCR yaacovCR closed this Sep 6, 2024
@yaacovCR yaacovCR deleted the fragment-variable-signature branch September 25, 2024 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: polish 💅 PR doesn't change public API or any observed behaviour
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants