You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
intraday: JSON keys do not match CSV headers (rmssd vs hrv_rmssd, duration vs duration_sec, etc.) #20
For the intraday subcommand, JSON keys and CSV headers describe the same fields with different names, and JSON also drops the datetime column entirely. Cross-format consumers have to maintain two name maps.
Other subcommands (activity, workouts, measurements) keep names roughly aligned, so intraday is the odd one out.
Expected
Either:
Pick one canonical name per field and use it in both serializers (preferred — heart_rate / hrv_rmssd / duration_sec-style snake_case with units), or
Document the mapping in prime and the README.
Notes
The unit-suffixed CSV names (_sec, _m) are useful in spreadsheets; matching them in JSON is fine. The bigger ask is hrv_rmssd ↔ rmssd and the missing datetime in JSON.
Confirmed still reproduces against HEAD b580683: same JSON keys (duration, distance, elevation, rmssd, sdnn1, no datetime) vs CSV headers (duration_sec, distance_m, elevation_m, hrv_rmssd, hrv_sdnn1, datetime). Note: workouts and activity exhibit similar (smaller) drift — see new bug filed for those.
Thanks — the side-by-side head -1 / jq keys repro and the mapping table make this easy to triage.
Triage:kind:bug · area:format · priority:medium per TRIAGE.md. Cross-format schema drift on a documented surface, with a workaround (downstream rename map), but real friction for any consumer mixing CSV and JSON. Sibling of #27 (same class of drift on workouts).
Activity
DTTerastar commentedon Apr 25, 2026
Confirmed still reproduces against HEAD b580683: same JSON keys (
duration,distance,elevation,rmssd,sdnn1, nodatetime) vs CSV headers (duration_sec,distance_m,elevation_m,hrv_rmssd,hrv_sdnn1,datetime). Note: workouts and activity exhibit similar (smaller) drift — see new bug filed for those.Terastar-Paperclip commentedon May 19, 2026
Thanks — the side-by-side
head -1/jq keysrepro and the mapping table make this easy to triage.Triage:
kind:bug·area:format·priority:mediumper TRIAGE.md. Cross-format schema drift on a documented surface, with a workaround (downstream rename map), but real friction for any consumer mixing CSV and JSON. Sibling of #27 (same class of drift onworkouts).Routing: Lead Go Engineer.