Skip to content

Conversation

yaacovCR
Copy link
Contributor

@yaacovCR yaacovCR commented Sep 7, 2022

When iterables (not asyncIterables) are streamed, and completeValue throws an error, we currently send undefined rather than null, due to a typo.

This change corrects the typo, and also modifies the test intended to check this case to correctly check a streamed iterable, rather than an asyncIterable.

Code coverage was complete prior to this change, because the line involving this change was reached in the case where the error was non-recoverable, albeit with the line throwing.

@yaacovCR yaacovCR requested a review from robrichard September 7, 2022 20:12
@netlify
Copy link

netlify bot commented Sep 7, 2022

Deploy Preview for compassionate-pike-271cb3 ready!

Name Link
🔨 Latest commit f472c02
🔍 Latest deploy log https://app.netlify.com/sites/compassionate-pike-271cb3/deploys/63295b9281ff65000aeffd16
😎 Deploy Preview https://deploy-preview-3729--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 settings.

@yaacovCR yaacovCR requested a review from a team September 7, 2022 20:12
@yaacovCR yaacovCR added the PR: bug fix 🐞 requires increase of "patch" version number label Sep 7, 2022
@github-actions
Copy link

github-actions bot commented Sep 7, 2022

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

When iterables (not asyncIterables) are streamed, and completeValue throws an error, we currently send undefined rather than null, due to a typo.

This change corrects the typo, and also modifies the test intended to check this case to correctly check a streamed iterable, rather than an asyncIterable.

Code coverage was complete prior to this change, because the line involving this change was reached in the case where the error was non-recoverable, albeit with the line throwing.
@yaacovCR yaacovCR force-pushed the fix-complete-value-error branch from 018aa20 to f472c02 Compare September 20, 2022 06:20
@IvanGoncharov IvanGoncharov merged commit 065a343 into graphql:main Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: bug fix 🐞 requires increase of "patch" version number
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants