Skip to content

Pair uploaded treatments with the right Nightscout ids - #53

Open
bjorkert wants to merge 1 commit into
LoopKit:next-devfrom
bjorkert:objectid-pairing
Open

bjorkert wants to merge 1 commit into
LoopKit:next-devfrom
bjorkert:objectid-pairing

Conversation

@bjorkert

@bjorkert bjorkert commented Nov 19, 2026 •

Copy link
Copy Markdown

Doses and carbs that have no Nightscout treatment are skipped in the upload, but the returned ids were matched against the full list. After a skipped entry, the following entries got the wrong id, so later updates and deletes hit the wrong treatment. The upload now returns each id together with its entry. Needed by the remote command guard in LoopKit/LoopWorkspace#594, and fixes updates and deletes on its own.

Doses and carbs without a Nightscout treatment are left out of the upload, so the returned objectIds are paired with the entries that were uploaded. A valid objectId is kept when a repeated upload is answered without one.
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.

1 participant