Releases: ocariot/data-sync-agent
Releases · ocariot/data-sync-agent
v1.5.1
Bug Fixes:
- The routine that checks if Redis is available has been changed. In the previous implementation, the
nc
command is not present on the container docker node. TheSocket
is now used for verification; - Changed messages from publish on the
FitbitDataRepository
class bus; - Unused libraries removed.
v1.5.0
New Features:
- Fitbit data synchronization task improvements:
- Added task queue with lib Bull;
- Added routine to wait for availability of a Redis instance before initializing queue settings;
- Added
user_id
attribute inDataSync
model.
- When revoking access to a child's Fitbit data, the
pubFitbitRevoke()
event is published;
Bug Fixes:
- Fixed bug generated by accessing undefined attribute. The following message was returned:
{'code': 500, 'message': 'Cannot read property split of undefined'}
.
v1.4.4
Bug Fixes:
- Fixed bug that caused date and time of last fitbit data synchronization not to be published to bus;
- Fixed some methods that should return a Promise and were returning an object;
- Updated versions of project dependencies.
v1.4.3
Bug Fixes:
- Dockerfile removed script execution to generate self-signed certificates;
- Fixed bug in script to generate self-signed certificates;
- Log class adjustments to display all logging levels in production;
- Updated versions of project dependencies.
v1.4.2
Bug Fixes:
- Corrected methods for publishing Fitbit resources. It was previously:
pubSavePhysicalActivity()
,pubSaveSleep()
,pubSaveWeight()
,pubSaveLog()
and now they arepubSyncPhysicalActivity()
,pubSyncSleep()
,pubSyncWeight()
,pubSyncLog()
; - Fixed bug when last sync date exceeded one month;
- Fixed
RABBITMQ_CA_PATH
variable name that was wrong.
v1.4.1
Bug Fixes:
- Revocation of fitbit token that was removing all data, now only removes fitbit information;
- Renamed stage from sleep wake to awake;
v1.4.0
New Features:
- Removed support for init_sync and last_sync query strings from route
POST /users/:user_id/fitbit/auth
; - Added strategy to delay Fitbit access token expiration by 5 min;
- Added
distance
(meters) to physical activity model; - Added error handler when refreshing Fitbit access token.
Bug Fixes:
- Fixed bug that failed to successfully Fitbit refresh token;
- Fixed bug caused after Fitbit limit rate being hit.
v1.3.0
New Features:
- Added task for Fitbit data synchronization using crontab expression defined in environment variable
EXPRESSION_AUTO_SYNC
.
Bug Fixes:
- Fixed parsers that were wrong (weight, logs...);
- General adjustments to tests and added new.
v1.2.0
New Features:
- Added
FitbitLastSync
event publishing whenlast_sync
parameter is received as query string in end pointPOST /v1/users/{user_id}/fitbit/auth
; - Code Improvements;
- Added more tests.
Bug Fixes:
- Bug fix in
checkUserExists()
function that always returned true.
v1.1.0
New Features:
- Fitbit access token recovery