Skip to content
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

Add default value constants and use in config doc #4408

Merged
merged 3 commits into from
Jun 20, 2022
Merged

Add default value constants and use in config doc #4408

merged 3 commits into from
Jun 20, 2022

Conversation

tjquinno
Copy link
Member

Resolves #4359

Added constants for default configured values and used them in assigning initial values and in config doc annotations.

@tjquinno tjquinno added this to the 3.0.0 milestone Jun 17, 2022
@tjquinno tjquinno self-assigned this Jun 17, 2022
@tjquinno
Copy link
Member Author

@arjav-desai @spericas @ljnelson I have added you as reviewers to this for a style question Tomas raised.

I added a bunch of constants to the code to support default values. This creates some near-duplication (i.e., bloat) because annotations do not accept "virtually constant" final values that are computed so in some cases there's both a string and a non-string setting.

So, the style question is whether the proliferation of constants helps (because related constants are right next to each other so it's more likely someone changing a default will be visually reminded to change both) or hurts (because there's so many pairs of constants which serve the same function).

…ants (one for actual usage in code, one for the default value in config annos)
Copy link
Member

@tomas-langer tomas-langer left a comment

Choose a reason for hiding this comment

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

LGTM

@tjquinno tjquinno merged commit 26b5ea8 into helidon-io:master Jun 20, 2022
@tjquinno tjquinno deleted the health-3.0-config-doc branch June 20, 2022 16:17
@tjquinno tjquinno modified the milestones: 3.0.0, 3.0.0-M3 Jun 23, 2022
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.

Config metadata error in health-check
2 participants