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

Fix Create Connector actions parsing #127

Merged
merged 4 commits into from
Oct 31, 2023
Merged

Fix Create Connector actions parsing #127

merged 4 commits into from
Oct 31, 2023

Conversation

dbwiddis
Copy link
Member

@dbwiddis dbwiddis commented Oct 31, 2023

Description

Properly parses the actions in a Create Connector step

Issues Resolved

Fixes #123

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.

Signed-off-by: Daniel Widdis <[email protected]>
@codecov
Copy link

codecov bot commented Oct 31, 2023

Codecov Report

Merging #127 (912a856) into main (4106cba) will increase coverage by 0.66%.
The diff coverage is 74.00%.

@@             Coverage Diff              @@
##               main     #127      +/-   ##
============================================
+ Coverage     66.05%   66.71%   +0.66%     
- Complexity      266      272       +6     
============================================
  Files            34       34              
  Lines          1299     1322      +23     
  Branches        123      125       +2     
============================================
+ Hits            858      882      +24     
+ Misses          399      395       -4     
- Partials         42       45       +3     
Files Coverage Δ
...ch/flowframework/workflow/CreateConnectorStep.java 81.81% <74.00%> (+7.97%) ⬆️

Signed-off-by: Daniel Widdis <[email protected]>
Signed-off-by: Daniel Widdis <[email protected]>
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.

Thanks for fixing this! For later: we should also handle the parsing of PROCESSORS_FIELD of ingest pipeline in CreatePipelineStep.java.

@dbwiddis dbwiddis merged commit 8e85f98 into opensearch-project:main Oct 31, 2023
21 checks passed
@dbwiddis dbwiddis deleted the create-connector-fix branch October 31, 2023 18:34
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 31, 2023
* Fix Create Connector actions parsing

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

* Fix tests

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

* Handle exceptions

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

* Fix parameter key in tests

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

---------

Signed-off-by: Daniel Widdis <[email protected]>
(cherry picked from commit 8e85f98)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
dbwiddis pushed a commit that referenced this pull request Oct 31, 2023
Fix Create Connector actions parsing (#127)

* Fix Create Connector actions parsing



* Fix tests



* Handle exceptions



* Fix parameter key in tests



---------


(cherry picked from commit 8e85f98)

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>
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] TypeCast issue for Create Connector
3 participants