Commit 3d6a31a
authored
Read and write requestids for datapoints with HealthKit (#419)
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 crashing1 parent aa9950f commit 3d6a31a
File tree
4 files changed
+9
-12
lines changed- BeeSwift
- HeathKit
4 files changed
+9
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| |||
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | 319 | | |
326 | 320 | | |
327 | 321 | | |
| |||
364 | 358 | | |
365 | 359 | | |
366 | 360 | | |
367 | | - | |
368 | 361 | | |
369 | 362 | | |
370 | 363 | | |
371 | | - | |
372 | 364 | | |
373 | 365 | | |
374 | 366 | | |
| |||
474 | 466 | | |
475 | 467 | | |
476 | 468 | | |
477 | | - | |
478 | | - | |
| 469 | + | |
479 | 470 | | |
480 | 471 | | |
481 | 472 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
68 | 69 | | |
69 | | - | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
| 152 | + | |
152 | 153 | | |
153 | 154 | | |
154 | 155 | | |
| |||
0 commit comments