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 to main] Add an array filter to our serialize/deserialize methods and narrow d… #993

Merged
merged 1 commit into from
Jun 16, 2023

Conversation

rbhavna
Copy link
Collaborator

@rbhavna rbhavna commented Jun 16, 2023

…own previous filter (#849)

Description

Backport PR #849 to main branch

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.

…own previous filter (opensearch-project#849)

* Add an array filter to our serialize/deserialize methods and narrow down previous filter

Signed-off-by: Sicheng Song <sicheng.song@outlook.com>

* Further narrowing down accept list

Signed-off-by: Sicheng Song <sicheng.song@outlook.com>

* Keep narrowing down accept list

Signed-off-by: Sicheng Song <sicheng.song@outlook.com>

* Add test for deserialization methods in all built-in models

Signed-off-by: Sicheng Song <sicheng.song@outlook.com>

---------

Signed-off-by: Sicheng Song <sicheng.song@outlook.com>
@codecov
Copy link

codecov bot commented Jun 16, 2023

Codecov Report

Merging #993 (5765ca9) into main (42fa5cd) will increase coverage by 0.07%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##               main     #993      +/-   ##
============================================
+ Coverage     83.79%   83.86%   +0.07%     
- Complexity     1694     1696       +2     
============================================
  Files           138      138              
  Lines          6462     6466       +4     
  Branches        651      651              
============================================
+ Hits           5415     5423       +8     
+ Misses          761      758       -3     
+ Partials        286      285       -1     
Flag Coverage Δ
ml-commons 83.86% <100.00%> (+0.07%) ⬆️

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

Impacted Files Coverage Δ
.../org/opensearch/ml/engine/utils/ModelSerDeSer.java 83.33% <100.00%> (+3.33%) ⬆️

... and 1 file with indirect coverage changes

@rbhavna rbhavna merged commit ea05b04 into opensearch-project:main Jun 16, 2023
@rbhavna rbhavna deleted the backport_2.x_to_main branch June 16, 2023 22:37
@Yury-Fridlyand Yury-Fridlyand mentioned this pull request Jun 21, 2023
6 tasks
@ylwu-amzn ylwu-amzn changed the title Add an array filter to our serialize/deserialize methods and narrow d… [Backport to main] Add an array filter to our serialize/deserialize methods and narrow d… Jan 4, 2024
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.

4 participants