This prepares for supporting point-by-point syncing of data from HealthKit. In particular
1) HealthKit data sources now provide a requestid for the datapoints they generate
2) We always read requestid from the server (now they are always sent)
This will start writing new IDs immediately, and in the future means we can use the IDs to sync when we have multiple datapoints per day.
Testing:
[ ] Deleted some existing data points, synced with apple heath, and checked they got requestids as expected
[ ] Checked the app can still update existing points via apple health
[ ] Confirmed data points still load without crashing
This prepares for supporting point-by-point syncing of data from HealthKit. In particular 1) HealthKit data sources now provide a requestid for the datapoints they generate 2) We always read requestid from the server (now they are always sent)
This will start writing new IDs immediately, and in the future means we can use the IDs to sync when we have multiple datapoints per day.
Testing: