Skip to content

feat: add workflow transition support (internal API)#3

Closed
minuteman3 wants to merge 1 commit into
miles/add-public-api-toolsfrom
miles/add-all-api-tools
Closed

feat: add workflow transition support (internal API)#3
minuteman3 wants to merge 1 commit into
miles/add-public-api-toolsfrom
miles/add-all-api-tools

Conversation

@minuteman3

Copy link
Copy Markdown
Owner

Why?

During incident investigation, seeing the internal VReplication workflow state machine transitions (pending → copying → running → verified_data → switching → cutover → completed) gives visibility into deploy operation progress that the public API doesn't expose.

How?

Adds workflow transition support to list_deploy_requests (via include_workflow_transitions flag) and get_events (always included) using the PlanetScale internal API endpoint /internal/.../workflow-transitions. Transitions are grouped by workflow number into timelines. This is the only internal API endpoint used — all other tools use the public v1 API.

Stacks on top of the public API PR (planetscale#18).

Generated with Claude Code

Add VReplication workflow transition timelines to list_deploy_requests
and get_events using the internal API endpoint:
/internal/.../workflow-transitions?between=start..end

list_deploy_requests gains an include_workflow_transitions flag that
fetches and groups transitions by workflow number into timelines.
get_events includes workflow transitions in its unified timeline.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@minuteman3 minuteman3 closed this Mar 26, 2026
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.

1 participant