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

Improve error messages for workflow states other than NOT_STARTED #642

Merged
merged 2 commits into from
Apr 6, 2024

Conversation

dbwiddis
Copy link
Member

@dbwiddis dbwiddis commented Apr 2, 2024

Description

Improves error messages to be more clear that a state of NOT_STARTED is required, and suggests how to reattain that state.

Issues Resolved

Fixes #640

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

codecov bot commented Apr 2, 2024

Codecov Report

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

Project coverage is 72.30%. Comparing base (f6e9036) to head (f6c7810).

Files Patch % Lines
...framework/indices/FlowFrameworkIndicesHandler.java 0.00% 6 Missing ⚠️
...rk/transport/ProvisionWorkflowTransportAction.java 66.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #642      +/-   ##
============================================
+ Coverage     72.25%   72.30%   +0.05%     
  Complexity      680      680              
============================================
  Files            82       82              
  Lines          3528     3528              
  Branches        284      285       +1     
============================================
+ Hits           2549     2551       +2     
+ Misses          854      850       -4     
- Partials        125      127       +2     

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

@dbwiddis dbwiddis merged commit 452aec5 into opensearch-project:main Apr 6, 2024
31 of 32 checks passed
@dbwiddis dbwiddis deleted the provision-error branch April 6, 2024 04:51
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 6, 2024
* Improve error messages for workflow states other than NOT_STARTED

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

* Update CHANGELOG

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

---------

Signed-off-by: Daniel Widdis <[email protected]>
(cherry picked from commit 452aec5)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
dbwiddis pushed a commit that referenced this pull request Apr 6, 2024
…NOT_STARTED (#653)

Improve error messages for workflow states other than NOT_STARTED (#642)

* Improve error messages for workflow states other than NOT_STARTED



* Update CHANGELOG



---------


(cherry picked from commit 452aec5)

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.

[BUG] Provision failure returns incorrect error message
4 participants