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 a setting to enable/disable local upload while registering model #873

Merged
merged 1 commit into from
May 1, 2023

Conversation

rbhavna
Copy link
Collaborator

@rbhavna rbhavna commented Apr 29, 2023

Description

Add a setting to enable/disable local upload while registering model

Issues Resolved

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • 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.

Comment on lines +8 to +9
import static org.opensearch.commons.ConfigConstants.*;
import static org.opensearch.ml.common.MLTask.*;
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should avoid import *.

Copy link
Collaborator

Choose a reason for hiding this comment

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

+1, but this only affects tests here so should be fine to get rid of it in the next PR.

@codecov-commenter
Copy link

Codecov Report

Merging #873 (a445e23) into 2.x (94f6d22) will decrease coverage by 0.06%.
The diff coverage is 100.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@             Coverage Diff              @@
##                2.x     #873      +/-   ##
============================================
- Coverage     84.12%   84.07%   -0.06%     
+ Complexity     1753     1751       -2     
============================================
  Files           139      139              
  Lines          6729     6745      +16     
  Branches        670      672       +2     
============================================
+ Hits           5661     5671      +10     
- Misses          771      776       +5     
- Partials        297      298       +1     
Flag Coverage Δ
ml-commons 84.07% <100.00%> (-0.06%) ⬇️

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

Impacted Files Coverage Δ
...rg/opensearch/ml/plugin/MachineLearningPlugin.java 98.86% <100.00%> (ø)
...nsearch/ml/rest/RestMLRegisterModelMetaAction.java 100.00% <100.00%> (ø)
...ensearch/ml/rest/RestMLUploadModelChunkAction.java 100.00% <100.00%> (ø)
.../org/opensearch/ml/settings/MLCommonsSettings.java 100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants