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 Template and WorkflowState builders #778

Merged
merged 3 commits into from
Jul 18, 2024

Conversation

dbwiddis
Copy link
Member

Description

Changes the syntax for Template builder to the common static .builder() instantiation.

WorkflowState already had a static builder() but it wasn't enforced. Also added partial state update capability, to improve updating resource states during deprovisioning (to address #691) and eventually migrate away from painless scripts.

Related Issues

Fixes #713
Fixes #776

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • [ ] API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • [ ] Public documentation issue/PR created.

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 Jul 12, 2024
@dbwiddis dbwiddis changed the title Improve builders Improve Template and WorkflowState builders Jul 12, 2024
Copy link

codecov bot commented Jul 12, 2024

Codecov Report

Attention: Patch coverage is 95.83333% with 2 lines in your changes missing coverage. Please review.

Project coverage is 74.98%. Comparing base (c3632fb) to head (74d0845).
Report is 2 commits behind head on main.

Files Patch % Lines
...framework/indices/FlowFrameworkIndicesHandler.java 0.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #778      +/-   ##
============================================
+ Coverage     74.54%   74.98%   +0.44%     
- Complexity      783      800      +17     
============================================
  Files            84       84              
  Lines          3873     3910      +37     
  Branches        356      365       +9     
============================================
+ Hits           2887     2932      +45     
+ Misses          829      824       -5     
+ Partials        157      154       -3     

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

@dbwiddis dbwiddis merged commit f40890c into opensearch-project:main Jul 18, 2024
20 checks passed
@dbwiddis dbwiddis deleted the improve-builders branch July 18, 2024 18:40
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 18, 2024
* Simplify Template builder instantiation

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

* Add ability to more easily update WorkflowState

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

* Changelog, initialize template parser

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

---------

Signed-off-by: Daniel Widdis <[email protected]>
(cherry picked from commit f40890c)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
dbwiddis pushed a commit that referenced this pull request Jul 18, 2024
Improve Template and WorkflowState builders (#778)

* Simplify Template builder instantiation



* Add ability to more easily update WorkflowState



* Changelog, initialize template parser



---------


(cherry picked from commit f40890c)

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
3 participants