It would be nice to create user interfaces to run some of TogMine's functions arbitrarily via the user interface, rather than relying on SSH/drush access and/or cronjobs. This would be especially useful for #1202298: Map and synchronize projects from Redmine to Toggl.com which is often a time-critical sync task/request.

It may also be useful to sync time entries via the GUI for specified users or time periods, such that last minute corrections on Toggl.com can be pulled into Redmine just before creating time-critical reports such as invoices.

Comments

Bevan’s picture

Status: Active » Needs work

I have added togmine_execute_command() which is intended to be used by user interfaces and drush commands to execute synchronisations. It uses togmine_synchronizer_base::synchronize() to actually run the commands. togmine_synchronizer_base::synchronize() accepts an optional $account parameter if only a specified account should be synchronised. togmine_execute_command() does not accept a parameter for $account yet but can easily be extended to do so. It should be an optional parameter.