Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combined Daily Data Provider Issues #101

Open
ajmenca opened this issue Aug 11, 2023 · 1 comment
Open

Combined Daily Data Provider Issues #101

ajmenca opened this issue Aug 11, 2023 · 1 comment
Assignees

Comments

@ajmenca
Copy link
Collaborator

ajmenca commented Aug 11, 2023

  • The combined daily data provider for RestingHeartRate checks data availability for AppleHealth, then Fitbit, then Garmin. The combinedRestingHeartRate provider function, however, only actually queries for AppleHealth and Fitbit data. If you were to use this for a participant that only had Garmin data, it wouldn't return valid data.

  • Both the combined resting heart rate provider and the combined steps provider are not robust against a Project not having one of the data types enabled. When a project doesn't have a data type enabled, the server returns a 500 error response; for the simpleAvailabilityCheck this is caught properly and returns false. However the combined data providers don't know which providers are valid, and also do not catch errors from their data query, so they fail outright. This means that if, for example, you enable Apple Health and Fitbit, but not Garmin, you can't actually use the Combined Steps aggregator (in this specific case you can use the combined RHR function because of the omission of the Garmin query noted above).

@ajmenca
Copy link
Collaborator Author

ajmenca commented Mar 4, 2024

My second bullet point here was resolved in #112.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants