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

IOTData: Simplify delta calculation #8423

Merged
merged 1 commit into from
Dec 22, 2024

Conversation

bblommers
Copy link
Collaborator

Fixes #8408

Computing the delta using jsondiff was introduced in the very beginning: #1303, and further 'improved' with #7814 and #8342

Trying to mangle jsondiff into making it behave the way we wanted introduced more problems then it solved though, so this PR simplifies the implementation to compute the delta manually (which turns out to be fairly straightforward).

@bblommers bblommers force-pushed the iotdata-simplify-delta-calc branch 2 times, most recently from f323465 to 6834f25 Compare December 22, 2024 11:49
@bblommers bblommers force-pushed the iotdata-simplify-delta-calc branch from 6834f25 to 0346482 Compare December 22, 2024 12:44
Copy link

codecov bot commented Dec 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.60%. Comparing base (a7c08bd) to head (0346482).
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8423      +/-   ##
==========================================
- Coverage   94.60%   94.60%   -0.01%     
==========================================
  Files        1167     1167              
  Lines      101697   101685      -12     
==========================================
- Hits        96210    96198      -12     
  Misses       5487     5487              
Flag Coverage Δ
servertests 28.83% <20.00%> (+<0.01%) ⬆️
unittests 94.57% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@bblommers bblommers added this to the 5.0.25 milestone Dec 22, 2024
@bblommers bblommers marked this pull request as ready for review December 22, 2024 16:48
@bblommers bblommers merged commit 1e4364d into getmoto:master Dec 22, 2024
53 checks passed
@bblommers bblommers deleted the iotdata-simplify-delta-calc branch December 22, 2024 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IoT Data: delta calculation when desired state adds a new key
1 participant