jigarius / toggl2redmine

Import time from Toggl 2 Redmine.
GNU General Public License v3.0
26 stars 6 forks source link

Migration to Toggl API v9 #83

Open morvans opened 3 months ago

morvans commented 3 months ago

Summary

Toggl will soon deprecate their v9 API. See https://engineering.toggl.com/changes/2022/10/01/api-v8-deprecation/index.html

As far as I can tell, toggl2redmine only relies on the time entries fetching API endpoint, which is impacted by the introduced breaking changes. See https://engineering.toggl.com/docs/additional/v8_migration_guide/index.html#time-entries

Searching for "v8" in the code base only yields minimal occurences. See https://github.com/search?q=repo%3Ajigarius%2Ftoggl2redmine%20v8&type=code

To do

Replace calls to the deprecated API endpoint with the new v9 endpoint with the necessary adaptations.

jigarius commented 2 months ago

Hey! Thanks for reporting this issue. I'll try to take a look at this at the earliest. The calls should be toggl_service.rb.

That said, if you have the time, please feel free to create a pull request to help fix this issue.

kdborg commented 2 months ago

Hi @jigarius, I work at EW and I have a patch to push and Github is denying me access.

Here are the changes: update.patch

jigarius commented 2 months ago

@kdborg thanks for the patch. I'll look at it this weekend.