You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I create a data flow with component, which has requires property without any component with corresponding provides. I would expect BakeryJS to check this for me and warn me about missing provides, but instead it happily passes a message without required property:
name: 'BoxInvocationException',
jse_shortmsg: 'The box \'wordcount\' in a mapper mode encountered an exception.',
jse_cause: TypeError: Cannot read property 'split' of undefined
The expected behavior is to check for satisfiability of required properties.
The text was updated successfully, but these errors were encountered:
There is a valid reason for running flow with unsatisfied requirements and it is integration testing. Your flow may consist just of the boxes of interest and the unsatisfied requirements would be given as initial value to a job entering the flow.
What about
the flow is tested whether it forms connected acyclic graph (every box has an input, no cycles)
presence of the required fields is tested in run-time eventually breaking the flow
I understand the issue of testing, although I don't think it is in conflict with validation prior to running flow.
I don't know how you can provide an initial input for the component or how do you plan to use that, but from my point of view it is still a part of the graph. Since you receive the initial input with the flow description, you can include it in the validation.
On the other hand, I agree with your proposed solution, I guess it will be simpler. We can also do runtime validation on boxes' output.
I create a data flow with component, which has
requires
property without any component with correspondingprovides
. I would expect BakeryJS to check this for me and warn me about missingprovides
, but instead it happily passes a message without required property:The expected behavior is to check for satisfiability of required properties.
The text was updated successfully, but these errors were encountered: