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

code refactoring on MLCommonsClientAccessor request #1178

Merged
merged 3 commits into from
Feb 12, 2025

Conversation

fen-qin
Copy link
Contributor

@fen-qin fen-qin commented Feb 7, 2025

Description

This is a code refactoring on encapsulation of MLCommonsClientAccessor required parameters into a POJO object.

  • create a new request java object
  • update MLCommonsClientAccessor interface with new request

Related Issues

Resolves #790

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • Public documentation issue/PR created.

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.

@github-actions github-actions bot added enhancement Enhancements Increases software capabilities beyond original client specifications help wanted Extra attention is needed neural-search labels Feb 7, 2025
Copy link

codecov bot commented Feb 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.59%. Comparing base (e8ed3a4) to head (bd53055).
Report is 2 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1178      +/-   ##
============================================
- Coverage     81.72%   81.59%   -0.13%     
+ Complexity     2494     1245    -1249     
============================================
  Files           186       93      -93     
  Lines          8426     4217    -4209     
  Branches       1428      714     -714     
============================================
- Hits           6886     3441    -3445     
+ Misses         1000      507     -493     
+ Partials        540      269     -271     

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

Copy link
Collaborator

@heemin32 heemin32 left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

Fen Qin added 3 commits February 11, 2025 18:10
Signed-off-by: Fen Qin <mfenqin@amazon.com>
Signed-off-by: Fen Qin <mfenqin@amazon.com>
Signed-off-by: Fen Qin <mfenqin@amazon.com>
@fen-qin fen-qin requested a review from minalsha as a code owner February 12, 2025 02:12
Copy link
Member

@junqiu-lei junqiu-lei left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@heemin32 heemin32 merged commit ebfb058 into opensearch-project:main Feb 12, 2025
86 of 91 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancements Increases software capabilities beyond original client specifications help wanted Extra attention is needed neural-search skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[PROPOSAL] Refactor MLCommonsClientAccessor to make it open for extension
4 participants