8000 3662 - fixes dataloader dispatching during subscriptions by bbakerman · Pull Request #3673 · graphql-java/graphql-java · GitHub
[go: up one dir, main page]

Skip to content

3662 - fixes dataloader dispatching during subscriptions#3673

Merged
bbakerman merged 1 commit intomasterfrom
3662-fix-dataloader-dispatching-in-subscriptions
Jul 29, 2024
Merged

3662 - fixes dataloader dispatching during subscriptions#3673
bbakerman merged 1 commit intomasterfrom
3662-fix-dataloader-dispatching-in-subscriptions

Conversation

@bbakerman
Copy link
Member

Fixes #3662

The ExecutionContextBuilder was not copying the DataLoaderDispatchStrategy and this gets "transformed" during subscription execution. This caused it to fallback to the default NOOP implementation which is wrong.

The integration test was written first - it hung the dataloader as described in the bug and then with this fix applied it works. TDD!

Copy link
Member
@dondonz dondonz left a comment

Choose a reason for hiding this comment

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

Great stuff!!

@bbakerman bbakerman added this pull request to the merge queue Jul 29, 2024
Merged via the queue into master with commit 20f51e3 Jul 29, 2024
@dondonz dondonz deleted the 3662-fix-dataloader-dispatching-in-subscriptions branch July 29, 2024 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Investigate breaking @BatchMapping behaviour for subscriptions

2 participants

0