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

[Backport 2.x] Delete workflow state when template is deleted and no resources exist #694

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link

Backport ff072de from #689.

…#689)

* Add test for updating state index

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

* Add method to delete state document to FlowFrameworkIndidesHandler

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

* Delete state document on deprovision if no template exists

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

* Add check whether state can be deleted to FlowFrameworkIndicesHandler

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

* Conditionally delete state when deleting template

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

* Add IT to test workflow state deletion on deprovision/no-resources

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

* Fix typo

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

* Properly test ResponseException on Workflow State 404

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

* Fetch workflowId of newly created template

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

* Stabilize IT

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

---------

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

codecov bot commented Apr 30, 2024

Codecov Report

Attention: Patch coverage is 54.68750% with 29 lines in your changes are missing coverage. Please review.

Project coverage is 73.78%. Comparing base (67dc711) to head (822df64).

Files Patch % Lines
...framework/indices/FlowFrameworkIndicesHandler.java 60.00% 17 Missing and 1 partial ⚠️
.../transport/DeprovisionWorkflowTransportAction.java 50.00% 5 Missing and 1 partial ⚠️
...ework/transport/DeleteWorkflowTransportAction.java 28.57% 5 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                2.x     #694      +/-   ##
============================================
+ Coverage     72.64%   73.78%   +1.13%     
- Complexity      697      722      +25     
============================================
  Files            82       82              
  Lines          3605     3662      +57     
  Branches        309      312       +3     
============================================
+ Hits           2619     2702      +83     
+ Misses          841      818      -23     
+ Partials        145      142       -3     

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

@dbwiddis dbwiddis merged commit 99c5ca1 into 2.x Apr 30, 2024
33 of 34 checks passed
@dbwiddis dbwiddis deleted the backport/backport-689-to-2.x branch April 30, 2024 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant