Created attachment 114874 [details] [review] Bug 27342: Improve test for OPAC We don't need to build allowed_scripts_for_private_opac for staff
Created attachment 114875 [details] [review] Bug 27342: Remove dbh from C4::Auth We must not pass $dbh but retrieve it when needed instead
This looks like it will be tough to test although I think it's worth doing.
Nice little cleanup here.. clear to read and review.. are you continuing here Jonathan or is this a first bug where you intend to continue on other bugs?
Created attachment 132024 [details] [review] Bug 27342: Improve test for OPAC We don't need to build allowed_scripts_for_private_opac for staff
Created attachment 132025 [details] [review] Bug 27342: Remove dbh from C4::Auth We must not pass $dbh but retrieve it when needed instead
There is not much here but I think it can go anyway.
Created attachment 138948 [details] [review] Bug 27342: Improve test for OPAC We don't need to build allowed_scripts_for_private_opac for staff Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Created attachment 138949 [details] [review] Bug 27342: Remove dbh from C4::Auth We must not pass $dbh but retrieve it when needed instead Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Created attachment 138950 [details] [review] Bug 27342: (QA follow-up) Remove dbh from new tests
Nice bit of refactoring and all works as expected, no regressions. QA scripts happy and tests passing. Going for a straight QA on this simple pair of patches. Passing.
Created attachment 139196 [details] [review] Bug 27342: (QA follow-up) Fix test Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Pushed to master for 22.11. Nice work everyone, thanks!
This trivial change needs to be cleary documented and advertised on the release notes in case people are using checkpw (e.g. in plugins).
Created attachment 139294 [details] [review] Bug 27342: Fix C4::ILSDI::Services::AuthenticatePatron Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Enhancement will not be backported to 22.05.x unless requested
Backported to 22.05 as needed for Bug 34893