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
When setting up a topology that uses an appliance with more than one input type it appears the system fails if an input type is not satisfied.
/Users/slifty/Maestral/Code/tvkitchen/implementations/tvkitchen-newsmax-implementation/node_modules/@tvkitchen/countertop/lib/tools/utils/countertop.js:168
const getStreamTopic = (dataType, stream) => (0, _kafka.sanitizeTopic)(`${dataType}::${stream.id}`);
^
TypeError: Cannot read properties of undefined (reading 'id')
at getStreamTopic (/Users/slifty/Maestral/Code/tvkitchen/implementations/tvkitchen-newsmax-implementation/node_modules/@tvkitchen/countertop/lib/tools/utils/countertop.js:168:95)
at /Users/slifty/Maestral/Code/tvkitchen/implementations/tvkitchen-newsmax-implementation/node_modules/@tvkitchen/countertop/lib/classes/CountertopWorker.js:70:118
at Array.map (<anonymous>)
at CountertopWorker.start (/Users/slifty/Maestral/Code/tvkitchen/implementations/tvkitchen-newsmax-implementation/node_modules/@tvkitchen/countertop/lib/classes/CountertopWorker.js:70:70)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Promise.all (index 0)
at CountertopStation.start (/Users/slifty/Maestral/Code/tvkitchen/implementations/tvkitchen-newsmax-implementation/node_modules/@tvkitchen/countertop/lib/classes/CountertopStation.js:66:24)
at async Promise.all (index 2)
at Countertop.start (/Users/slifty/Maestral/Code/tvkitchen/implementations/tvkitchen-newsmax-implementation/node_modules/@tvkitchen/countertop/lib/classes/Countertop.js:66:24)
Expected Behavior
It definitely shouldn't crash, though we face a choice. It could either:
Throw an error if an appliance is added without each input being populated for every appliance.
Deem the topology valid, and whatever data arrives arrives.
I'm inclined to not error; we could potentially create a function that will diagnose whether a topology is "input complete" for users who want that, possibly eventually adding a "strict" setting which would result in an error. For the short term I think having no error is a less abrasive place to start, as there are use cases where an input might be an optional "nice to have" for a given appliance.
The text was updated successfully, but these errors were encountered:
Bug
Current Behavior
When setting up a topology that uses an appliance with more than one input type it appears the system fails if an input type is not satisfied.
Expected Behavior
It definitely shouldn't crash, though we face a choice. It could either:
I'm inclined to not error; we could potentially create a function that will diagnose whether a topology is "input complete" for users who want that, possibly eventually adding a "strict" setting which would result in an error. For the short term I think having no error is a less abrasive place to start, as there are use cases where an input might be an optional "nice to have" for a given appliance.
The text was updated successfully, but these errors were encountered: