[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
Fri Jan 24 07:41:21 CET 2020


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

--- Comment #59 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
(In reply to Agustín Moyano from comment #58)
> Created attachment 97842 [details] [review]
> Bug 23260: Inline code to anonymise_issue_history
> 
> This alternative patch reduces the complexity of the change by simply
> updateing the existing anonymise_issue_history method to include
> anonymisation of the items_last_borrowers table.
> 
> To test:
> 1) apply this patch and the previous one
> 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/batch_anonymise.pl --days 1
> SUCCESS => borrower number in items_last_borrower changed to AnonymousPatron
> id
> 8) repeat steps 5 and 6
> 9) set AnonymousPatron preference to 0
> 10) perl misc/cronjobs/batch_anonymise.pl --days 1
> SUCCESS => borrower number in items_last_borrower changed to null
> 11) prove t/db_dependent/Koha/Patrons.t
> 12) Sign off

Agustin,
If you agree with this patch, please test and sign off.
I could do the last step of QA.

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


More information about the Koha-bugs mailing list