mattdavis90 / node-red-contrib-tado-client

Tado web API client node for Node Red
MIT License
23 stars 16 forks source link

Nodes don't upgrade gracefully #58

Open mattdavis90 opened 1 year ago

mattdavis90 commented 1 year ago

NodeRed doesn't automatically populate missing properties with defaults, or remove old properties.

This isn't generally an issue unless there is a validator on the node.

I haven't searched for a solution yet but it feels like something others will have experienced and maybe have a solution for.

The original report was #57

mattdavis90 commented 1 year ago

It looks like the answer here might be adding some upgrade logic to the oneditprepare method as per this comment https://github.com/node-red/node-red/issues/3640#issuecomment-1150791279