Marc-André Bombeck
8d10e5ab94
feat(measurements): resolve each reading's Apple Health write-back
...
A reading sent with a measurements:write token keeps its EXTERNAL source
and now points at the token that carried it (measurements.ingest_token_id).
Every stored row answers a server-resolved appleHealthMirror: true for
WITHINGS, IMPORT and MANUAL, the token's choice for EXTERNAL, false
otherwise. The plain list accepts appleHealthMirror=true so a client can
page exactly those rows.
Migration 0476 adds the columns and links existing EXTERNAL readings only
where one measurement token provably sent them; 0477 builds the index
concurrently. Backups carry the link and a restore keeps it only for a
token the account still holds. A guard holds every EXTERNAL writer to
setting the link.
2026-10-23 19:27:52 +02:00
..
2026-10-23 10:54:23 +02:00
2026-10-23 11:12:39 +02:00
2026-10-23 11:12:39 +02:00
2026-10-23 17:19:21 +02:00
2026-10-20 09:08:40 +02:00
2026-10-03 18:18:56 +02:00
2026-10-23 11:12:39 +02:00
2026-10-23 13:52:57 +02:00
2026-10-23 11:29:22 +02:00
2026-10-23 15:17:27 +02:00
2026-10-23 11:29:22 +02:00
2026-09-25 21:55:14 +02:00
2026-10-23 11:12:39 +02:00
2026-10-23 11:29:23 +02:00
2026-10-23 16:32:10 +02:00
2026-10-23 16:54:57 +02:00
2026-10-23 11:29:22 +02:00
2026-10-23 11:12:39 +02:00
2026-10-23 16:54:57 +02:00
2026-10-16 01:23:26 +02:00
2026-10-21 16:25:26 +02:00
2026-10-23 16:54:57 +02:00
2026-10-23 15:10:26 +02:00
2026-10-23 11:12:39 +02:00
2026-10-23 11:12:39 +02:00
2026-10-23 11:12:39 +02:00
2026-10-23 11:12:39 +02:00
2026-10-20 13:57:11 +02:00
2026-10-22 05:31:09 +02:00
2026-10-23 12:57:47 +02:00
2026-10-23 10:54:23 +02:00
2026-10-23 12:57:47 +02:00
2026-10-21 20:51:13 +02:00
2026-10-23 11:29:22 +02:00
2026-10-23 15:00:35 +02:00
2026-10-23 16:54:57 +02:00
2026-10-23 16:54:57 +02:00
2026-10-23 16:54:57 +02:00
2026-10-20 09:08:40 +02:00
2026-10-23 16:54:57 +02:00
2026-10-23 11:12:39 +02:00
2026-10-23 11:12:39 +02:00
2026-10-23 11:12:39 +02:00
2026-08-02 16:36:25 +02:00
2026-10-23 11:29:22 +02:00
2026-10-23 19:27:52 +02:00
2026-10-23 17:10:02 +02:00
2026-10-23 11:29:22 +02:00
2026-10-01 10:06:39 +02:00
2026-10-04 15:13:52 +02:00
2026-10-23 11:12:39 +02:00
2026-10-23 16:54:57 +02:00
2026-10-21 21:37:21 +02:00
2026-10-22 14:50:00 +02:00
2026-10-23 11:12:39 +02:00
2026-10-23 11:29:23 +02:00
2026-10-23 12:57:47 +02:00
2026-10-20 13:29:14 +02:00
2026-10-23 12:57:47 +02:00
2026-10-23 11:12:39 +02:00
2026-08-06 04:59:25 +02:00
2026-10-23 11:05:08 +02:00
2026-10-23 11:29:23 +02:00
2026-10-23 11:12:39 +02:00
2026-10-23 11:12:39 +02:00
2026-10-20 09:28:40 +02:00
2026-10-23 12:57:47 +02:00
2026-10-23 11:12:39 +02:00
2026-10-23 14:45:26 +02:00
2026-10-22 15:16:42 +02:00
2026-10-09 15:02:14 +02:00
2026-10-23 11:12:39 +02:00
2026-10-23 11:29:23 +02:00
2026-10-23 11:12:39 +02:00
2026-10-20 09:08:40 +02:00
2026-10-23 12:57:47 +02:00
2026-10-23 12:57:47 +02:00
2026-10-23 14:00:28 +02:00