Skip to content

Add deploy-request force-cutover - #1338

Merged
mscoutermarsh merged 1 commit into
mainfrom
dr-force-cutover
Aug 13, 2026
Merged

Add deploy-request force-cutover#1338
mscoutermarsh merged 1 commit into
mainfrom
dr-force-cutover

Conversation

@mscoutermarsh

Copy link
Copy Markdown
Member

Summary

  • Adds pscale deploy-request force-cutover (dr force-cutover) for DRs stuck in in_progress_cutover
  • Wires the existing POST .../force-cutover API into the client, with a confirmation prompt (skip via --force)
  • Updates API/CLI coverage notes to mark force_cutover_deploy_request as covered

Test plan

  • go test ./internal/planetscale/ -run TestDeployRequests_ForceCutover
  • go test ./internal/cmd/deployrequest/ -run TestDeployRequest_ForceCutover
  • Manual: with a DR in in_progress_cutover, run pscale dr force-cutover <db> <number> --org <org> and confirm the prompt
  • Manual: --force --format json returns the deploy request with force_cutover_requested_at
  • Manual: calling again after force cutover was requested returns the API 422

Made with Cursor

@mscoutermarsh
mscoutermarsh requested a review from a team as a code owner August 13, 2026 19:33
Expose the existing force-cutover API so operators can recover DRs stuck in in_progress_cutover without using pscale api.

Co-authored-by: Cursor <cursoragent@cursor.com>
@mscoutermarsh
mscoutermarsh merged commit fb94587 into main Aug 13, 2026
4 checks passed
@mscoutermarsh
mscoutermarsh deleted the dr-force-cutover branch August 13, 2026 19:41
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.

2 participants