[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
Tue Oct 24 23:37:26 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34611
Andrew Fuerste-Henry <andrewfh at dubcolib.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #157754|0 |1
is obsolete| |
--- Comment #9 from Andrew Fuerste-Henry <andrewfh at dubcolib.org> ---
Created attachment 157764
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=157764&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