Skip to content

Preserve stability in details JSON output#8697

Merged
tjquinno merged 1 commit into
helidon-io:mainfrom
tjquinno:4.x-health-details-stability
Apr 24, 2024
Merged

Preserve stability in details JSON output#8697
tjquinno merged 1 commit into
helidon-io:mainfrom
tjquinno:4.x-health-details-stability

Conversation

@tjquinno

@tjquinno tjquinno commented Apr 23, 2024

Copy link
Copy Markdown
Member

Description

Resolves #8645

Use a TreeMap internally to preserve stability (and ordering) of details in JSON output.

Also, as is done elsewhere in health, pass a new map to the constructor in case the builder is mutated and reused.

Documentation

Bug fix; no doc impact.

@tjquinno tjquinno requested a review from tomas-langer April 23, 2024 11:33
@tjquinno tjquinno self-assigned this Apr 23, 2024
@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Apr 23, 2024

@tomas-langer tomas-langer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Would be good to have a test to make sure this does not happen again...

@tjquinno tjquinno merged commit 5afc6a0 into helidon-io:main Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Health check response no longer orders the data details

2 participants