Skip to content

Releases: ocariot/data-sync-agent

v1.5.1

27 Nov 12:35
Compare
Choose a tag to compare

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. The Socket is now used for verification;
  • Changed messages from publish on the FitbitDataRepository class bus;
  • Unused libraries removed.

v1.5.0

27 Nov 04:20
Compare
Choose a tag to compare

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 in DataSync 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

22 Nov 12:56
Compare
Choose a tag to compare

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

11 Nov 04:59
Compare
Choose a tag to compare

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

21 Oct 04:53
Compare
Choose a tag to compare

Bug Fixes:

  • Corrected methods for publishing Fitbit resources. It was previously: pubSavePhysicalActivity(), pubSaveSleep(), pubSaveWeight(), pubSaveLog() and now they are pubSyncPhysicalActivity(), pubSyncSleep(), pubSyncWeight(), pubSyncLog() ;
  • Fixed bug when last sync date exceeded one month;
  • Fixed RABBITMQ_CA_PATH variable name that was wrong.

v1.4.1

12 Oct 02:10
Compare
Choose a tag to compare

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

08 Oct 18:28
Compare
Choose a tag to compare

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

20 Sep 04:14
Compare
Choose a tag to compare

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

18 Sep 22:27
Compare
Choose a tag to compare

New Features:

  • Added FitbitLastSync event publishing when last_sync parameter is received as query string in end point POST /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

17 Sep 01:42
Compare
Choose a tag to compare

New Features:

  • Fitbit access token recovery