Skip to content

Add per-deploy-request aggressive cutover - #1466

Draft
mscoutermarsh wants to merge 1 commit into
mainfrom
cursor/deploy-request-aggressive-cutover-4ebc
Draft

mscoutermarsh wants to merge 1 commit into
mainfrom
cursor/deploy-request-aggressive-cutover-4ebc

Conversation

@mscoutermarsh

Copy link
Copy Markdown
Member

Summary

Opt a single Vitess deploy request into aggressive cutover without changing the database setting or other deploy requests.

  • pscale deploy-request create --aggressive-cutover sends aggressive_cutover: true only when the flag is set.
  • pscale deploy-request update --aggressive-cutover and --aggressive-cutover=false PUT .../deploy-requests/:number/aggressive-cutover with { "enable": <bool> }. Unset flags are not sent.
  • show and queue human tables include an aggressive_cutover column. JSON output already prints the deployment field from the API object.
  • AGENTS.md documents the flags next to the other deploy-request commands.

Database aggressive-cutover and deploy-request force-cutover are unchanged. There is no confirmation prompt.

Test plan

  • go test ./internal/cmd/deployrequest/ ./internal/planetscale/ -count=1
  • Create with --aggressive-cutover against an API that accepts the field and confirm deployment.aggressive_cutover is true
  • Update with --aggressive-cutover=false while the request is still editable, then again after submission and confirm the 422 is printed
Open in Web Open in Cursor 

Opt a single Vitess deploy request into aggressive cutover from create and update, and show the flag on human show and queue tables.

Co-authored-by: Mike Coutermarsh <coutermarsh.mike@gmail.com>

This branch has not been deployed

No deployments
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