[Koha-bugs] [Bug 23260] Anonymize (remove) patron data from items_last_borrower
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed May 5 16:25:32 CEST 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23260
Nick Clemens <nick at bywatersolutions.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #117983|0 |1
is obsolete| |
--- Comment #112 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 120531
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=120531&action=edit
Bug 23260: (follow-up) Add anonymise_last_borrowers method to Patrons.pm
This patch adds the method anonymise_last_borrowers in Patrons.pm.
To test:
1) apply this patch and the previous ones
2) perl installer/data/mysql/updatedatabase.pl
3) set StoreLastBorrower preference to Allow.
4) set AnonymousPatron preference to a valid patron id
5) Create a Check out followed by a Check in.
CHECK => a row should appear in items_last_borrower table with the borrower and
the item number.
6) In mysql, update created_on of items_last_borrower and returndate of
old_issues to two days earlier.
7) perl misc/cronjobs/anonymise_last_borrowers.pl
CHECK => borrower number in items_last_borrower is not anonymised yet.
8) Repeat step 5 and 6 but instead of two days earlier, set the new entry in
items_last_borrower to three days eralier.
9) set AnonymiseLastBorrower to 'Anonymise' and AnonymiseLastBorrowerDays to 2
days.
10) perl misc/cronjobs/anonymise_last_borrowers.pl
SUCCESS => borrower number in items_last_borrower changed to AnonymousPatron id
11) repeat step 8
12) set AnonymousPatron preference to 0
13) perl misc/cronjobs/anonymise_last_borrowers.pl
SUCCESS => borrower number in items_last_borrower changed to null
14) prove t/db_dependent/Koha/Patrons.t
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list