mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
DELETE /api/measurements/by-external-ids now only tombstones rows the iOS client minted through its HealthKit ingestion path (source APPLE_HEALTH). An externalId the app never minted — an integration- or manually-sourced row that happens to collide on externalUUID — falls outside the predicate and is a no-op rather than a delete. Defence-in-depth so a foreign HealthKit sample with a colliding UUID cannot be tombstoned by the periodic reconciliation. The delete stays user-scoped as before. Add a route test proving a foreign-origin externalId is not deleted, and regenerate the OpenAPI spec for the narrowed contract.
834 KiB
834 KiB