1.18.1 - fix description pattern in title (#3179)

* bump version
* add comment to customer/project/activity entity and collections api 
* improve title pattern usage
This commit is contained in:
Kevin Papst
2022-02-28 16:32:41 +01:00
committed by GitHub
parent 2ad7629c2a
commit b08c156552
17 changed files with 35 additions and 25 deletions

View File

@@ -376,6 +376,7 @@ abstract class APIControllerBaseTest extends ControllerBaseTest
'visible' => 'bool',
'color' => '@string',
'number' => '@string',
'comment' => '@string',
];
// if a list of customers is loaded
@@ -386,6 +387,7 @@ abstract class APIControllerBaseTest extends ControllerBaseTest
'visible' => 'boolean',
'color' => '@string',
'number' => '@string',
'comment' => '@string',
'metaFields' => ['result' => 'array', 'type' => 'CustomerMeta'],
'teams' => ['result' => 'array', 'type' => 'Team'],
'currency' => 'string', // since 1.10
@@ -427,6 +429,7 @@ abstract class APIControllerBaseTest extends ControllerBaseTest
'visible' => 'bool',
'color' => '@string',
'customer' => 'int',
'comment' => '@string',
];
// if a project is embedded in an expanded collection (here timesheet)
@@ -437,6 +440,7 @@ abstract class APIControllerBaseTest extends ControllerBaseTest
'visible' => 'bool',
'color' => '@string',
'customer' => ['result' => 'object', 'type' => 'Customer'],
'comment' => '@string',
];
// if a collection of projects is loaded
@@ -452,6 +456,7 @@ abstract class APIControllerBaseTest extends ControllerBaseTest
'start' => '@datetime',
'end' => '@datetime',
'teams' => ['result' => 'array', 'type' => 'Team'],
'comment' => '@string',
];
// if a project is explicitly loaded
@@ -483,6 +488,7 @@ abstract class APIControllerBaseTest extends ControllerBaseTest
'visible' => 'bool',
'project' => '@int',
'color' => '@string',
'comment' => '@string',
];
case 'ActivityExpanded':
@@ -492,6 +498,7 @@ abstract class APIControllerBaseTest extends ControllerBaseTest
'visible' => 'bool',
'project' => ['result' => 'object', 'type' => '@ProjectExpanded'],
'color' => '@string',
'comment' => '@string',
];
// collection of activities
@@ -504,6 +511,7 @@ abstract class APIControllerBaseTest extends ControllerBaseTest
'color' => '@string',
'metaFields' => ['result' => 'array', 'type' => 'ProjectMeta'],
'parentTitle' => '@string',
'comment' => '@string',
'teams' => ['result' => 'array', 'type' => 'Team'],
];