-
Notifications
You must be signed in to change notification settings - Fork 224
introduce --version flag to Bulk Operations CLI
#6684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
We detected some changes at Caution DO NOT create changesets for features which you do not wish to be included in the public changelog of the next CLI release. |
Coverage report
Show new covered files 🐣
Show files with reduced coverage 🔻
Test suite run success3456 tests passing in 1397 suites. Report generated by 🧪jest coverage report action from e0bace3 |
a532547 to
4f5de08
Compare
0b94202 to
d889f70
Compare
| bulkOperationRunQuery( | ||
| query: $query | ||
| # Set to false to optimize for speed over grouped results | ||
| groupObjects: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing this argument so that this executable document will be compatible with all supported API versions. (API versions before 2025-07 do not support groupObjects.)
282b3a1 to
6a5c8ee
Compare
34bbdc4 to
081d32e
Compare
|
/snapit |
|
🫰✨ Thanks @gonzaloriestra! Your snapshot has been published to npm. Test the snapshot by installing your package globally: npm i -g --@shopify:registry=https://registry.npmjs.org @shopify/cli@0.0.0-snapshot-20251205104938Caution After installing, validate the version by running just |
gonzaloriestra
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
packages/app/src/cli/services/bulk-operations/execute-bulk-operation.ts
Outdated
Show resolved
Hide resolved
081d32e to
e0bace3
Compare

WHY are these changes introduced?
https://github.com/shop/issues-api-foundations/issues/1138
Users should be able to run their bulk operations against any valid and supported API version.
WHAT is this pull request doing?
Allows users to run their bulk operations against a configurable version. If not provided, defaults to latest stable version.
How to test your changes?
Try running
shopify app bulk executewith various values of--version.Invalid version, e.g.
--version=1998-01:Valid stable version, e.g.
--version=2025-04:--version=unstable:--versionnot provided at all: