Personal Measurements for their owner #89

Open
opened 2026-11-27 16:43:28 -05:00 by bobby · 0 comments
Owner

Part of #73 (spec: #72)

What to build

A Person can record body Measurements (body weight, body fat %, waist, chest, arm, thigh) as SI integers with measured_on and optional measured_at, and list their own. This is the first Personal data, protected by Personal RLS. owner defaults to the caller. Other Persons, including the Owner, never see it.

Acceptance criteria

  • POST /v1/fitness/measurements creates a Measurement with owner set to the caller
  • GET and list return only the caller's Measurements
  • Another Person, the Owner, and a non-member all get 404 on someone else's Measurement and see nothing in lists
  • RLS enforces this too: the Owner can't read another Person's rows even when the app guard is bypassed
Part of #73 (spec: #72) ## What to build A Person can record body Measurements (body weight, body fat %, waist, chest, arm, thigh) as SI integers with `measured_on` and optional `measured_at`, and list their own. This is the first Personal data, protected by Personal RLS. `owner` defaults to the caller. Other Persons, including the Owner, never see it. ## Acceptance criteria - [ ] `POST /v1/fitness/measurements` creates a Measurement with `owner` set to the caller - [ ] `GET` and list return only the caller's Measurements - [ ] Another Person, the Owner, and a non-member all get `404` on someone else's Measurement and see nothing in lists - [ ] RLS enforces this too: the Owner can't read another Person's rows even when the app guard is bypassed
bobby added the ready-for-agent label 2026-11-27 16:43:28 -05:00
bobby added a new dependency 2026-11-27 16:43:28 -05:00
bobby added a new dependency 2026-11-27 16:43:29 -05:00
bobby added a new dependency 2026-11-27 16:43:29 -05:00
bobby added a new dependency 2026-11-27 16:43:30 -05:00
bobby added a new dependency 2026-11-27 16:43:42 -05:00
bobby added a new dependency 2026-11-27 16:43:47 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: bobby/hapi#89