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

Prevent duplicate inferred edges #346

Merged
merged 1 commit into from
Jan 2, 2024

Conversation

dbwiddis
Copy link
Member

@dbwiddis dbwiddis commented Jan 2, 2024

Description

#334 added functionality to infer edges from previous node inputs. In rare edge cases where a node may have multiple outputs used as inputs, this could result in duplicate edges in the stored template.

While this doesn't impact the parsing (which converts to a set before running the algorithm) it could be confusing to users. Added distinct() to the stream to eliminate this. Also improved some of the stream implementations in the Workflow Process Sorter.

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 Jan 2, 2024
Copy link

codecov bot commented Jan 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (39c3f48) 71.45% compared to head (20e46c4) 71.47%.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #346      +/-   ##
============================================
+ Coverage     71.45%   71.47%   +0.01%     
+ Complexity      563      562       -1     
============================================
  Files            73       73              
  Lines          2999     3001       +2     
  Branches        229      230       +1     
============================================
+ Hits           2143     2145       +2     
  Misses          746      746              
  Partials        110      110              

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

@dbwiddis dbwiddis merged commit dd32d55 into opensearch-project:main Jan 2, 2024
21 checks passed
@dbwiddis dbwiddis deleted the remove-dupe-edges branch January 2, 2024 22:20
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jan 2, 2024
Signed-off-by: Daniel Widdis <[email protected]>
(cherry picked from commit dd32d55)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
dbwiddis pushed a commit that referenced this pull request Jan 2, 2024
Prevent duplicate inferred edges (#346)


(cherry picked from commit dd32d55)

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.

3 participants