mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-15 19:52:15 +01:00
Added export endpoint and solidtime import; Enhanced toggl import
This commit is contained in:
committed by
Constantin Graf
parent
056a63e193
commit
ee77de04ef
@@ -14,6 +14,7 @@ use App\Exceptions\Api\TimeEntryStillRunningApiException;
|
||||
use App\Exceptions\Api\UserIsAlreadyMemberOfOrganizationApiException;
|
||||
use App\Exceptions\Api\UserIsAlreadyMemberOfProjectApiException;
|
||||
use App\Exceptions\Api\UserNotPlaceholderApiException;
|
||||
use App\Service\Export\ExportException;
|
||||
|
||||
return [
|
||||
'api' => [
|
||||
@@ -29,6 +30,7 @@ return [
|
||||
OnlyOwnerCanChangeOwnership::KEY => 'Only owner can change ownership',
|
||||
OrganizationNeedsAtLeastOneOwner::KEY => 'Organization needs at least one owner',
|
||||
ChangingRoleToPlaceholderIsNotAllowed::KEY => 'Changing role to placeholder is not allowed',
|
||||
ExportException::KEY => 'Export failed, please try again later or contact support',
|
||||
],
|
||||
'unknown_error_in_admin_panel' => 'An unknown error occurred. Please check the logs.',
|
||||
];
|
||||
|
||||
@@ -32,4 +32,8 @@ return [
|
||||
'<br><br>1. Go to Admin -> Settings -> Data export. <br>2. Under "Time entries" select the year you want to export and click on "Export time entries". <br><br>You can export all years one after another and import them one after another. '.
|
||||
' <br>Before you import make sure that the Timezone settings in Toggl are the same as in solidtime.',
|
||||
],
|
||||
'solidtime_importer' => [
|
||||
'name' => 'Solidtime',
|
||||
'description' => '1. Choose the organization you want to export in dropdown in the left top corner<br>2. Click on "Export" in the left navigation under "Admin" (You need to be Admin or Owner of the organization to see this)<br>3. Click on "Export". <br>4. Save the file and upload it here.',
|
||||
],
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user