astarte-platform / astarte-device-sdk-rust

Apache License 2.0
6 stars 12 forks source link

Incorrect purge property behavior #341

Closed joshuachp closed 5 months ago

joshuachp commented 6 months ago

From the first version v0.5 the consumer purge property is deleting all the stored props and not only the server owned.

https://github.com/astarte-platform/astarte-device-sdk-rust/blob/d7f9c55bde3e657aacfe7b2cfa2e3e9f220ecb60/src/lib.rs#L515-L518

Here we must filter for only server props. I would also rename the function in purge_server_props to be more understandable.

joshuachp commented 5 months ago

Fixed in #342