[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
Wed Oct 25 21:11:05 CEST 2023


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

--- Comment #15 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 157870
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=157870&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>

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


More information about the Koha-bugs mailing list