Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Integration with FitBit #185

Merged
merged 15 commits into from
Jun 5, 2024
Merged

Integration with FitBit #185

merged 15 commits into from
Jun 5, 2024

Conversation

henrybrink
Copy link
Collaborator

@henrybrink henrybrink commented May 15, 2024

This PR contains changes necessary to integrate Fitbit (and technically other providers) into our application.
With this PR it is possible, to link a Fitbit account to a local user account.

To do this, the user needs to perform the following actions:

  • Retrieve the "Authorize URL" via /datasource/fitbit/authorize
  • Visit Fitbit and allow Access for our Application
  • Get redirected back to the application. The redirect will only work if the application is on our staging environment as Fitbit only allows one URL.

Not everything in this PR is tested automatically, @benedictweis please look closely if we could add further tests, when they could make sense.

Signed-off-by: Henry Brink <[email protected]>
@henrybrink henrybrink marked this pull request as ready for review June 2, 2024 14:02
@benedictweis
Copy link
Contributor

Awesome, thank you very much, I will add my review asap.

Copy link
Contributor

@benedictweis benedictweis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome PR, thank you very much 🥳. I have added a few comments, nothing ground breaking just a couple of improvements. Have fun 😉

backend/prisma/schema.prisma Show resolved Hide resolved
backend/tsconfig.json Outdated Show resolved Hide resolved
backend/test/lib/database.constants.ts Show resolved Hide resolved
backend/src/integration/fitness/providers/mock.provider.ts Outdated Show resolved Hide resolved
backend/src/api/datasource/datasource.controller.spec.ts Outdated Show resolved Hide resolved
backend/src/api/datasource/datasource.controller.spec.ts Outdated Show resolved Hide resolved
@benedictweis
Copy link
Contributor

I don't think that this implementation benefits from adding more tests. Tests are fine as they are at the moment in my opinion.

Copy link
Contributor

@benedictweis benedictweis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@OG-NI OG-NI merged commit 6648c4a into main Jun 5, 2024
5 checks passed
@OG-NI OG-NI deleted the dev/backend/datasource-format branch June 5, 2024 06:56
@henrybrink henrybrink added the backend Issues related to the backend label Jun 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backend Issues related to the backend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants