strava-wind-analysis
strava-wind-analysis copied to clipboard
Refactor segment correlation coefficient computation
Right now, the segment correlation coefficient is computed within the segments details page route, which makes it extremely difficult to unit test. This critical piece of code should be:
- Separated into smaller components
- Refactored to fetch from existing data handlers (Strava, MongoDB)
- Contain improved error handling