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

Refactor workflow step resource updates to eliminate duplication #796

Merged
merged 2 commits into from
Aug 14, 2024

Conversation

dbwiddis
Copy link
Member

Description

Adds a new addResourceToWorkflowState method to the FlowFrameworkIndicesHandler which handles all the common handling / exception handling of resource updates.

Other misc. cleanup of unused variables.

Related Issues

A step toward #779 which is now on hold, but as I was mostly done with this part I finished it.

A result of #763 (comment)

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • Commits are signed per the DCO using --signoff.

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 Jul 20, 2024

Codecov Report

Attention: Patch coverage is 93.18182% with 6 lines in your changes missing coverage. Please review.

Project coverage is 77.30%. Comparing base (268f746) to head (2648713).
Report is 1 commits behind head on main.

Files Patch % Lines
...framework/indices/FlowFrameworkIndicesHandler.java 77.77% 4 Missing ⚠️
...ework/workflow/AbstractRegisterLocalModelStep.java 88.88% 1 Missing ⚠️
...search/flowframework/workflow/CreateIndexStep.java 66.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #796      +/-   ##
============================================
+ Coverage     75.38%   77.30%   +1.92%     
- Complexity      917      922       +5     
============================================
  Files            96       96              
  Lines          4456     4345     -111     
  Branches        412      412              
============================================
  Hits           3359     3359              
+ Misses          925      814     -111     
  Partials        172      172              

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

@dbwiddis dbwiddis marked this pull request as draft July 20, 2024 04:50
@dbwiddis dbwiddis marked this pull request as ready for review July 20, 2024 06:18
Signed-off-by: Daniel Widdis <[email protected]>
@dbwiddis dbwiddis merged commit dc20feb into opensearch-project:main Aug 14, 2024
20 checks passed
@dbwiddis dbwiddis deleted the refactor-state-updates branch August 14, 2024 16:24
opensearch-trigger-bot bot pushed a commit that referenced this pull request Aug 14, 2024
* Refactor workflow step resource updates to eliminate duplication

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

* Add coverage and changelog

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

---------

Signed-off-by: Daniel Widdis <[email protected]>
(cherry picked from commit dc20feb)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
dbwiddis pushed a commit that referenced this pull request Aug 14, 2024
…uplication (#835)

Refactor workflow step resource updates to eliminate duplication (#796)

* Refactor workflow step resource updates to eliminate duplication



* Add coverage and changelog



---------


(cherry picked from commit dc20feb)

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