Skip to content

BE13 – Wearable Device Data Integration#209

Open
TienNguyen3711 wants to merge 4 commits intomasterfrom
BE13-Wearable-Device-Data-Integration
Open

BE13 – Wearable Device Data Integration#209
TienNguyen3711 wants to merge 4 commits intomasterfrom
BE13-Wearable-Device-Data-Integration

Conversation

@TienNguyen3711
Copy link
Copy Markdown
Collaborator

Summary
This PR adds backend support for wearable device data ingestion and refactors database access into repositories to improve maintainability and future extensibility.

Changes
Added wearable data endpoints, validation, normalization, storage flow, and tests for supported metrics such as steps, heart rate, sleep duration, and calories burned.
Also separated direct database access from services by introducing repository files under repositories/wearable-device/ and updating related services to use them.

Test
Ran:

npx mocha test/recommendationService.test.js test/wearableDataService.test.js test/wearableDataController.test.js test/wearableDataValidator.test.js

Result: 16 passing

@Vedant1515
Copy link
Copy Markdown
Collaborator

Kindly fix the merge conflicts.

@TienNguyen3711 TienNguyen3711 added the enhancement New feature or request label Apr 2, 2026
@TienNguyen3711 TienNguyen3711 self-assigned this Apr 3, 2026
@TienNguyen3711
Copy link
Copy Markdown
Collaborator Author

Kindly fix the merge conflicts.

The BE12 and B13 branches contain features developed after Sprint 2. Therefore, additional conflicts may arise if they are not merged immediately. I will revise everything before the end of Sprint 2 to ensure there are no more conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants