mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
feat(taskprocessing): generate OpenAPI specs, fix lint issue, fix tests
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
This commit is contained in:
parent
8c52b6c0fe
commit
e6adbd921e
6 changed files with 22 additions and 5 deletions
|
|
@ -31,7 +31,6 @@ use OCP\Files\NotPermittedException;
|
|||
use OCP\IL10N;
|
||||
use OCP\IRequest;
|
||||
use OCP\Lock\LockedException;
|
||||
use OCP\TaskProcessing\EShapeType;
|
||||
use OCP\TaskProcessing\Exception\Exception;
|
||||
use OCP\TaskProcessing\Exception\NotFoundException;
|
||||
use OCP\TaskProcessing\Exception\PreConditionNotMetException;
|
||||
|
|
|
|||
|
|
@ -145,7 +145,8 @@
|
|||
"progress",
|
||||
"scheduledAt",
|
||||
"startedAt",
|
||||
"endedAt"
|
||||
"endedAt",
|
||||
"cleanup"
|
||||
],
|
||||
"properties": {
|
||||
"id": {
|
||||
|
|
@ -216,6 +217,9 @@
|
|||
"type": "integer",
|
||||
"format": "int64",
|
||||
"nullable": true
|
||||
},
|
||||
"cleanup": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -639,7 +639,8 @@
|
|||
"progress",
|
||||
"scheduledAt",
|
||||
"startedAt",
|
||||
"endedAt"
|
||||
"endedAt",
|
||||
"cleanup"
|
||||
],
|
||||
"properties": {
|
||||
"id": {
|
||||
|
|
@ -710,6 +711,9 @@
|
|||
"type": "integer",
|
||||
"format": "int64",
|
||||
"nullable": true
|
||||
},
|
||||
"cleanup": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -639,7 +639,8 @@
|
|||
"progress",
|
||||
"scheduledAt",
|
||||
"startedAt",
|
||||
"endedAt"
|
||||
"endedAt",
|
||||
"cleanup"
|
||||
],
|
||||
"properties": {
|
||||
"id": {
|
||||
|
|
@ -710,6 +711,9 @@
|
|||
"type": "integer",
|
||||
"format": "int64",
|
||||
"nullable": true
|
||||
},
|
||||
"cleanup": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -677,7 +677,8 @@
|
|||
"progress",
|
||||
"scheduledAt",
|
||||
"startedAt",
|
||||
"endedAt"
|
||||
"endedAt",
|
||||
"cleanup"
|
||||
],
|
||||
"properties": {
|
||||
"id": {
|
||||
|
|
@ -748,6 +749,9 @@
|
|||
"type": "integer",
|
||||
"format": "int64",
|
||||
"nullable": true
|
||||
},
|
||||
"cleanup": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -973,6 +973,8 @@ class TaskProcessingTest extends \Test\TestCase {
|
|||
$bgJob = new RemoveOldTasksBackgroundJob(
|
||||
$timeFactory,
|
||||
$this->taskMapper,
|
||||
$this->manager,
|
||||
Server::get(IRootFolder::class),
|
||||
Server::get(LoggerInterface::class),
|
||||
Server::get(IAppDataFactory::class),
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue