pazaan / 600SeriesAndroidUploader

Your Medtronic 600-series pump data, direct to Nightscout
http://pazaan.github.io/600SeriesAndroidUploader/
MIT License
189 stars 312 forks source link

NS v0.11.1 duplicates in the DB (NS BUG) #243

Closed Pogman closed 5 years ago

Pogman commented 5 years ago

Just bumped into this and want to note potential issues that can affect the 600 uploader.

Using NS v0.11.1

Deleting treatments from the NS db with the http DELETE --> https://xxxxxxxx.herokuapp.com/api/v1/treatments/5c7ff3a24d6b7ce7ffe84284 form works but seems to not actually be deleting treatment items older then 4 days but yet NS api returns as a successful operation.

It has a major effect on backfill and duplicate management for casual users of our uploader where lots of users use multiple devices. It will also mess with any dynamic events that can change based on pump use. For full mirroring of the pump a dynamic event needs to have it's db item deleted and re-uploaded (NS does not have an update type via the api AFAIK).

Testing by reverting to NS v0.10.3 works as expected .

Additional issues caused by this: expecting a delete to have happened can cause a constant loop of never ending work as it keeps trying to clean-up dupes. Careful now...

Pogman commented 5 years ago

Closed - update handling for this and available in 0.7.0 release