feat: add user-facing deployment cancel endpoint (closes #66) #73
No reviewers
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/upaas#73
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "feature/deploy-cancel"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds a
POST /apps/{id}/deployments/cancelendpoint and UI cancel button for user-facing deployment cancellation.Changes
deploy.Service.CancelDeploy()andHasActiveDeploy()public methodsHandleCancelDeployhandlerroutes.goCloses #66
Add POST /apps/{id}/deployments/cancel endpoint that allows users to cancel in-progress deployments via the web UI. Changes: - Add CancelDeploy() and HasActiveDeploy() public methods to deploy service - Add HandleCancelDeploy handler - Wire route in routes.go - Add cancel button to app detail template (shown during active deployments) - Add handler tests for cancel endpoint fixes #66CI Results
Tests: ✅ All passing
Lint: ✅ 0 issues