Bug 35277: Pseudonymize in a background job
authorNick Clemens <nick@bywatersolutions.com>
Tue, 7 Nov 2023 13:45:01 +0000 (13:45 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Tue, 16 Jan 2024 11:06:04 +0000 (12:06 +0100)
commit1ae58daca8cdfc638548b3e6803014a0261da1b4
tree38a25c5c19f14595ac32e5efc99044bbd0b83cd2
parentdeed5233b785be05f6e30ec9077b252edd2c6d35
Bug 35277: Pseudonymize in a background job

This patch adds a new background job for pseduonymization

To test:
 1 - Download the benchmarking script
 2 - Ensure your koha has bcrypt_settings in koha-conf.xml
     See bug 28911
 3 - perl perf_check_pseudo.pl
 4 - Note the slowdown after pseudonymization enabled
 5 - Apply patches, restart all
 6 - perl perf_check_pseudo.pl
 7 - Note improvement
 8 - Enable pseudonymization in sytem preferences
 9 - Perform some checkouts and returns
10 - Verify the background jobs complete successfully
11 - Verify the pseudonymized_transactions table is updated correctly

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Koha/BackgroundJob.pm
Koha/BackgroundJob/PseudonymizeStatistic.pm [new file with mode: 0644]
Koha/Statistic.pm
koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/pseudonymize_statistic.inc [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/admin/background_jobs.tt