beeminder / BeeSwift

Official Beeminder for iOS app
Other
30 stars 6 forks source link

Goal syncing should support arbitrary date ranges #366

Closed theospears closed 1 year ago

theospears commented 1 year ago

Previously when syncing healthkit datapoints to the server data, we would always fetch exactly 7 server points. This would go badly if there were multiple points for a day on the server, and didn't support adding features where we synced more history. Here we instead estimate the number of points to fetch from the server, and fetch more until we have confirmed we have enough.

Tests: