feat(taskprocessing): generate OpenAPI specs, fix lint issue, fix tests

Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
pull/54272/head
Julien Veyssier 2025-08-06 12:35:50 +07:00
parent 8c52b6c0fe
commit e6adbd921e
No known key found for this signature in database
GPG Key ID: 4141FEE162030638
6 changed files with 22 additions and 5 deletions

@ -31,7 +31,6 @@ use OCP\Files\NotPermittedException;
use OCP\IL10N; use OCP\IL10N;
use OCP\IRequest; use OCP\IRequest;
use OCP\Lock\LockedException; use OCP\Lock\LockedException;
use OCP\TaskProcessing\EShapeType;
use OCP\TaskProcessing\Exception\Exception; use OCP\TaskProcessing\Exception\Exception;
use OCP\TaskProcessing\Exception\NotFoundException; use OCP\TaskProcessing\Exception\NotFoundException;
use OCP\TaskProcessing\Exception\PreConditionNotMetException; use OCP\TaskProcessing\Exception\PreConditionNotMetException;

@ -145,7 +145,8 @@
"progress", "progress",
"scheduledAt", "scheduledAt",
"startedAt", "startedAt",
"endedAt" "endedAt",
"cleanup"
], ],
"properties": { "properties": {
"id": { "id": {
@ -216,6 +217,9 @@
"type": "integer", "type": "integer",
"format": "int64", "format": "int64",
"nullable": true "nullable": true
},
"cleanup": {
"type": "boolean"
} }
} }
} }

@ -639,7 +639,8 @@
"progress", "progress",
"scheduledAt", "scheduledAt",
"startedAt", "startedAt",
"endedAt" "endedAt",
"cleanup"
], ],
"properties": { "properties": {
"id": { "id": {
@ -710,6 +711,9 @@
"type": "integer", "type": "integer",
"format": "int64", "format": "int64",
"nullable": true "nullable": true
},
"cleanup": {
"type": "boolean"
} }
} }
}, },

@ -639,7 +639,8 @@
"progress", "progress",
"scheduledAt", "scheduledAt",
"startedAt", "startedAt",
"endedAt" "endedAt",
"cleanup"
], ],
"properties": { "properties": {
"id": { "id": {
@ -710,6 +711,9 @@
"type": "integer", "type": "integer",
"format": "int64", "format": "int64",
"nullable": true "nullable": true
},
"cleanup": {
"type": "boolean"
} }
} }
}, },

@ -677,7 +677,8 @@
"progress", "progress",
"scheduledAt", "scheduledAt",
"startedAt", "startedAt",
"endedAt" "endedAt",
"cleanup"
], ],
"properties": { "properties": {
"id": { "id": {
@ -748,6 +749,9 @@
"type": "integer", "type": "integer",
"format": "int64", "format": "int64",
"nullable": true "nullable": true
},
"cleanup": {
"type": "boolean"
} }
} }
}, },

@ -973,6 +973,8 @@ class TaskProcessingTest extends \Test\TestCase {
$bgJob = new RemoveOldTasksBackgroundJob( $bgJob = new RemoveOldTasksBackgroundJob(
$timeFactory, $timeFactory,
$this->taskMapper, $this->taskMapper,
$this->manager,
Server::get(IRootFolder::class),
Server::get(LoggerInterface::class), Server::get(LoggerInterface::class),
Server::get(IAppDataFactory::class), Server::get(IAppDataFactory::class),
); );