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] add parameter validate for PPL tool #262

Merged
merged 1 commit into from
Mar 18, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 571dab7 from #259.

* add parameter validate for PPL tool

Signed-off-by: xinyual <[email protected]>

* apply spotless

Signed-off-by: xinyual <[email protected]>

* simplify code

Signed-off-by: xinyual <[email protected]>

* prevent NPE

Signed-off-by: xinyual <[email protected]>

* change logic

Signed-off-by: xinyual <[email protected]>

* apply spot

Signed-off-by: xinyual <[email protected]>

* fix UT

Signed-off-by: xinyual <[email protected]>

* apply spotless

Signed-off-by: xinyual <[email protected]>

---------

Signed-off-by: xinyual <[email protected]>
(cherry picked from commit 571dab7)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy link

codecov bot commented Mar 18, 2024

Codecov Report

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

Project coverage is 81.62%. Comparing base (5088170) to head (533c581).

Files Patch % Lines
.../main/java/org/opensearch/agent/tools/PPLTool.java 85.71% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                2.x     #262      +/-   ##
============================================
+ Coverage     81.57%   81.62%   +0.05%     
- Complexity      211      216       +5     
============================================
  Files            13       13              
  Lines          1069     1083      +14     
  Branches        146      149       +3     
============================================
+ Hits            872      884      +12     
  Misses          140      140              
- Partials         57       59       +2     

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

@xinyual xinyual merged commit 64c5e2e into 2.x Mar 18, 2024
19 checks passed
@github-actions github-actions bot deleted the backport/backport-259-to-2.x branch March 18, 2024 08:32
yuye-aws pushed a commit to yuye-aws/skills that referenced this pull request Apr 26, 2024
…rch-project#262)

* add parameter validate for PPL tool

* apply spotless

* simplify code

* prevent NPE

* change logic

* apply spot

* fix UT

* apply spotless

---------

(cherry picked from commit 571dab7)

Signed-off-by: xinyual <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Signed-off-by: yuye-aws <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants