Bug 32629 - Add option for deleting resolved ILL requests to cleanup_database.pl
Summary: Add option for deleting resolved ILL requests to cleanup_database.pl
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: ILL (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-13 14:32 UTC by Katrin Fischer
Modified: 2023-09-12 15:07 UTC (History)
4 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Katrin Fischer 2023-01-13 14:32:16 UTC
At the moment resolved (filled, cancelled) ILL requests cannot be deleted from the staff interface.

It would be nice if there was a way to delete them after X days.

The status could default to COMP for starters, but we might want to make it configurable in a next step.
Comment 1 Pedro Amorim 2023-06-27 11:18:04 UTC
The backend may let the deletion of the request in whatever status, can it not?
Regardless, this bug is about adding the possibility of cleaning up "resolved" requests from the database.
I think we need to first set what a "resolved" request is. Is it "COMP", "CANCREQ", both, something else?

Perhaps have a default definition of what a "resolved" request is, and add an argument to the script for custom "resolved" status conditions (this would also enable setting statuses that are backend specific, something we have no way of knowing from core alone).
Comment 2 Lisette Scheer 2023-09-12 15:07:34 UTC
Could config be based on a system preference where each library could put in the statuses they wanted cleaned up and the number of days to keep them before clearing them out?