Skip to content

fix: unscheduling a recipe should not delete them - #8978

Merged
lifeizhou-ap merged 1 commit into
mainfrom
delete-scheduled-recipe
May 4, 2026
Merged

fix: unscheduling a recipe should not delete them#8978
lifeizhou-ap merged 1 commit into
mainfrom
delete-scheduled-recipe

Conversation

@angiejones

@angiejones angiejones commented May 3, 2026

Copy link
Copy Markdown
Collaborator

Unscheduling a recipe also deletes the underlying recipe file, making the workflow unrecoverable.

This fix only removes the schedule.

Added a test as well.

Signed-off-by: Angie Jones <jones.angie@gmail.com>
@angiejones angiejones changed the title fix schedule removal to keep recipes fix: unscheduling a recipe should not delete them May 3, 2026

@michaelneale michaelneale left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think makes sense - seems odd that it would also delete recipe (maybe that was by design but is surprising which I assume is why you want to change this, so makes sense to change behavior to be less surprising!)

@lifeizhou-ap lifeizhou-ap left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you @angiejones for the fix and making the behaviour consistent!

@lifeizhou-ap
lifeizhou-ap added this pull request to the merge queue May 4, 2026
@angiejones

Copy link
Copy Markdown
Collaborator Author

I think makes sense - seems odd that it would also delete recipe (maybe that was by design but is surprising which I assume is why you want to change this, so makes sense to change behavior to be less surprising!)

yeah, bit me twice 😭 figured I should put in a fix

Merged via the queue into main with commit 17c12bf May 4, 2026
22 checks passed
@lifeizhou-ap
lifeizhou-ap deleted the delete-scheduled-recipe branch May 4, 2026 01:40
shafqatevo pushed a commit to shafqatevo/goose that referenced this pull request Aug 7, 2026
Signed-off-by: Angie Jones <jones.angie@gmail.com>
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.

3 participants