Repository navigation
Add typed JSON output to app bulk cancel - #8782
Open
isaacroldan wants to merge 2 commits into
Open
isaacroldan wants to merge 2 commits into
isaacroldan wants to merge 2 commits into
Conversation
isaacroldan
added this pull request to stack #8784
October 6, 2026 08:30
Contributor
Author
|
/snapit |
Contributor
|
🫰✨ Thanks @isaacroldan! Your snapshot has been published to npm. Built from Test the snapshot by installing your package globally: pnpm i -g --@shopify:registry=https://registry.npmjs.org @shopify/cli@0.0.0-snapshot-20261006083335Caution After installing, validate the version by running |
isaacroldan
force-pushed
the
codex/app-bulk-cancel-json
branch
from
October 6, 2026 10:00
7e7a140 to
34ea924
Compare
isaacroldan
removed this pull request from stack #8784
October 6, 2026 10:03
isaacroldan
added this pull request to stack #8789
October 6, 2026 10:03
isaacroldan
force-pushed
the
codex/app-bulk-cancel-json
branch
from
October 6, 2026 16:48
34ea924 to
e7baa3a
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
WHY are these changes introduced?
Give callers a typed JSON result for cancelling a bulk operation, with failures through the standard CLI error contract.
WHAT is this pull request doing?
Add JSON output for
app bulk cancelon top of the status layer's shared bulk-operation contract. Return domain data from execution and keep cancellation banners and status-command guidance in the presenter. Preserve text-mode behavior and refresh the generated command documentation.Representative text output:
Matching JSON output:
{ "storeDomain": "shop.myshopify.com", "apiVersion": "2026-01", "status": "success", "operation": { "gid": "gid://shopify/BulkOperation/123", "type": "QUERY", "status": "CANCELING", "errorCode": null, "createdAt": "2026-09-01T00:00:00Z", "completedAt": null, "objectCount": "2", "url": null, "partialDataUrl": null } }How to manually test your changes?
Use a linked app installed on a development store and a disposable bulk operation.
pnpm shopify app bulk cancel --store <store.myshopify.com> --id <operation-id>. Confirm the existing cancellation banner and status-command hint.--json. Confirm one result document on stdout and diagnostics on stderr.pnpm shopify app bulk cancel --json-schema.Checklist