Skip to content

Periodically clean up _draft documents #3761

@PascalRepond

Description

@PascalRepond

How it works

When importing a document from a web source, a document is created with a field _draft:'true' to help the importing process. When the user doesn't go through with the import (cancelling or not saving the document), the draft is kept in the database with unvalidated data.

Examples: https://bib.rero.ch/global/documents/2199244, https://bib.rero.ch/global/documents/2226110

Improvement suggestion

Add a daily or weekly task that runs during the night and deletes all documents with _draft: true that are older than 24 hours.

Metadata

Metadata

Assignees

Labels

effort: minorSolved quicklyenhancementImprovement of an existing feature

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions