-
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 Quarkus properties not working #20494
Comments
/cc @jmartisk, @phillip-kruger |
Maybe @radcortez can help here. @radcortez we use Any tips ? |
I'll have a look. |
I believe the issue is that the interceptor needs to be placed in the runtime dependency. |
Hi @radcortez thanks for your investigation. Can you explain why ? |
Because for runtime, the deployment dependencies are not available, meaning that the interceptor is not there, so no mapping is actually done. In the extension code it works fine because we add our tests into the deployment module. |
Thanks @radcortez , what I do not get is that some mappings are working... and others not. Can you help me understand that ? |
Yes, I was looking into it again because of another issue and I believe it is because we are mixing build-time configuration with runtime configuration. A build-time configuration only takes effect during the build and then it has no further effect during runtime. The So, the reason why I believe it works in some cases is when during build you access a configuration, the interceptor kicks in and provides the relocation and we record the value. When the configuration is only read during runtime, the interceptor is not there so no relocation is provided. Does this make sense? |
What we need to do is so split |
OK thanks. I do not think the config in question (above) is a Runtime Config ? At least it does not have to be ? Maybe the source (linked above) can change ? |
When I was looking into the code yesterday I noticed that in here: The |
Describe the bug
Some Quarkus properties for graphql do not work, their smallrye/graphql version do work.
properties which do not work:
Documentation: https://quarkus.io/version/main/guides/smallrye-graphql#quarkus-smallrye-graphql_quarkus.smallrye-graphql.show-runtime-exception-message
properties which work:
Expected behavior
When running the query
There should be the message of the exception and the error code.
Actual behavior
There is no error code and only the standard error message.
How to Reproduce?
code-with-quarkus-exceptions.zip
Run the query from above and activate/deactivate the properties.
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.2.3.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: