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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use uppercase UP in ReactiveDatasourceHealthCheck #26418
Conversation
the status enum in HealthCheckResponse is uppercase, so to align for consistency when getting json from q/health or viewing webpage at q/health-ui
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.
Let's not merge this right away.
The behavior is completely different from the one in the Agroal extension: https://github.com/quarkusio/quarkus/blob/main/extensions/agroal/runtime/src/main/java/io/quarkus/agroal/runtime/health/DataSourceHealthCheck.java and it would probably be better to have a consistent behavior.
But we need decide which is better :).
/cc @yrodiere @tsegismont
@gsmet I'm not sure how this is usually done, but in any case it seems to make sense to give details about each datasource, even those that are up. So I'd be inclined to do the same with Agroal? |
@yrodiere OK. Last question is if we should refer to the default datasource as |
+1 for I created a ticket: #26431 |
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.
OK, then this one is all good. Let's merge it.
Thanks! |
request to change the data default value to uppercase to match the status case. the status enum in HealthCheckResponse is uppercase, so this would make them both the same case for consistency, which is good for those of us with OCD and looks good when getting values from json from q/health or viewing webpage at q/health-ui 馃榾