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

add purge options #638

Merged
merged 2 commits into from
Oct 30, 2024
Merged

add purge options #638

merged 2 commits into from
Oct 30, 2024

Conversation

famarting
Copy link
Contributor

@famarting famarting commented Oct 14, 2024

Description

blocked by microsoft/durabletask-go#82

closes #497

Issue reference

Please reference the issue this PR will close: #[issue number]

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

Copy link

codecov bot commented Oct 14, 2024

Codecov Report

Attention: Patch coverage is 16.66667% with 5 lines in your changes missing coverage. Please review.

Project coverage is 62.46%. Comparing base (27248ba) to head (39a0e0f).
Report is 37 commits behind head on main.

Files with missing lines Patch % Lines
workflow/client.go 16.66% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #638      +/-   ##
==========================================
+ Coverage   58.04%   62.46%   +4.42%     
==========================================
  Files          55       56       +1     
  Lines        3568     4143     +575     
==========================================
+ Hits         2071     2588     +517     
- Misses       1375     1429      +54     
- Partials      122      126       +4     

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

Signed-off-by: Fabian Martinez <[email protected]>
@famarting famarting marked this pull request as ready for review October 16, 2024 10:56
@famarting famarting requested review from a team as code owners October 16, 2024 10:56
@famarting famarting changed the title wip: add purge options add purge options Oct 16, 2024
@@ -205,9 +215,10 @@ func (c *Client) ResumeWorkflow(ctx context.Context, id, reason string) error {

// PurgeWorkflow will purge a given workflow and return an error output.
// NOTE: The workflow must be in a terminated or completed state.
func (c *Client) PurgeWorkflow(ctx context.Context, id string) error {
// TODO missing upstream support for api.PurgeOptions
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this comment can be removed with the merge of your PR upstream

Signed-off-by: Fabian Martinez <[email protected]>
@famarting famarting requested a review from mikeee October 21, 2024 14:21
Copy link
Member

@mikeee mikeee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm - thanks for making the changes

@famarting
Copy link
Contributor Author

merge please

@mikeee
Copy link
Member

mikeee commented Oct 25, 2024

@yaron2 Are you happy to merge?

@yaron2 yaron2 merged commit e317f06 into dapr:main Oct 30, 2024
18 of 19 checks passed
@famarting famarting deleted the purge-wf branch October 31, 2024 08:48
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.

Cascade Terminate/Purge support for Workflow
3 participants