Skip to content

Add JSON Schema for subscription migration status - #8588

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

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.

The JSON contract follows CLI versioning and has no separate schemaVersion field.

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:

{
  "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
@gonzaloriestra
gonzaloriestra force-pushed the gonzalo/json-subscription-migrations-status branch 2 times, most recently from c53a9f9 to bdfadaf Compare September 22, 2026 12:24
@gonzaloriestra
gonzaloriestra force-pushed the gonzalo/json-subscription-migrations-status branch from bdfadaf to ff24d54 Compare September 24, 2026 10:32
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@gonzaloriestra
gonzaloriestra force-pushed the gonzalo/json-subscription-migrations-status branch from ff24d54 to 146a02c Compare September 24, 2026 10:41
@gonzaloriestra
gonzaloriestra marked this pull request as ready for review September 24, 2026 10:46
@gonzaloriestra
gonzaloriestra requested review from a team as code owners September 24, 2026 10:46

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

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