Skip to content

Add JSON Schema for subscription migration status - #8588

Draft
gonzaloriestra wants to merge 1 commit into
gonzalo/json-subscription-migrations-schedulefrom
gonzalo/json-subscription-migrations-status
Draft

gonzaloriestra wants to merge 1 commit into
gonzalo/json-subscription-migrations-schedulefrom
gonzalo/json-subscription-migrations-status

Conversation

@gonzaloriestra

Copy link
Copy Markdown
Contributor

WHY are these changes introduced?

Make the existing operation-status JSON contract discoverable and validated.

Related to shop/issues-develop#23886. Stacked on #8587.

WHAT is this pull request doing?

Reuse the cancellation operation schema for status output and infer operation types from the shared contract. Preserve operation order, per-shop results, terminal text, and exit behavior. Verify that watched progress reaches stderr as typed events while stdout contains one final JSON document.

Normal output includes operation-one: COMPLETED (0/1 settled). The matching JSON (shown compactly) is:

{"schemaVersion":1,"operations":[{"id":"operation-one","status":"COMPLETED","total":1,"results":{"edges":[]}}]}

How to manually test your changes?

shopify app subscription-migrations status --help
shopify app subscription-migrations status --json-schema
shopify app subscription-migrations status --id <operation-id> --json
shopify app subscription-migrations status --id <operation-id> --watch --json

Checklist

  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've considered possible documentation changes
  • I've considered analytics changes to measure impact

@github-actions github-actions Bot added the no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users. label Sep 18, 2026
@gonzaloriestra
gonzaloriestra added this pull request to stack #8590 September 18, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant