astarte-platform / astarte-device-sdk-rust

Apache License 2.0
6 stars 12 forks source link

feat(retention): implement the retention for the connestions #363

Closed joshuachp closed 2 months ago

joshuachp commented 4 months ago

Create the structures needed to store the packets for the interfaces with reliability stored.

joshuachp commented 4 months ago

I will separate the PR in smaller commits, and adjustments for the dynamic introspection are still required.

codecov[bot] commented 4 months ago

Codecov Report

Attention: Patch coverage is 49.25054% with 474 lines in your changes missing coverage. Please review.

Project coverage is 69.4%. Comparing base (384b6ac) to head (233b35a). Report is 34 commits behind head on master.

Files with missing lines Patch % Lines
src/connection.rs 23.8% 134 Missing :warning:
src/transport/mqtt/mod.rs 19.2% 92 Missing :warning:
src/retention/sqlite.rs 69.1% 91 Missing :warning:
src/retention/mod.rs 28.1% 69 Missing :warning:
src/transport/grpc/mod.rs 20.4% 39 Missing :warning:
src/retention/memory.rs 69.1% 25 Missing :warning:
src/transport/mqtt/connection.rs 22.2% 7 Missing :warning:
src/store/sqlite.rs 60.0% 4 Missing :warning:
src/builder.rs 72.7% 3 Missing :warning:
src/interface/mod.rs 76.9% 3 Missing :warning:
... and 3 more
Additional details and impacted files | [Files with missing lines](https://app.codecov.io/gh/astarte-platform/astarte-device-sdk-rust/pull/363?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=astarte-platform) | Coverage Δ | | |---|---|---| | [src/client.rs](https://app.codecov.io/gh/astarte-platform/astarte-device-sdk-rust/pull/363?src=pr&el=tree&filepath=src%2Fclient.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=astarte-platform#diff-c3JjL2NsaWVudC5ycw==) | `66.1% <ø> (ø)` | | | [src/error.rs](https://app.codecov.io/gh/astarte-platform/astarte-device-sdk-rust/pull/363?src=pr&el=tree&filepath=src%2Ferror.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=astarte-platform#diff-c3JjL2Vycm9yLnJz) | `0.0% <ø> (ø)` | | | [src/properties.rs](https://app.codecov.io/gh/astarte-platform/astarte-device-sdk-rust/pull/363?src=pr&el=tree&filepath=src%2Fproperties.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=astarte-platform#diff-c3JjL3Byb3BlcnRpZXMucnM=) | `90.9% <ø> (ø)` | | | [src/store/error.rs](https://app.codecov.io/gh/astarte-platform/astarte-device-sdk-rust/pull/363?src=pr&el=tree&filepath=src%2Fstore%2Ferror.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=astarte-platform#diff-c3JjL3N0b3JlL2Vycm9yLnJz) | `0.0% <ø> (ø)` | | | [src/store/memory.rs](https://app.codecov.io/gh/astarte-platform/astarte-device-sdk-rust/pull/363?src=pr&el=tree&filepath=src%2Fstore%2Fmemory.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=astarte-platform#diff-c3JjL3N0b3JlL21lbW9yeS5ycw==) | `97.2% <100.0%> (+<0.1%)` | :arrow_up: | | [src/store/mod.rs](https://app.codecov.io/gh/astarte-platform/astarte-device-sdk-rust/pull/363?src=pr&el=tree&filepath=src%2Fstore%2Fmod.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=astarte-platform#diff-c3JjL3N0b3JlL21vZC5ycw==) | `100.0% <ø> (ø)` | | | [src/store/wrapper.rs](https://app.codecov.io/gh/astarte-platform/astarte-device-sdk-rust/pull/363?src=pr&el=tree&filepath=src%2Fstore%2Fwrapper.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=astarte-platform#diff-c3JjL3N0b3JlL3dyYXBwZXIucnM=) | `100.0% <100.0%> (ø)` | | | [src/transport/mqtt/config/mod.rs](https://app.codecov.io/gh/astarte-platform/astarte-device-sdk-rust/pull/363?src=pr&el=tree&filepath=src%2Ftransport%2Fmqtt%2Fconfig%2Fmod.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=astarte-platform#diff-c3JjL3RyYW5zcG9ydC9tcXR0L2NvbmZpZy9tb2QucnM=) | `66.6% <100.0%> (+2.3%)` | :arrow_up: | | [src/validate.rs](https://app.codecov.io/gh/astarte-platform/astarte-device-sdk-rust/pull/363?src=pr&el=tree&filepath=src%2Fvalidate.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=astarte-platform#diff-c3JjL3ZhbGlkYXRlLnJz) | `70.0% <100.0%> (+2.7%)` | :arrow_up: | | [src/interface/def.rs](https://app.codecov.io/gh/astarte-platform/astarte-device-sdk-rust/pull/363?src=pr&el=tree&filepath=src%2Finterface%2Fdef.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=astarte-platform#diff-c3JjL2ludGVyZmFjZS9kZWYucnM=) | `71.9% <0.0%> (-1.2%)` | :arrow_down: | | ... and [12 more](https://app.codecov.io/gh/astarte-platform/astarte-device-sdk-rust/pull/363?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=astarte-platform) | |
joshuachp commented 3 months ago

Changelog updated