https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28740

--- Comment #3 from Tomás Cohen Arazi (tcohen) <[email protected]> ---
Created attachment 203205
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=203205&action=edit
Bug 28740: Add option for cleaning up ILL requests

This adds two new parameters:
--illrequests-status
--illrequests-days (optional, defaults to 30 days)

These can be repeated to include specific statuses for cleanup. At least one
status must be specified.

To test:
0 - Apply patch
1 - Create several ILL requests with different statuses (e.g., CANCELLED,
REJECTED, COMPLETED, PENDING)
2 - Set some requests to be older than 30 days (update their updated timestamp)
3 - Run cleanup_database.pl with --illrequests-status CANCELLED
4 - CANCELLED requests older than 30 days are removed, others remain
5 - Run cleanup_database.pl with --illrequests-status CANCELLED
--illrequests-status REJECTED
6 - Both CANCELLED and REJECTED requests older than 30 days are removed, other
statuses remain
7 - Run cleanup_database.pl with --illrequests-days 5 --illrequests-status
PENDING
8 - PENDING requests older than 5 days are removed
9 - Verify dry-run mode (no --confirm) correctly counts records that would be
deleted without deleting them
10 - Run cleanup_database.pl with --illrequests-days without any
--illrequests-status
11 - Error message displayed requiring at least one status to be specified

Sponsored-by: Koha-Suomi Oy
Signed-off-by: John Doe <[email protected]>
edit: tidied the file (tcohen)

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to