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

Fix code smells in metadata commands #980

Merged

Conversation

peternied
Copy link
Member

Description

Fix code smells in metadata commands

  • Rename this constant name to match the regular expression [...]
  • Replace these toUpperCase()/toLowerCase() and equals() calls with a single equalsIgnoreCase() call.

Issues Resolved

Check List

  • New functionality includes testing
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Copy link

codecov bot commented Sep 19, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 79.00%. Comparing base (d99beb6) to head (ce43303).
Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
...va/org/opensearch/migrations/MetadataCommands.java 66.66% 1 Missing ⚠️
...a/org/opensearch/migrations/MetadataMigration.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #980      +/-   ##
============================================
+ Coverage     78.98%   79.00%   +0.01%     
- Complexity     2723     2724       +1     
============================================
  Files           375      375              
  Lines         13869    13869              
  Branches        970      970              
============================================
+ Hits          10955    10957       +2     
+ Misses         2340     2339       -1     
+ Partials        574      573       -1     
Flag Coverage Δ
gradle-test 76.81% <50.00%> (+0.01%) ⬆️
python-test 89.90% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

- Rename this constant name to match the regular expression [...]
- Replace these toUpperCase()/toLowerCase() and equals() calls with a single equalsIgnoreCase() call.

Signed-off-by: Peter Nied <[email protected]>
@peternied peternied merged commit 9197003 into opensearch-project:main Sep 23, 2024
13 of 14 checks passed
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.

2 participants