Found the need to anonymize from Koha::Hold->cancel, and in this case using an iterator would be overkill as I already have the Koha::Old::Hold object in place as the return value from $self->_move_to_old...
Created attachment 129359 [details] [review] Bug 29868: Add Koha::Old::Hold->anonymize Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Created attachment 129360 [details] [review] Bug 29868: Add Koha::Old::Hold->anonymize This patch introduces a new method in Koha::Old::Hold. The method is fully covered by tests. To test: 1. Apply this patch 2. Run: $ kshell k$ prove t/db_dependent/Koha/Old/Hold.t => SUCCESS: Tests pass! 3. Sign off :-D Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Created attachment 129410 [details] [review] Bug 29868: Add Koha::Old::Hold->anonymize This patch introduces a new method in Koha::Old::Hold. The method is fully covered by tests. To test: 1. Apply this patch 2. Run: $ kshell k$ prove t/db_dependent/Koha/Old/Hold.t => SUCCESS: Tests pass! 3. Sign off :-D Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Resubmitted and made it dependent on bug 29869 as they both add tests to Koha/Hold.t and the count is always gonna be a problem :-D
Created attachment 129423 [details] [review] Bug 29868: Add Koha::Old::Hold->anonymize This patch introduces a new method in Koha::Old::Hold. The method is fully covered by tests. To test: 1. Apply this patch 2. Run: $ kshell k$ prove t/db_dependent/Koha/Old/Hold.t => SUCCESS: Tests pass! 3. Sign off :-D Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Created attachment 129541 [details] [review] Bug 29868: Add Koha::Old::Hold->anonymize This patch introduces a new method in Koha::Old::Hold. The method is fully covered by tests. To test: 1. Apply this patch 2. Run: $ kshell k$ prove t/db_dependent/Koha/Old/Hold.t => SUCCESS: Tests pass! 3. Sign off :-D Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Tests passing, QA script happy.. Code all makes sense. Passing QA
Pushed to master for 22.05, thanks to everybody involved [U+1F984]