[Koha-bugs] [Bug 34611] Add a script for pseudonymizing existing data

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Mar 18 17:13:39 CET 2024


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

--- Comment #30 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 163345
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=163345&action=edit
Bug 34611: Add pseudonymize routine to Koha::Statistics

This patch adds a new routine to pseudonymize a statistic and adjusts
C4::Stats to use this new routine.

Additionally Koha::PseudonymizedTransaction->new_from_statistic is updated to
check for
the existence of objects before using them (in the case of older stats where
things may have been deleted)

Tests are added and can be run using:
1. Run:
   $ ktd --shell
  k$ prove t/db_dependent/Koha/PseudonymizedTransaction.t \
           t/db_dependent/Koha/Pseudonymization.t
=> SUCCESS: New tests pass, old tests keep passing

Signed-off-by: AFHDubCoLib <andrewfh at dubcolib.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list