Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read and write requestids for datapoints with HealthKit #419

Merged
merged 1 commit into from
Dec 2, 2023

Conversation

theospears
Copy link
Collaborator

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

@theospears
Copy link
Collaborator Author

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.

@theospears theospears merged commit 3d6a31a into master Dec 2, 2023
2 checks passed
@theospears theospears deleted the id-for-datapoints branch December 2, 2023 05:52
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