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

Update workflow state without using painless script #894

Merged
merged 7 commits into from
Oct 3, 2024

Conversation

dbwiddis
Copy link
Member

@dbwiddis dbwiddis commented Oct 2, 2024

Description

Removes methods using painless script for workflow state updates.

Related Issues

Fixes #779 (except for the part that will be covered by #780)

Check List

  • New functionality includes testing.
  • 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 Oct 2, 2024

Codecov Report

Attention: Patch coverage is 87.67123% with 9 lines in your changes missing coverage. Please review.

Project coverage is 78.04%. Comparing base (5f87827) to head (4845f26).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
.../transport/ReprovisionWorkflowTransportAction.java 0.00% 7 Missing ⚠️
...framework/indices/FlowFrameworkIndicesHandler.java 96.96% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #894      +/-   ##
============================================
+ Coverage     77.55%   78.04%   +0.48%     
- Complexity      966      977      +11     
============================================
  Files            97       97              
  Lines          4531     4554      +23     
  Branches        422      423       +1     
============================================
+ Hits           3514     3554      +40     
+ Misses          835      823      -12     
+ Partials        182      177       -5     

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

@dbwiddis dbwiddis force-pushed the no-painless branch 2 times, most recently from 5b6fbc5 to 0907c21 Compare October 2, 2024 04:18
Signed-off-by: Daniel Widdis <widdis@gmail.com>
Signed-off-by: Daniel Widdis <widdis@gmail.com>
Signed-off-by: Daniel Widdis <widdis@gmail.com>
Signed-off-by: Daniel Widdis <widdis@gmail.com>
Signed-off-by: Daniel Widdis <widdis@gmail.com>
Signed-off-by: Daniel Widdis <widdis@gmail.com>
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 with minor comments

Signed-off-by: Daniel Widdis <widdis@gmail.com>
@dbwiddis dbwiddis merged commit d0879d7 into opensearch-project:main Oct 3, 2024
20 checks passed
@dbwiddis dbwiddis deleted the no-painless branch October 3, 2024 13:03
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 3, 2024
* Update resources without using painless script

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Remove error field without using painless script

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Remove unused script update method

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Reorder methods for logical relationships

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Add change log, more test coverage

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Do 5 retries for resource list updates

Signed-off-by: Daniel Widdis <widdis@gmail.com>

* Make retries a constant

Signed-off-by: Daniel Widdis <widdis@gmail.com>

---------

Signed-off-by: Daniel Widdis <widdis@gmail.com>
(cherry picked from commit d0879d7)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
dbwiddis pushed a commit that referenced this pull request Oct 3, 2024
)

Update workflow state without using painless script  (#894)

* Update resources without using painless script



* Remove error field without using painless script



* Remove unused script update method



* Reorder methods for logical relationships



* Add change log, more test coverage



* Do 5 retries for resource list updates



* Make retries a constant



---------


(cherry picked from commit d0879d7)

Signed-off-by: Daniel Widdis <widdis@gmail.com>
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.

[REFACTOR] Improve Workflow State Resource updates
4 participants