]> git.koha-community.org Git - koha.git/commit
Bug 34611: Add pseudonymize routine to Koha::Statistics
authorNick Clemens <nick@bywatersolutions.com>
Fri, 25 Aug 2023 12:03:20 +0000 (12:03 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Tue, 19 Mar 2024 09:25:05 +0000 (10:25 +0100)
commit6fb75aa6fcbb61d952868333da08b459eecc0043
treea353fdd17cfb6821f55e8522098e660c291d90d9
parent058ca2fe39e9888314b4b1c449b5a363e2d3156d
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@dubcolib.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Koha/PseudonymizedTransaction.pm
Koha/Statistic.pm