Project

General

Profile

Actions

Support #1426

open

Bug 32440 - Allow selective deletion of statistics entries based on type by cleanup_database

Added by Lari Taskula 7 days ago. Updated 7 days ago.

Status:
New
Priority:
Normal
Assignee:
Start date:
15.10.2024
Due date:
% Done:

0%

Estimated time:
Spent time:
Koha Bugzilla Bug#:
Actions #1

Updated by Lari Taskula 7 days ago ยท Edited

Before we can start automatically purging statistics, we must make sure to not lose any important statistical data.

Currently pseudonymizing statistics only targets statistics.type of issue, renew, return and onsite_checkout, while there are other types of statistics like item_found, item_lost, localuse, writeoff and payment. These other types would currently not be migrated into pseudonymized_transactions (See Bug 32438, and Bug 34628) and would automatically be deleted by cleanup_database as there is currently no way of selecting which types to delete or keep.

Also, Koha::Statistics->pseudonymize() currently demands statistics.borrowernumber to exist. This means statistics rows with no borrowernumber are not converted into pseudonymized transactions yet.

Actions

Also available in: Atom PDF