[Koha-bugs] [Bug 28632] patrons.t fragile on slow boxes
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Jul 16 11:24:46 CEST 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28632
--- Comment #8 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
We could have a t::lib::Compare module (we already have
t::lib::Dates::compare), with a t::lib::Compare::hashrefs subroutine.
It will deeply compare the 2 hashrefs passed in parameter. With a 'skip' option
we could pass a list of keys to skip.
As it does not answer your need, we may better have a 'datatype' option with a
list of key to treat as dates.
t::lib::Compare::hashrefs($hashref1, $hashref2, { datatype => { updated_on =>
'date' } } )
We loop over the keys and when we find 'updated_on' we compare using
t::lib::Compare::Dates.
What do you think?
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list