-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
GraphQL Non blocking support #25194
GraphQL Non blocking support #25194
Conversation
@geoand - There are small changes on how the locale resolver work ( in hibernate-validator) for GraphQL (something that came in a few weeks ago) - I moved the resolver to the graphql extension and are now getting the locale from the graphql context. This helps to make sure the locale are propagated. |
Understood, thanks. |
This currently makes the hibernate-validator a required dependency of the smallrye-graphql extension. To make it properly optional, we will probably need to:
|
Thanks @jmartisk - Agree. I can make those changes now in this PR. |
...untime/src/main/java/io/quarkus/smallrye/graphql/runtime/SmallRyeGraphQLAbstractHandler.java
Outdated
Show resolved
Hide resolved
...ent/src/test/java/io/quarkus/smallrye/graphql/client/deployment/model/TestingGraphQLApi.java
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
@jmartisk - I made all the changes as you requested. I think it's all fine now. MP TCK is passing on my localhost. Please review :) |
This comment has been minimized.
This comment has been minimized.
Any chance that this will be part of 2.9? |
This comment has been minimized.
This comment has been minimized.
Not sure at this stage. Waiting for a green CI and PR approval. Might only be the next version, or allowing it here with a config option to enable it but default back to prev version |
I have now added |
This comment has been minimized.
This comment has been minimized.
The CI failures look related. |
Signed-off-by: Phillip Kruger <[email protected]>
@mschorsch - we missed the 2.9 release. Look out for the CR of 2.10 |
OK. Thanks. |
@jmartisk @cescoffier - CI is green. Please review when you have a chance :) Thanks |
@jmartisk @cescoffier FWIW, this is in the way of my Jakarta work so if we can get it in soon, that would be awesome. |
This is now the other way around : non-blocking can be turned off using a config: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, very nice work!
This PR pulls in a new release from SmallRye (https://github.com/smallrye/smallrye-graphql/releases/tag/1.5.0) and adds supports for Non blocking operations. The same rule applies as with RESTEasy Reactive.
@NonBlocking
@Blocking
Breaking change: The ExecutionService has changed to not respond with a result, but rather a writer needs to be passed in. a default JsonObjectResponseWriter exist to get the same result as before.
Because this is a major new feature, non-blocking can be turned off using a config:
quarkus.smallrye-graphql.nonblocking.enabled=false
. By default it will be enabledSigned-off-by: Phillip Kruger [email protected]