-
Notifications
You must be signed in to change notification settings - Fork 223
Never return finished results when running app bulk execute without --watch
#6773
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
base: main
Are you sure you want to change the base?
Conversation
Coverage report
Show new covered files 🐣
Show files with reduced coverage 🔻
Test suite run success3656 tests passing in 1428 suites. Report generated by 🧪jest coverage report action from 08c7d1a |
ericlee878
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.
Successfully tophatted 😀
app bulk execute without --watch
|
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. |
WHY are these changes introduced?
Fixes https://github.com/shop/issues-api-foundations/issues/1295.
Currently, when we do our initial couple polls to make sure the bulk op is running as expected, if it finishes within that window (which would be super fast), we just immediately print the output.
WHAT is this pull request doing?
If a small bulk operation completes during the short poll window, we now say "bulk operation running" instead of "bulk operation complete", even though it is complete. This is a bit odd, but we have decided it is desirable behavior because it guarantees consistency -- whether the job is small or large, the output will be the same, which is helpful for scripting.
How to test your changes?
Try running a very small mutation, like for example this one:
You should see "Bulk operation is running" now, instead of "Bulk operation succeeded".