zettajs / zetta-auto-scout

A basic Scout for auto-wiring devices in Zetta.
MIT License
1 stars 1 forks source link

Adding the hash to the list of public properties. #7

Closed kevinswiber closed 5 years ago

kevinswiber commented 9 years ago

Hash is required on PUT updates. Updating bare devices (those that don't use AutoScout directly) to inherit saved properties.

kevinswiber commented 9 years ago

This public hash property is not ideal. I've been discussing a potential fix with @AdamMagaluk. This would require a change to the device model to expose Device.prototype.onRemoteFetch and Device.prototype.onRemoteUpdate functions, which can run logic/alter the API response going out or the API request coming in, respectively. This will require some design discussion.