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

[Backport 2.x] Persist model definition in model metadata #1548

Merged
merged 4 commits into from
Mar 15, 2024

Conversation

ryanbogan
Copy link
Member

@ryanbogan ryanbogan commented Mar 15, 2024

Description

Backport of #1527

Check List

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

* Add MethodComponentContext to ModelMetadata

Signed-off-by: Ryan Bogan <[email protected]>

* Add changelog

Signed-off-by: Ryan Bogan <[email protected]>

* Address PR Comments

Signed-off-by: Ryan Bogan <[email protected]>

* Address PR Comments

Signed-off-by: Ryan Bogan <[email protected]>

* Change fromString

Signed-off-by: Ryan Bogan <[email protected]>

* Address PR Comments

Signed-off-by: Ryan Bogan <[email protected]>

* Address PR Comments

Signed-off-by: Ryan Bogan <[email protected]>

* Address PR Comments

Signed-off-by: Ryan Bogan <[email protected]>

* Fix spotless

Signed-off-by: Ryan Bogan <[email protected]>

---------

Signed-off-by: Ryan Bogan <[email protected]>
(cherry picked from commit 4734d88)
Signed-off-by: Ryan Bogan <[email protected]>
@ryanbogan ryanbogan changed the title Persist model definition in model metadata [Backport 2.x] Persist model definition in model metadata Mar 15, 2024
Signed-off-by: Ryan Bogan <[email protected]>
Signed-off-by: Ryan Bogan <[email protected]>
Copy link

codecov bot commented Mar 15, 2024

Codecov Report

Attention: Patch coverage is 82.00000% with 27 lines in your changes are missing coverage. Please review.

Project coverage is 84.86%. Comparing base (a4479e4) to head (44c1f81).

Files Patch % Lines
...g/opensearch/knn/index/MethodComponentContext.java 80.00% 8 Missing and 11 partials ⚠️
...java/org/opensearch/knn/indices/ModelMetadata.java 82.97% 5 Missing and 3 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                2.x    #1548      +/-   ##
============================================
- Coverage     85.20%   84.86%   -0.35%     
- Complexity     1277     1304      +27     
============================================
  Files           166      166              
  Lines          5240     5377     +137     
  Branches        508      529      +21     
============================================
+ Hits           4465     4563      +98     
- Misses          562      586      +24     
- Partials        213      228      +15     

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

@ryanbogan ryanbogan merged commit 06d395f into 2.x Mar 15, 2024
79 of 80 checks passed
@ryanbogan ryanbogan deleted the backport/backport-1527-to-2.x branch March 15, 2024 21:17
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.

3 participants