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

Workflow delete: Remove non_recursive with hardcoded always enabled recursive #7498

Merged

Conversation

JoshVanL
Copy link
Contributor

@JoshVanL JoshVanL commented Feb 5, 2024

The workflow terminate and purge APIs currently take a non_recursive parameter to indicate whether to delete the workflow and its children. This is a double negative and is confusing for users, needing a few more brain cycles to understand the field. We should avoid double negatives in APIs.

Removes this option so that recursive is always enabled with no API field exposing the option.

The workflow terminate and purge APIs currently take a `non_recursive`
parameter to indicate whether to delete the workflow and its children.
This is a double negative and is confusing for users, needing a few more
brain cycles to understand the field. We should avoid double negatives
in APIs. This PR changes the parameter to `recursive` to make it more
clear.

`recursive` defaults to `true`.

Signed-off-by: joshvanl <me@joshvanl.dev>
@JoshVanL JoshVanL requested review from a team as code owners February 5, 2024 14:23
JoshVanL added a commit to JoshVanL/dapr-docs that referenced this pull request Feb 5, 2024
Updates from PR dapr/dapr#7498

Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: joshvanl <me@joshvanl.dev>
dapr/proto/common/v1/common.proto Outdated Show resolved Hide resolved
Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: joshvanl <me@joshvanl.dev>
@JoshVanL JoshVanL changed the title Workflow delete: Change double negative non_recursive to recursive Workflow delete: Remove non_recursive with hardcoded always enabled recursive Feb 6, 2024
Signed-off-by: joshvanl <me@joshvanl.dev>
Copy link

codecov bot commented Feb 6, 2024

Codecov Report

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

Comparison is base (6b7c94f) 62.12% compared to head (4690d6c) 62.12%.

❗ Current head 4690d6c differs from pull request most recent head 7146225. Consider uploading reports for the commit 7146225 to get more accurate results

Files Patch % Lines
pkg/api/universal/workflow.go 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7498      +/-   ##
==========================================
- Coverage   62.12%   62.12%   -0.01%     
==========================================
  Files         245      245              
  Lines       22346    22336      -10     
==========================================
- Hits        13883    13876       -7     
+ Misses       7303     7302       -1     
+ Partials     1160     1158       -2     

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

@artursouza artursouza merged commit e207377 into dapr:master Feb 6, 2024
13 of 15 checks passed
msfussell added a commit to dapr/docs that referenced this pull request Feb 9, 2024
* Updates workflow terminate/purge `non_recursive` query to `recursive`

Updates from PR dapr/dapr#7498

Signed-off-by: joshvanl <me@joshvanl.dev>

* Removes recursive workflow delete strategy from API completely

Signed-off-by: joshvanl <me@joshvanl.dev>

---------

Signed-off-by: joshvanl <me@joshvanl.dev>
Co-authored-by: Mark Fussell <markfussell@gmail.com>
@JoshVanL JoshVanL added this to the v1.13 milestone Feb 12, 2024
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.

None yet

9 participants