astarte-platform / astarte

Core Astarte Repository
https://docs.astarte-platform.org/
Apache License 2.0
238 stars 46 forks source link

RM: do not fail to delete device if there are no individual interfaces #888

Closed Annopaolo closed 8 months ago

Annopaolo commented 8 months ago

Device deletion was stuck in a loop when individual_datastreams and individual_properties tables were still not configured. Add a check for the presence of the two tables before trying to delete data from them. If they are not configured, move on.

Closes #885 .

codecov[bot] commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (ab1a2ec) 68.36% compared to head (b772aa6) 68.41%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #888 +/- ## ========================================== + Coverage 68.36% 68.41% +0.04% ========================================== Files 270 270 Lines 7011 7022 +11 ========================================== + Hits 4793 4804 +11 Misses 2218 2218 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.