Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

Device data updates are not visible on subsequent server runs. #6

Open
kevinswiber opened this issue Jun 12, 2015 · 3 comments
Open

Comments

@kevinswiber
Copy link
Member

A hash that maps to a device is created and stored as a device property. The device data is saved with that hash property. The hash is then removed from that in-memory representation so it doesn't appear in API responses.

When device.save is called anytime in the future, such as when updating the device data after initialization, that hash property is not included.

When the server is restarted, it looks for that hash. When the hash isn't found, it creates a new device, providing the illusion that updated device data did not persist.

@mdobson
Copy link
Contributor

mdobson commented Jul 8, 2015

Could we _ the hash to fix this?

@kevinswiber
Copy link
Member Author

@mdobson We don't save underscore-prefixed properties in the registry.

@mdobson
Copy link
Contributor

mdobson commented Jul 9, 2015

What a nightmare.

--
Matthew Dobson | apigee https://apigee.com/ | m: +1.734.634.5472 |
twitter @mdobs http://twitter.com/mdobs @apigee
https://twitter.com/apigee | Apigee Community
http://community.apigee.com/
for answers, ideas and support!
[image: http://iloveapis.com/]

On Thu, Jul 9, 2015 at 1:42 PM, Kevin Swiber [email protected]
wrote:

@mdobson https://github.com/mdobson We don't save underscore-prefixed
properties in the registry.


Reply to this email directly or view it on GitHub
#6 (comment)
.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants