mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Use a minimum age of items to remove
In order to keep deleted items for a while, the periodic task can now use a duration to only remove items with a certain age. This can be used to ensure that a deleted item stays at least X days before it will be removed from the database. Refs: #347
This commit is contained in:
@ -1149,6 +1149,11 @@ paths:
|
||||
The request is empty, settings are used from the collective.
|
||||
security:
|
||||
- authTokenHeader: []
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/EmptyTrashSetting"
|
||||
responses:
|
||||
200:
|
||||
description: Ok
|
||||
@ -5267,7 +5272,7 @@ components:
|
||||
- language
|
||||
- integrationEnabled
|
||||
- classifier
|
||||
- emptyTrashSchedule
|
||||
- emptyTrash
|
||||
properties:
|
||||
language:
|
||||
type: string
|
||||
@ -5277,11 +5282,24 @@ components:
|
||||
description: |
|
||||
Whether the collective has the integration endpoint
|
||||
enabled.
|
||||
emptyTrashSchedule:
|
||||
type: string
|
||||
format: calevent
|
||||
classifier:
|
||||
$ref: "#/components/schemas/ClassifierSetting"
|
||||
emptyTrash:
|
||||
$ref: "#/components/schemas/EmptyTrashSetting"
|
||||
|
||||
EmptyTrashSetting:
|
||||
description: |
|
||||
Settings for clearing the trash of items.
|
||||
required:
|
||||
- schedule
|
||||
- minAge
|
||||
properties:
|
||||
schedule:
|
||||
type: string
|
||||
format: calevent
|
||||
minAge:
|
||||
type: integer
|
||||
format: duration
|
||||
|
||||
ClassifierSetting:
|
||||
description: |
|
||||
|
Reference in New Issue
Block a user