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

incremental: introduce IncrementalGraph class to manage tree of subsequent results #4094

Merged
merged 13 commits into from
Jun 5, 2024

Conversation

yaacovCR
Copy link
Contributor

@yaacovCR yaacovCR commented May 22, 2024

A Graph object exposes an iterator for the completed incremental data such that the Incremental Publisher can properly be conceptualized as an operator on a stream, similar to the spec changes.

depends on #4099

Copy link

netlify bot commented May 22, 2024

Deploy Preview for compassionate-pike-271cb3 ready!

Name Link
🔨 Latest commit 09ae45a
🔍 Latest deploy log https://app.netlify.com/sites/compassionate-pike-271cb3/deploys/665e872dcd97a60008a08f9f
😎 Deploy Preview https://deploy-preview-4094--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.

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

@yaacovCR yaacovCR force-pushed the iterate-after branch 5 times, most recently from 3d0b369 to 2cfae02 Compare May 28, 2024 11:59
@yaacovCR yaacovCR marked this pull request as ready for review May 28, 2024 11:59
@yaacovCR yaacovCR changed the title incremental: further improvements: incremental: introduce Graph class to manage tree of subsequent results May 28, 2024
@yaacovCR yaacovCR requested a review from robrichard May 28, 2024 12:03
@yaacovCR yaacovCR added the PR: polish 💅 PR doesn't change public API or any observed behaviour label May 28, 2024
@yaacovCR yaacovCR force-pushed the iterate-after branch 3 times, most recently from ba4733c to 737488d Compare May 29, 2024 12:25
@yaacovCR yaacovCR changed the title incremental: introduce Graph class to manage tree of subsequent results incremental: introduce IncrementalGraph class to manage tree of subsequent results May 29, 2024
@yaacovCR yaacovCR force-pushed the iterate-after branch 3 times, most recently from cba24de to 3dc822b Compare May 31, 2024 13:46
src/jsutils/Future.ts Outdated Show resolved Hide resolved
@yaacovCR yaacovCR force-pushed the iterate-after branch 4 times, most recently from dfd48fb to 32272a6 Compare June 3, 2024 14:25
Comment on lines 207 to 208
// TODO: add test case?
/* c8 ignore next 3 */
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these lines can be removed, a test case was added

@yaacovCR yaacovCR merged commit 77e4a3d into graphql:main Jun 5, 2024
20 checks passed
@yaacovCR yaacovCR deleted the iterate-after branch June 5, 2024 18:36
yaacovCR added a commit that referenced this pull request Jun 12, 2024
The incremental graph can handle a stream as a stream, rather than
creating a linked list where each incremental data record also includes
the next record in addition to any new defers and/or streams.

Enables easily batching all available stream items within the same
incremental entry.

Depends on #4094
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