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

@gonzaloriestra gonzaloriestra commented Sep 18, 2026

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.

Example output

shopify app subscription-migrations status --id operation-one

Text output (banner borders omitted):

Subscription migration operations.

operation-one: RUNNING (0/1 settled)

With --json:

{
  "schemaVersion": 1,
  "operations": [
    {
      "id": "operation-one",
      "status": "RUNNING",
      "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
@gonzaloriestra
gonzaloriestra force-pushed the gonzalo/json-subscription-migrations-status branch from d7f9d35 to 366dfec Compare September 21, 2026 12:17
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