gabor-boros / minutes

Sync worklogs between multiple time trackers, invoicing, and bookkeeping software.
https://gabor-boros.github.io/minutes/
MIT License
27 stars 2 forks source link

feat: add initial Toggl Track integration #13

Closed gabor-boros closed 2 years ago

gabor-boros commented 2 years ago

Description

This PR resolves #3 by implementing the initial Toggl Track integration.

Supporting information

The integration uses the reports API.

No precise start and end date filtering is accepted by Toggl Track report API that is used for this source, therefore only ISO 8601 (YYYY-MM-DD) date format can be used. In Go, it is translated to 2006-01-02 when setting date-format in config or flags.

Dependencies

N/A

Screenshots

N/A

Testing instructions

  1. Configure Toggl Track as a source
  2. Start a synchronization process

Other information

This PR includes some refactoring around splitting entries by tags -- entry splitting is now unified.

Checklist

codeclimate[bot] commented 2 years ago

Code Climate has analyzed commit c647b7f9 and detected 4 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 2
Duplication 2

The test coverage on the diff in this pull request is 89.1% (75% is the threshold).

This pull request will bring the total coverage in the repository to 78.8% (2.2% change).

View more on Code Climate.