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

fix(incremental): properly initiate nested deferred grouped field sets #4109

Closed
wants to merge 2 commits into from

Conversation

yaacovCR
Copy link
Contributor

@yaacovCR yaacovCR commented Jun 17, 2024

when early execution is disabled, the shouldDefer logic has a subtle bug

see: graphql/defer-stream-wg#84 (reply in thread)

depends on #4112

Copy link

netlify bot commented Jun 17, 2024

Deploy Preview for compassionate-pike-271cb3 ready!

Name Link
🔨 Latest commit a5e24f0
🔍 Latest deploy log https://app.netlify.com/sites/compassionate-pike-271cb3/deploys/6685a7dd5c09f10008a56c3c
😎 Deploy Preview https://deploy-preview-4109--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 bug-without-early-execution branch from 2bc1cc0 to 64c3213 Compare June 17, 2024 14:35
@yaacovCR yaacovCR changed the title incremental: add failing test fix(incremental): fix bug on initiation of supplemental deferred grouped field sets Jun 17, 2024
@yaacovCR yaacovCR added the PR: bug fix 🐞 requires increase of "patch" version number label Jun 17, 2024
@yaacovCR yaacovCR requested a review from robrichard June 17, 2024 14:35
@yaacovCR yaacovCR force-pushed the bug-without-early-execution branch 3 times, most recently from ff66d7d to 16e7569 Compare June 17, 2024 14:39
@yaacovCR yaacovCR changed the title fix(incremental): fix bug on initiation of supplemental deferred grouped field sets fix(incremental): properly initiate nested deferred grouped field sets Jun 17, 2024
@yaacovCR yaacovCR force-pushed the bug-without-early-execution branch 13 times, most recently from dc2cc66 to 2e49c99 Compare June 20, 2024 10:37
@yaacovCR yaacovCR force-pushed the bug-without-early-execution branch 3 times, most recently from ba99adb to 7e2fe1e Compare June 26, 2024 14:33
when early execution is disabled, deferred grouped field sets should start immediately if and only if one of their deferred fragments is released as pending

see: graphql/defer-stream-wg#84
@yaacovCR
Copy link
Contributor Author

Closing in favor of #4140

@yaacovCR yaacovCR closed this Jul 11, 2024
yaacovCR added a commit that referenced this pull request Jul 11, 2024
Currently, when early execution is disabled, we still use the early
execution logic to initiate execution groups, which may cause early
initiation of non-pending execution groups.

alternative to #4109, causes potentially stacking delays when
combinations of shared and non-shared keys between sibling defers cause
separate deferred grouped field sets for the same deferred fragment.
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.

None yet

1 participant