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

Include previous node substitutions in nested lists and maps #371

Merged
merged 1 commit into from
Jan 5, 2024

Conversation

dbwiddis
Copy link
Member

@dbwiddis dbwiddis commented Jan 5, 2024

Description

Extends the substitution pattern ${{ previousNode.key }} to work inside nested maps and lists in the user inputs.

Issues Resolved

Fixes #368

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.

Copy link

codecov bot commented Jan 5, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (760177a) 72.30% compared to head (ecf3b2a) 72.40%.

Files Patch % Lines
.../org/opensearch/flowframework/util/ParseUtils.java 93.33% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #371      +/-   ##
============================================
+ Coverage     72.30%   72.40%   +0.09%     
- Complexity      574      580       +6     
============================================
  Files            72       72              
  Lines          3001     3011      +10     
  Branches        230      232       +2     
============================================
+ Hits           2170     2180      +10     
  Misses          727      727              
  Partials        104      104              

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

Copy link
Member

@ohltyler ohltyler left a comment

Choose a reason for hiding this comment

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

LGTM!

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

@dbwiddis dbwiddis merged commit 2799107 into opensearch-project:main Jan 5, 2024
21 checks passed
@dbwiddis dbwiddis deleted the substitutions branch January 5, 2024 20:17
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jan 5, 2024
Signed-off-by: Daniel Widdis <[email protected]>
(cherry picked from commit 2799107)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
joshpalis pushed a commit that referenced this pull request Jan 5, 2024
…d maps (#373)

Include previous node substitutions in nested lists and maps (#371)


(cherry picked from commit 2799107)

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.

[FEATURE] Handle substitutions in nested user inputs map
5 participants