Wahoo Cloud integration: preserve workout identity and sensor context
Fitness data often arrives late, in duplicate, or from several sensors. A reliable sync needs stable IDs and clear provenance.
Test the activity lifecycle
- Distinguish planned, active, completed, edited, and deleted workouts.
- Store timestamps as instants and retain the activity time zone.
- Keep measurement units and sensor source with each stream.
- Deduplicate webhook and polling results by provider identifiers.
- Make the last successful synchronization visible.
Test paused recordings, device clock errors, manual edits, revoked authorization, and partial sensor streams. Health-related records deserve encryption, strict access control, and a deletion workflow. Avoid interpreting fitness metrics as medical advice.
1 komentář