Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
Not Applicable
-
None
-
Empty show more show less
Description
Description
Filed in the wrong component on purpose, because it looks like the form validation for the NODE component is broken.
—
bulk.execute() should not fail if there were no operations
Executing a sequence of zero bulk operations should do nothing, right? That was my expectation - the same way looping over an array of 0 elements does nothing, and so on.
Instead, the Node driver throws `Invalid Operation, no operations specified`. This is not helpful. I' m programmatically adding operations to a bulkOp, and sometimes there might be no operations - that's fine.
Now I have to separately keep track of whether at least one operation has been added, which is mildly cumbersome.