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

Allow strings for boolean workflow step parameters #671

Merged
merged 2 commits into from
Apr 22, 2024

Conversation

dbwiddis
Copy link
Member

Description

Allows "true" or "false" strings when boolean parameters are expected.

Issues Resolved

Fixes #669

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 the backport 2.x backport PRs to 2.x branch label Apr 19, 2024
Copy link

codecov bot commented Apr 19, 2024

Codecov Report

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

Project coverage is 72.24%. Comparing base (54f8b3f) to head (cd42c14).

Files Patch % Lines
...flowframework/workflow/RegisterModelGroupStep.java 80.00% 0 Missing and 1 partial ⚠️
...rg/opensearch/flowframework/workflow/ToolStep.java 80.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #671      +/-   ##
============================================
+ Coverage     72.20%   72.24%   +0.03%     
- Complexity      682      686       +4     
============================================
  Files            82       82              
  Lines          3562     3574      +12     
  Branches        290      294       +4     
============================================
+ Hits           2572     2582      +10     
- Misses          859      861       +2     
  Partials        131      131              

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

Copy link
Member

@owaiskazi19 owaiskazi19 left a comment

Choose a reason for hiding this comment

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

LGTM

@owaiskazi19 owaiskazi19 merged commit b8e4ed0 into opensearch-project:main Apr 22, 2024
32 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 22, 2024
* Allow strings for boolean workflow step parameters

Signed-off-by: Daniel Widdis <[email protected]>

* Reduce redundancy in similar tests

Signed-off-by: Daniel Widdis <[email protected]>

---------

Signed-off-by: Daniel Widdis <[email protected]>
(cherry picked from commit b8e4ed0)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
dbwiddis pushed a commit that referenced this pull request Apr 23, 2024
Allow strings for boolean workflow step parameters (#671)

* Allow strings for boolean workflow step parameters



* Reduce redundancy in similar tests



---------


(cherry picked from commit b8e4ed0)

Signed-off-by: Daniel Widdis <[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>
@dbwiddis dbwiddis deleted the parseBoolean branch June 10, 2024 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x backport PRs to 2.x branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Handling of Booleans should be robust to strings
3 participants