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

Fixed more RFS version* SonarQube #982

Merged
merged 9 commits into from
Sep 23, 2024

Conversation

chelma
Copy link
Member

@chelma chelma commented Sep 19, 2024

Description

  • Last fixes for the RFS version* SonarQube violations, assuming some updates to the exclusion list which will be forthcoming

Screenshot 2024-09-19 at 4 44 13 PM

Issues Resolved

Testing

All the local tests

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 72.00000% with 7 lines in your changes missing coverage. Please review.

Project coverage is 79.01%. Comparing base (d99beb6) to head (6b3f583).
Report is 17 commits behind head on main.

Files with missing lines Patch % Lines
...version_os_2_11/GlobalMetadataCreator_OS_2_11.java 55.55% 2 Missing and 2 partials ⚠️
.../com/rfs/version_universal/RemoteReaderClient.java 81.25% 0 Missing and 3 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #982      +/-   ##
============================================
+ Coverage     78.98%   79.01%   +0.02%     
- Complexity     2723     2727       +4     
============================================
  Files           375      375              
  Lines         13869    13871       +2     
  Branches        970      968       -2     
============================================
+ Hits          10955    10960       +5     
+ Misses         2340     2338       -2     
+ Partials        574      573       -1     
Flag Coverage Δ
gradle-test 76.83% <72.00%> (+0.03%) ⬆️
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.

Copy link
Member

@peternied peternied left a comment

Choose a reason for hiding this comment

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

Thanks for cleaning these up.

Comment on lines -149 to -150
var alreadyExists = templateType.alreadyExistsCheck.templateAlreadyExists(client, templateName);
if (!alreadyExists) {
Copy link
Member

Choose a reason for hiding this comment

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

Another rule that IMO makes the code harder to read, but oh well. We can review the rules in depth later

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I'm not crazy about a fair number of them. I suspect it's a feature, not a bug, that disabling rules is so hard though.

Copy link
Member

@peternied peternied left a comment

Choose a reason for hiding this comment

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

Thanks for unblocking the gradle workflow

@peternied peternied merged commit 7bdcef7 into opensearch-project:main Sep 23, 2024
13 of 14 checks passed
@chelma chelma deleted the MIGRATIONS-2006 branch September 23, 2024 16:49
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