Files
HealthLog/docs/api/openapi.yaml
T
Marc-André Bombeck f3662a8dc8 fix(labs): keep a deleted Health Records result deleted once its row is gone
The import recognised a deleted result by the identity on its own
tombstone, so anything that removed the row brought the result back
with the next Apple Health export or resend: deleting the whole marker,
which hard-deletes its readings, the nightly tombstone purge, and a
portable backup, which leaves deleted readings out.

The identities now move into an import ledger (LabResultImportKey,
migration 0501) in the same transaction as the marker delete and the
purge, and the import checks it beside the stored rows. The backup
carries the ledger, a portable file also the identities of deleted
readings still waiting as tombstones; the restore writes it back
without the identities a restored reading holds. The data wipe clears
it, account deletion cascades.
2026-11-17 21:20:55 +01:00

3.5 MiB