Skip to content

Remove treatment data upload to NS entries - #288

Merged
scottleibrand merged 1 commit into
openaps:devfrom
tmecklem:remove-ns-upload-pumphistory-entries
Dec 26, 2016
Merged

Remove treatment data upload to NS entries#288
scottleibrand merged 1 commit into
openaps:devfrom
tmecklem:remove-ns-upload-pumphistory-entries

Conversation

@tmecklem

@tmecklem tmecklem commented Dec 26, 2016

Copy link
Copy Markdown
Contributor

This change removes pump history upload to the Nightscout entries collection.

Reasons for the change:

  1. Pump history is already uploaded to treatments. It belongs in that collection and not in entries.
  2. It causes problems when backfilling sgv to the entries collection. The recent-missing-entries algorithm does not distinguish between sensor and pump history data in the entries collection. This causes the algorithm to think there are no sgv gaps if there is history data around the same time, event though those items are being uploaded independently of each other. This causes valid sgv entries to be removed from the NS upload incorrectly, resulting in gaps.

Relevant PRs:
openaps/decocare#16
#287

The treatment history data is already uploaded to NS's treatments
collection, so it does not need to also go to the entries collection.
Additionally, it causes problems when backfilling sgv to the entries
collection.
@scottleibrand
scottleibrand merged commit ff5bdaf into openaps:dev Dec 26, 2016
@tmecklem
tmecklem deleted the remove-ns-upload-pumphistory-entries branch December 26, 2016 17:11
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.

2 participants