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 provisioning an already-provisioned workflow #466

Merged
merged 2 commits into from
Jan 29, 2024

Conversation

dbwiddis
Copy link
Member

Description

Prevents provisioning a workflow whose state is anything other than NOT_STARTED.

Clarified some associated method/variable naming.

Issues Resolved

Fixes #445

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

codecov bot commented Jan 29, 2024

Codecov Report

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

Comparison is base (693b71d) 71.72% compared to head (4e622d1) 71.84%.

Files Patch % Lines
...rk/transport/ProvisionWorkflowTransportAction.java 80.95% 4 Missing ⚠️
...framework/indices/FlowFrameworkIndicesHandler.java 0.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #466      +/-   ##
============================================
+ Coverage     71.72%   71.84%   +0.12%     
- Complexity      619      622       +3     
============================================
  Files            78       78              
  Lines          3126     3136      +10     
  Branches        236      236              
============================================
+ Hits           2242     2253      +11     
  Misses          776      776              
+ Partials        108      107       -1     

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

@dbwiddis dbwiddis marked this pull request as draft January 29, 2024 21:10
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 marked this pull request as ready for review January 29, 2024 22:13
@dbwiddis dbwiddis merged commit 5d452f3 into opensearch-project:main Jan 29, 2024
29 of 30 checks passed
@dbwiddis dbwiddis deleted the no-second-provision branch January 29, 2024 22:21
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jan 29, 2024
* Prevent provisioning an already-provisioned workflow

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

* Don't provision on failed state index update

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

---------

Signed-off-by: Daniel Widdis <[email protected]>
(cherry picked from commit 5d452f3)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
dbwiddis pushed a commit that referenced this pull request Jan 29, 2024
…468)

Prevent provisioning an already-provisioned workflow (#466)

* Prevent provisioning an already-provisioned workflow



* Don't provision on failed state index update



---------


(cherry picked from commit 5d452f3)

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 skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[DISCUSS] Handling duplicate calls to provision API
3 participants