Skip to content

Commit 2708e8f

Browse files
committed
feat(taskprocessing): generate OpenAPI specs, fix lint issue, fix tests
Signed-off-by: Julien Veyssier <[email protected]>
1 parent 1ae13ff commit 2708e8f

File tree

6 files changed

+22
-5
lines changed

6 files changed

+22
-5
lines changed

core/Controller/TaskProcessingApiController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
use OCP\IL10N;
3232
use OCP\IRequest;
3333
use OCP\Lock\LockedException;
34-
use OCP\TaskProcessing\EShapeType;
3534
use OCP\TaskProcessing\Exception\Exception;
3635
use OCP\TaskProcessing\Exception\NotFoundException;
3736
use OCP\TaskProcessing\Exception\PreConditionNotMetException;

core/openapi-ex_app.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@
145145
"progress",
146146
"scheduledAt",
147147
"startedAt",
148-
"endedAt"
148+
"endedAt",
149+
"cleanup"
149150
],
150151
"properties": {
151152
"id": {
@@ -216,6 +217,9 @@
216217
"type": "integer",
217218
"format": "int64",
218219
"nullable": true
220+
},
221+
"cleanup": {
222+
"type": "boolean"
219223
}
220224
}
221225
}

core/openapi-full.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,8 @@
639639
"progress",
640640
"scheduledAt",
641641
"startedAt",
642-
"endedAt"
642+
"endedAt",
643+
"cleanup"
643644
],
644645
"properties": {
645646
"id": {
@@ -710,6 +711,9 @@
710711
"type": "integer",
711712
"format": "int64",
712713
"nullable": true
714+
},
715+
"cleanup": {
716+
"type": "boolean"
713717
}
714718
}
715719
},

core/openapi.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,8 @@
639639
"progress",
640640
"scheduledAt",
641641
"startedAt",
642-
"endedAt"
642+
"endedAt",
643+
"cleanup"
643644
],
644645
"properties": {
645646
"id": {
@@ -710,6 +711,9 @@
710711
"type": "integer",
711712
"format": "int64",
712713
"nullable": true
714+
},
715+
"cleanup": {
716+
"type": "boolean"
713717
}
714718
}
715719
},

openapi.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,8 @@
677677
"progress",
678678
"scheduledAt",
679679
"startedAt",
680-
"endedAt"
680+
"endedAt",
681+
"cleanup"
681682
],
682683
"properties": {
683684
"id": {
@@ -748,6 +749,9 @@
748749
"type": "integer",
749750
"format": "int64",
750751
"nullable": true
752+
},
753+
"cleanup": {
754+
"type": "boolean"
751755
}
752756
}
753757
},

tests/lib/TaskProcessing/TaskProcessingTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -973,6 +973,8 @@ public function testOldTasksShouldBeCleanedUp(): void {
973973
$bgJob = new RemoveOldTasksBackgroundJob(
974974
$timeFactory,
975975
$this->taskMapper,
976+
$this->manager,
977+
Server::get(IRootFolder::class),
976978
Server::get(LoggerInterface::class),
977979
Server::get(IAppDataFactory::class),
978980
);

0 commit comments

Comments
 (0)