Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DUP: do not generate redundant disconnection triggers #1015

Open
wants to merge 1 commit into
base: release-1.2
Choose a base branch
from

Conversation

Annopaolo
Copy link
Collaborator

What this PR does / why we need it:

In some corner cases, e.g. deletion of a disconnected device, Astarte would generate a disconnection trigger even if
the device is already disconnected.
Avoid doing so by checking the device connection state before generating a trigger.

Which issue(s) this PR fixes:

Fixes #1014

Special notes for your reviewer:

Does this PR introduce a user-facing change?
  • Yes
  • No

Additional documentation e.g. usage docs, diagrams, etc.:


Copy link

codecov bot commented Nov 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.60%. Comparing base (d3187f0) to head (3e752a1).
Report is 16 commits behind head on release-1.2.

Additional details and impacted files
@@               Coverage Diff               @@
##           release-1.2    #1015      +/-   ##
===============================================
+ Coverage        68.35%   69.60%   +1.24%     
===============================================
  Files              282      264      -18     
  Lines             7446     7099     -347     
===============================================
- Hits              5090     4941     -149     
+ Misses            2356     2158     -198     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

In some corner cases, e.g. deletion of a disconnected device,
Astarte would generate a disconnection trigger even if
the device is already disconnected.
Avoid doing so by checking the device connection state
before generating a trigger.

Signed-off-by: Arnaldo Cesco <arnaldo.cesco@secomind.com>
@Annopaolo Annopaolo force-pushed the do-not-trigger-disconnection-if-already-disconnected branch from 0d4b960 to 3e752a1 Compare November 21, 2024 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants