Configurable activity and project number (#4729)

* added configurable activity number
* added configurable project number
* fix deprecations
* added some tests for entity exporter
* better configuration of dropdown pattern for customer, project and activity
This commit is contained in:
Kevin Papst
2024-04-04 17:43:22 +02:00
committed by GitHub
parent c1f5d3def4
commit a636683dee
55 changed files with 920 additions and 136 deletions

View File

@@ -472,6 +472,7 @@ abstract class APIControllerBaseTest extends ControllerBaseTest
'billable' => 'bool',
'color' => '@string',
'customer' => 'int',
'number' => '@int',
'globalActivities' => 'bool',
'comment' => '@string',
];
@@ -485,6 +486,7 @@ abstract class APIControllerBaseTest extends ControllerBaseTest
'billable' => 'bool',
'color' => '@string',
'customer' => ['result' => 'object', 'type' => 'Customer'],
'number' => '@int',
'globalActivities' => 'bool',
'comment' => '@string',
];
@@ -497,6 +499,7 @@ abstract class APIControllerBaseTest extends ControllerBaseTest
'visible' => 'bool',
'billable' => 'bool',
'customer' => 'int',
'number' => '@int',
'color' => '@string',
'metaFields' => ['result' => 'array', 'type' => 'ProjectMeta'],
'parentTitle' => 'string',
@@ -515,6 +518,7 @@ abstract class APIControllerBaseTest extends ControllerBaseTest
'visible' => 'bool',
'billable' => 'bool',
'customer' => 'int',
'number' => '@int',
'color' => '@string',
'metaFields' => ['result' => 'array', 'type' => 'ProjectMeta'],
'parentTitle' => 'string',
@@ -538,6 +542,7 @@ abstract class APIControllerBaseTest extends ControllerBaseTest
'visible' => 'bool',
'billable' => 'bool',
'project' => '@int',
'number' => '@int',
'color' => '@string',
'comment' => '@string',
];
@@ -549,6 +554,7 @@ abstract class APIControllerBaseTest extends ControllerBaseTest
'visible' => 'bool',
'billable' => 'bool',
'project' => ['result' => 'object', 'type' => '@ProjectExpanded'],
'number' => '@int',
'color' => '@string',
'comment' => '@string',
];
@@ -561,6 +567,7 @@ abstract class APIControllerBaseTest extends ControllerBaseTest
'visible' => 'bool',
'billable' => 'bool',
'project' => '@int',
'number' => '@int',
'color' => '@string',
'metaFields' => ['result' => 'array', 'type' => 'ProjectMeta'],
'parentTitle' => '@string',
@@ -576,6 +583,7 @@ abstract class APIControllerBaseTest extends ControllerBaseTest
'visible' => 'bool',
'billable' => 'bool',
'project' => '@int',
'number' => '@int',
'color' => '@string',
'metaFields' => ['result' => 'array', 'type' => 'ProjectMeta'],
'parentTitle' => '@string',