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

Iterate collection for unregistered Writeable in streams #359

Merged
merged 3 commits into from
Jan 4, 2024

Conversation

dbwiddis
Copy link
Member

@dbwiddis dbwiddis commented Jan 4, 2024

Description

Updates the WorkflowState class writeable methods to iterate the ResourceCreated objects, as the collection streaming objects only understand well-defined types.

Issues Resolved

Fixes #358

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 4, 2024

Codecov Report

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

Comparison is base (efdbcb0) 71.41% compared to head (1b09393) 72.52%.

Files Patch % Lines
...framework/indices/FlowFrameworkIndicesHandler.java 0.00% 1 Missing ⚠️
...pensearch/flowframework/model/ResourceCreated.java 94.73% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #359      +/-   ##
============================================
+ Coverage     71.41%   72.52%   +1.10%     
- Complexity      562      570       +8     
============================================
  Files            73       73              
  Lines          3016     2984      -32     
  Branches        229      226       -3     
============================================
+ Hits           2154     2164      +10     
+ Misses          752      716      -36     
+ Partials        110      104       -6     

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

@dbwiddis dbwiddis merged commit 8216cb9 into opensearch-project:main Jan 4, 2024
21 checks passed
@dbwiddis dbwiddis deleted the writeable-collections branch January 4, 2024 19:45
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jan 4, 2024
* Iterate collection for unregistered Writeable in streams

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

* Add dependencies so User class compiles

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

* Make ResourceCreated writable for Script class

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

---------

Signed-off-by: Daniel Widdis <[email protected]>
(cherry picked from commit 8216cb9)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
dbwiddis added a commit that referenced this pull request Jan 4, 2024
…ms (#362)

* Iterate collection for unregistered Writeable in streams (#359)

* Iterate collection for unregistered Writeable in streams

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

* Add dependencies so User class compiles

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

* Make ResourceCreated writable for Script class

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

---------

Signed-off-by: Daniel Widdis <[email protected]>
(cherry picked from commit 8216cb9)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Remove 3.x dependency

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

---------

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>
Co-authored-by: Daniel Widdis <[email protected]>
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] Non-registered Writeables can't be used in Stream collection methods
3 participants