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

check duplicate keys #1270

Merged
merged 3 commits into from
Dec 20, 2024
Merged

Conversation

fugerit79
Copy link
Contributor

@fugerit79 fugerit79 commented Dec 15, 2024

Edit :

Only for properties config source : duplicate keys found in te same config source will be logged as warning.

NOTE: this is just a proposal of implementation.

Copy link
Member

@radcortez radcortez left a comment

Choose a reason for hiding this comment

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

Thank you for the PR. I've left a few comments.

@radcortez
Copy link
Member

There is an issue with the code style, can you please do a local build to fix it? I've tried it myself, but apparently I can't push changes to your fork.

@fugerit79
Copy link
Contributor Author

fugerit79 commented Dec 19, 2024

There is an issue with the code style, can you please do a local build to fix it? I've tried it myself, but apparently I can't push changes to your fork.

Yes, sorry, my bad. After the last commit, I forgot to run:

mvn -f implementation net.revelc.code.formatter:formatter-maven-plugin:2.22.0:format
mvn formatter:validate verify

Now the local check completed without alerts. (tried with java 11, 17 and 21).

I also rebased onto main and checked again.

@fugerit79 fugerit79 requested a review from radcortez December 19, 2024 19:56
Only for properties config source : duplicate keys found in te same config source will be logged as warning.
Added a log method in ConfigLogging to handle duplicate values.
@fugerit79 fugerit79 force-pushed the 1-check-duplicate-keys branch from 2b78690 to 37634ef Compare December 19, 2024 19:59
@radcortez
Copy link
Member

Great! Thank you for the PR and your patience, really appreciated it :)

@radcortez radcortez merged commit 7d66a3a into smallrye:main Dec 20, 2024
8 checks passed
@github-actions github-actions bot added this to the 3.10.3 milestone Dec 20, 2024
@fugerit79 fugerit79 deleted the 1-check-duplicate-keys branch December 20, 2024 13:20
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.

[enhancement] check duplicate keys
2 participants