Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions docs-shopify.dev/commands/app-bulk-cancel.doc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// This is an autogenerated file. Don't edit this file manually.
import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs'

const data: ReferenceEntityTemplateSchema = {
name: 'app bulk cancel',
description: `Cancels a running bulk operation by ID.`,
overviewPreviewDescription: `Cancel a bulk operation.`,
type: 'command',
isVisualComponent: false,
defaultExample: {
codeblock: {
tabs: [
{
title: 'app bulk cancel',
code: './examples/app-bulk-cancel.example.sh',
language: 'bash',
},
],
title: 'app bulk cancel',
},
},
definitions: [
{
title: 'Flags',
description: 'The following flags are available for the `app bulk cancel` command:',
type: 'appbulkcancel',
},
],
category: 'app',
related: [
],
}

export default data
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
shopify app bulk cancel [flags]
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
// This is an autogenerated file. Don't edit this file manually.
export interface appbulkcancel {
/**
* The Client ID of your app.
* @environment SHOPIFY_FLAG_CLIENT_ID
*/
'--client-id <value>'?: string

/**
* The name of the app configuration.
* @environment SHOPIFY_FLAG_APP_CONFIG
*/
'-c, --config <value>'?: string

/**
* The bulk operation ID to cancel (numeric ID or full GID).
* @environment SHOPIFY_FLAG_ID
*/
'--id <value>': string

/**
* Disable color output.
* @environment SHOPIFY_FLAG_NO_COLOR
*/
'--no-color'?: ''

/**
* The path to your app directory.
* @environment SHOPIFY_FLAG_PATH
*/
'--path <value>'?: string

/**
* Reset all your settings.
* @environment SHOPIFY_FLAG_RESET
*/
'--reset'?: ''

/**
* The store domain. Must be an existing dev store.
* @environment SHOPIFY_FLAG_STORE
*/
'-s, --store <value>'?: string

/**
* Increase the verbosity of the output.
* @environment SHOPIFY_FLAG_VERBOSE
*/
'--verbose'?: ''
}
109 changes: 109 additions & 0 deletions docs-shopify.dev/generated/generated_docs_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,115 @@
"category": "app",
"related": []
},
{
"name": "app bulk cancel",
"description": "Cancels a running bulk operation by ID.",
"overviewPreviewDescription": "Cancel a bulk operation.",
"type": "command",
"isVisualComponent": false,
"defaultExample": {
"codeblock": {
"tabs": [
{
"title": "app bulk cancel",
"code": "shopify app bulk cancel [flags]",
"language": "bash"
}
],
"title": "app bulk cancel"
}
},
"definitions": [
{
"title": "Flags",
"description": "The following flags are available for the `app bulk cancel` command:",
"type": "appbulkcancel",
"typeDefinitions": {
"appbulkcancel": {
"filePath": "docs-shopify.dev/commands/interfaces/app-bulk-cancel.interface.ts",
"name": "appbulkcancel",
"description": "",
"members": [
{
"filePath": "docs-shopify.dev/commands/interfaces/app-bulk-cancel.interface.ts",
"syntaxKind": "PropertySignature",
"name": "--client-id <value>",
"value": "string",
"description": "The Client ID of your app.",
"isOptional": true,
"environmentValue": "SHOPIFY_FLAG_CLIENT_ID"
},
{
"filePath": "docs-shopify.dev/commands/interfaces/app-bulk-cancel.interface.ts",
"syntaxKind": "PropertySignature",
"name": "--id <value>",
"value": "string",
"description": "The bulk operation ID to cancel (numeric ID or full GID).",
"environmentValue": "SHOPIFY_FLAG_ID"
},
{
"filePath": "docs-shopify.dev/commands/interfaces/app-bulk-cancel.interface.ts",
"syntaxKind": "PropertySignature",
"name": "--no-color",
"value": "\"\"",
"description": "Disable color output.",
"isOptional": true,
"environmentValue": "SHOPIFY_FLAG_NO_COLOR"
},
{
"filePath": "docs-shopify.dev/commands/interfaces/app-bulk-cancel.interface.ts",
"syntaxKind": "PropertySignature",
"name": "--path <value>",
"value": "string",
"description": "The path to your app directory.",
"isOptional": true,
"environmentValue": "SHOPIFY_FLAG_PATH"
},
{
"filePath": "docs-shopify.dev/commands/interfaces/app-bulk-cancel.interface.ts",
"syntaxKind": "PropertySignature",
"name": "--reset",
"value": "\"\"",
"description": "Reset all your settings.",
"isOptional": true,
"environmentValue": "SHOPIFY_FLAG_RESET"
},
{
"filePath": "docs-shopify.dev/commands/interfaces/app-bulk-cancel.interface.ts",
"syntaxKind": "PropertySignature",
"name": "--verbose",
"value": "\"\"",
"description": "Increase the verbosity of the output.",
"isOptional": true,
"environmentValue": "SHOPIFY_FLAG_VERBOSE"
},
{
"filePath": "docs-shopify.dev/commands/interfaces/app-bulk-cancel.interface.ts",
"syntaxKind": "PropertySignature",
"name": "-c, --config <value>",
"value": "string",
"description": "The name of the app configuration.",
"isOptional": true,
"environmentValue": "SHOPIFY_FLAG_APP_CONFIG"
},
{
"filePath": "docs-shopify.dev/commands/interfaces/app-bulk-cancel.interface.ts",
"syntaxKind": "PropertySignature",
"name": "-s, --store <value>",
"value": "string",
"description": "The store domain. Must be an existing dev store.",
"isOptional": true,
"environmentValue": "SHOPIFY_FLAG_STORE"
}
],
"value": "export interface appbulkcancel {\n /**\n * The Client ID of your app.\n * @environment SHOPIFY_FLAG_CLIENT_ID\n */\n '--client-id <value>'?: string\n\n /**\n * The name of the app configuration.\n * @environment SHOPIFY_FLAG_APP_CONFIG\n */\n '-c, --config <value>'?: string\n\n /**\n * The bulk operation ID to cancel (numeric ID or full GID).\n * @environment SHOPIFY_FLAG_ID\n */\n '--id <value>': string\n\n /**\n * Disable color output.\n * @environment SHOPIFY_FLAG_NO_COLOR\n */\n '--no-color'?: ''\n\n /**\n * The path to your app directory.\n * @environment SHOPIFY_FLAG_PATH\n */\n '--path <value>'?: string\n\n /**\n * Reset all your settings.\n * @environment SHOPIFY_FLAG_RESET\n */\n '--reset'?: ''\n\n /**\n * The store domain. Must be an existing dev store.\n * @environment SHOPIFY_FLAG_STORE\n */\n '-s, --store <value>'?: string\n\n /**\n * Increase the verbosity of the output.\n * @environment SHOPIFY_FLAG_VERBOSE\n */\n '--verbose'?: ''\n}"
}
}
}
],
"category": "app",
"related": []
},
{
"name": "app bulk execute",
"description": "Executes an Admin API GraphQL query or mutation on the specified store, as a bulk operation. Mutations are only allowed on dev stores.\n\n Bulk operations allow you to process large amounts of data asynchronously. Learn more about [bulk query operations](/docs/api/usage/bulk-operations/queries) and [bulk mutation operations](/docs/api/usage/bulk-operations/imports).\n\n Use [`bulk status`](/docs/api/shopify-cli/app/app-bulk-status) to check the status of your bulk operations.",
Expand Down
2 changes: 0 additions & 2 deletions packages/app/src/cli/commands/app/bulk/cancel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ export default class BulkCancel extends AppLinkedCommand {

static description = 'Cancels a running bulk operation by ID.'

static hidden = true

static flags = {
...globalFlags,
...appFlags,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ describe('cancelBulkOperation', () => {
await cancelBulkOperation({organization: mockOrganization, storeFqdn, operationId, remoteApp: mockRemoteApp})

expect(renderError).toHaveBeenCalledWith({
headline: 'Bulk operation cancellation errors.',
headline: 'Failed to cancel bulk operation.',
body: 'id: Operation not found',
})
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export async function cancelBulkOperation(options: CancelBulkOperationOptions):
})

if (response.bulkOperationCancel?.userErrors?.length) {
renderBulkOperationUserErrors(response.bulkOperationCancel.userErrors, 'Bulk operation cancellation errors.')
renderBulkOperationUserErrors(response.bulkOperationCancel.userErrors, 'Failed to cancel bulk operation.')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Minor copy update, since I'm touching this anyway -- just wanted to make this a bit more descriptive!)

return
}

Expand Down
26 changes: 26 additions & 0 deletions packages/cli/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Commands
<!-- commands -->
* [`shopify app build`](#shopify-app-build)
* [`shopify app bulk cancel`](#shopify-app-bulk-cancel)
* [`shopify app bulk execute`](#shopify-app-bulk-execute)
* [`shopify app bulk status`](#shopify-app-bulk-status)
* [`shopify app config link`](#shopify-app-config-link)
Expand Down Expand Up @@ -121,6 +122,31 @@ DESCRIPTION
extension to ensure that it's valid.
```

## `shopify app bulk cancel`

Cancel a bulk operation.

```
USAGE
$ shopify app bulk cancel --id <value> [--client-id <value> | -c <value>] [--no-color] [--path <value>] [--reset |
] [-s <value>] [--verbose]

FLAGS
-c, --config=<value> The name of the app configuration.
-s, --store=<value> The store domain. Must be an existing dev store.
--client-id=<value> The Client ID of your app.
--id=<value> (required) The bulk operation ID to cancel (numeric ID or full GID).
--no-color Disable color output.
--path=<value> The path to your app directory.
--reset Reset all your settings.
--verbose Increase the verbosity of the output.

DESCRIPTION
Cancel a bulk operation.

Cancels a running bulk operation by ID.
```

## `shopify app bulk execute`

Execute bulk operations.
Expand Down
1 change: 0 additions & 1 deletion packages/cli/oclif.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@
}
},
"hasDynamicHelp": false,
"hidden": true,
"hiddenAliases": [
],
"id": "app:bulk:cancel",
Expand Down
1 change: 1 addition & 0 deletions packages/features/snapshots/commands.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
├─ app
│ ├─ build
│ ├─ bulk
│ │ ├─ cancel
│ │ ├─ execute
│ │ └─ status
│ ├─ config
Expand Down