FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Added support for Flow publishers coming back from the subscription field data fetcher by bbakerman · Pull Request #3910 · graphql-java/graphql-java · GitHub

Added support for Flow publishers coming back from the subscription field data fetcher - #3910

Merged
bbakerman merged 1 commit into
masterfrom
support-flow-in-subscriptions
Jul 1, 2025
Merged

Added support for Flow publishers coming back from the subscription field data fetcher#3910
bbakerman merged 1 commit into
masterfrom
support-flow-in-subscriptions

Conversation

Copy link
Copy Markdown
Member

This allows an implementation to return a Flow.Publisher in their data fetcher

It will be converted to a reactive streams publisher when it comes back out of the ExecutionResult.

Copy link
Copy Markdown
Contributor

Test Results

  313 files  ±0    313 suites  ±0   55s ⏱️ -1s
3 592 tests +4  3 587 ✅ +4  5 💤 ±0  0 ❌ ±0 
3 681 runs  +4  3 676 ✅ +4  5 💤 ±0  0 ❌ ±0 

Results for commit 93a66bb. ± Comparison against base commit 1318a24.

This pull request removes 192 and adds 174 tests. Note that renamed tests count towards both.
	?
                __schema { types { fields { args { type { name fields { name }}}}}}
                __schema { types { fields { type { name fields { name }}}}}
                __schema { types { inputFields { type { inputFields { name }}}}}
                __schema { types { interfaces { fields { type { interfaces { name } } } } } }
                __schema { types { name} }
                __type(name : "t") { name }
                a1: __schema { types { name} }
                a1: __type(name : "t") { name }
                a2 :  __type(name : "t1") { name }
…
graphql.AssertTest ‑ assertFalse with different number of error args but false does not throw assertions [toRun: <graphql.AssertTest$__spock_feature_0_21prov0_closure23@3f4b840d delegate=graphql.AssertTest@54aca26f owner=graphql.AssertTest@54aca26f thisObject=graphql.AssertTest@54aca26f resolveStrategy=0 directive=0 parameterTypes=[class java.lang.Object] maximumNumberOfParameters=1 bcw=null>, expectedMessage: error arg1, #0]
graphql.AssertTest ‑ assertFalse with different number of error args but false does not throw assertions [toRun: <graphql.AssertTest$__spock_feature_0_21prov0_closure24@68c87fc3 delegate=graphql.AssertTest@54aca26f owner=graphql.AssertTest@54aca26f thisObject=graphql.AssertTest@54aca26f resolveStrategy=0 directive=0 parameterTypes=[class java.lang.Object] maximumNumberOfParameters=1 bcw=null>, expectedMessage: error arg1 arg2, #1]
graphql.AssertTest ‑ assertFalse with different number of error args but false does not throw assertions [toRun: <graphql.AssertTest$__spock_feature_0_21prov0_closure25@bc0f53b delegate=graphql.AssertTest@54aca26f owner=graphql.AssertTest@54aca26f thisObject=graphql.AssertTest@54aca26f resolveStrategy=0 directive=0 parameterTypes=[class java.lang.Object] maximumNumberOfParameters=1 bcw=null>, expectedMessage: error arg1 arg2 arg3, #2]
graphql.AssertTest ‑ assertFalse with different number of error args throws assertions [toRun: <graphql.AssertTest$__spock_feature_0_20prov0_closure20@33f98231 delegate=graphql.AssertTest@54aca26f owner=graphql.AssertTest@54aca26f thisObject=graphql.AssertTest@54aca26f resolveStrategy=0 directive=0 parameterTypes=[class java.lang.Object] maximumNumberOfParameters=1 bcw=null>, expectedMessage: error arg1, #0]
graphql.AssertTest ‑ assertFalse with different number of error args throws assertions [toRun: <graphql.AssertTest$__spock_feature_0_20prov0_closure21@48284d0e delegate=graphql.AssertTest@54aca26f owner=graphql.AssertTest@54aca26f thisObject=graphql.AssertTest@54aca26f resolveStrategy=0 directive=0 parameterTypes=[class java.lang.Object] maximumNumberOfParameters=1 bcw=null>, expectedMessage: error arg1 arg2, #1]
graphql.AssertTest ‑ assertFalse with different number of error args throws assertions [toRun: <graphql.AssertTest$__spock_feature_0_20prov0_closure22@557286ad delegate=graphql.AssertTest@54aca26f owner=graphql.AssertTest@54aca26f thisObject=graphql.AssertTest@54aca26f resolveStrategy=0 directive=0 parameterTypes=[class java.lang.Object] maximumNumberOfParameters=1 bcw=null>, expectedMessage: error arg1 arg2 arg3, #2]
graphql.AssertTest ‑ assertNotNull with different number of  error args throws assertions [toRun: <graphql.AssertTest$__spock_feature_0_5prov0_closure3@2ff95fc6 delegate=graphql.AssertTest@54aca26f owner=graphql.AssertTest@54aca26f thisObject=graphql.AssertTest@54aca26f resolveStrategy=0 directive=0 parameterTypes=[class java.lang.Object] maximumNumberOfParameters=1 bcw=null>, expectedMessage: error arg1, #0]
graphql.AssertTest ‑ assertNotNull with different number of  error args throws assertions [toRun: <graphql.AssertTest$__spock_feature_0_5prov0_closure4@ea9e141 delegate=graphql.AssertTest@54aca26f owner=graphql.AssertTest@54aca26f thisObject=graphql.AssertTest@54aca26f resolveStrategy=0 directive=0 parameterTypes=[class java.lang.Object] maximumNumberOfParameters=1 bcw=null>, expectedMessage: error arg1 arg2, #1]
graphql.AssertTest ‑ assertNotNull with different number of  error args throws assertions [toRun: <graphql.AssertTest$__spock_feature_0_5prov0_closure5@236134a1 delegate=graphql.AssertTest@54aca26f owner=graphql.AssertTest@54aca26f thisObject=graphql.AssertTest@54aca26f resolveStrategy=0 directive=0 parameterTypes=[class java.lang.Object] maximumNumberOfParameters=1 bcw=null>, expectedMessage: error arg1 arg2 arg3, #2]
graphql.AssertTest ‑ assertNotNull with different number of error args with non null does not throw assertions [toRun: <graphql.AssertTest$__spock_feature_0_6prov0_closure6@c6e0f32 delegate=graphql.AssertTest@54aca26f owner=graphql.AssertTest@54aca26f thisObject=graphql.AssertTest@54aca26f resolveStrategy=0 directive=0 parameterTypes=[class java.lang.Object] maximumNumberOfParameters=1 bcw=null>, expectedMessage: error arg1, #0]
…

SubscriptionPublisher mapSourceToResponse = new SubscriptionPublisher(publisher, mapperFunction, keepOrdered);
ExecutionResultImpl executionResult = new ExecutionResultImpl(mapSourceToResponse, executionContext.getErrors());
return executionResult;
return new ExecutionResultImpl(mapSourceToResponse, executionContext.getErrors());

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

just redundant variables cleanup

};
}

}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Moved this code into CommonMessagePublisher for re-use reasons

bbakerman merged commit 338ffdd into master Jul 1, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL