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

execute: move publishing code into separate file #3903

Merged
merged 2 commits into from
Jun 9, 2023

Conversation

yaacovCR
Copy link
Contributor

@yaacovCR yaacovCR commented Jun 2, 2023

to help facilitate later changes / aid review

@yaacovCR yaacovCR requested a review from robrichard June 2, 2023 10:41
@netlify
Copy link

netlify bot commented Jun 2, 2023

Deploy Preview for compassionate-pike-271cb3 ready!

Name Link
🔨 Latest commit b549dcb
🔍 Latest deploy log https://app.netlify.com/sites/compassionate-pike-271cb3/deploys/647ea3ed170d060007bf6865
😎 Deploy Preview https://deploy-preview-3903--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 June 2, 2023 10:42
@github-actions
Copy link

github-actions bot commented Jun 2, 2023

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 Jun 2, 2023
@yaacovCR yaacovCR force-pushed the move branch 2 times, most recently from f380979 to 6473e6c Compare June 5, 2023 09:47
this reorganization slightly reduces the diff when organizing later changes
@IvanGoncharov IvanGoncharov changed the title move publishing code into separate file execute: move publishing code into separate file Jun 9, 2023
@IvanGoncharov IvanGoncharov merged commit 04e948b into graphql:main Jun 9, 2023
21 checks passed
yaacovCR added a commit that referenced this pull request Jun 17, 2023
extracted from #3886

depends on #3903

more refactors from the without-branching branch, a bit more fundamental
than #3891

[set as patch release because it does have an observable effect on the
number of payloads, see below]

= iterate only through completed items
= remove extra ticks by making the publisher manage changes to its state
synchronously.
= use children array instead of promises to manage hierarchy
= have IncrementalPublisher instantiate new IncrementalDataRecords

= The new publisher sometimes cause an empty `{ hasNext: false }` to be
emitted. In particular, because the publisher is faster than it was, it
may emit a stream result before the stream's asynchronous iterator has
completed.
= The new publisher may sometimes reduce the number of `{ hasNext: false
}` records that are emitted. For example, when errors on the initial
result filter all subsequent results, this now happens synchronously,
and so the publisher knows immediately that there are no subsequent
results, such that there is no need for an empty final payload.
@yaacovCR yaacovCR mentioned this pull request Mar 20, 2024
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.

None yet

2 participants