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

incrementalDelivery: refactoring and streamlining #3728

Merged
merged 4 commits into from
Sep 28, 2022

Conversation

yaacovCR
Copy link
Contributor

@yaacovCR yaacovCR commented Sep 7, 2022

Each commit is meant to merged separately, i.e. "Rebase and Merge" rather than "Squash and Merge"

419fd37: moves executeStreamField out of try block to better illustrate which code might throw
2991c79: tiny refactor pushing the result of handleFieldError rather than explicit null, following convention elsewhere
71a8db4: rename fieldPath to itemPath when dealing with items, as elsewhere
4df02ca: skip unnecessary filtering when asyncIterator's next method throws, aligning stream to non-stream

@netlify
Copy link

netlify bot commented Sep 7, 2022

Deploy Preview for compassionate-pike-271cb3 ready!

Name Link
🔨 Latest commit 4df02ca
🔍 Latest deploy log https://app.netlify.com/sites/compassionate-pike-271cb3/deploys/6333b26ba07d600008782b70
😎 Deploy Preview https://deploy-preview-3728--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.

@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

@yaacovCR yaacovCR added the PR: polish 💅 PR doesn't change public API or any observed behaviour label Sep 7, 2022
@yaacovCR yaacovCR requested review from robrichard, IvanGoncharov and a team September 7, 2022 19:20
@yaacovCR yaacovCR force-pushed the refactor branch 2 times, most recently from e68e6e8 to 58eaf9d Compare September 20, 2022 06:15
src/execution/execute.ts Outdated Show resolved Hide resolved
@yaacovCR
Copy link
Contributor Author

this will have to come after #3746 and #3747

this function should catches errors and should never throw
if the asyncIterator's next method throws, no incremental payloads for the result are possible, similar to completing an asyncIterator without stream
@yaacovCR
Copy link
Contributor Author

completeListItemValue has been separated out into #3728 -- this is now ready for merge.

@yaacovCR yaacovCR dismissed IvanGoncharov’s stale review September 28, 2022 02:41

commits separated out into separate PR

@IvanGoncharov IvanGoncharov merged commit 80325b5 into graphql:main Sep 28, 2022
@yaacovCR yaacovCR deleted the refactor branch May 6, 2024 10:16
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.

3 participants