Currently checkins can fail for one of two known reasons: 1 - Duplicate issue ids 2 - Anonymous borrower configuration issues In the first case we refer to the 'data problems' or 'data corrupted' section of the about page. All errors are on the 'System information' tab and this is what we should mention In the second case we refer to the data problems section, but information is in another section on the tab. Additionally, during checkin we issue an 'Error' but on the about page we call it a 'Warning' we should upgrade to error and specify what is broken
Created attachment 113246 [details] [review] Bug 26950: Make Anonymous patron warnings 'errors' and refer to the system information tab on about.pl Currently checkins can fail for one of two known reasons: 1 - Duplicate issue ids 2 - Anonymous borrower configuration issues In the first case we refer to the 'data problems' or 'data corrupted' section of the about page. All errors are on the 'System information' tab and this is what we should mention In the second case we refer to the data problems section, but information is in another section on the tab. Additionally, during checkin we issue an 'Error' but on the about page we call it a 'Warning' we should upgrade to error and specify what is broken Additionally this patch fixes the warning that should display while issuing to a patron if anonymous is not set and patron has selected privacy To test: 1 - Enable OPACPrivacy 2 - Set anonymousborrower to '0' 3 - Log in a a patron on OPAC and set your privacy to never 4 - Issue a book to that patron in the staff client 5 - Note there is no warning 6 - Return the book 7 - Note the circulation page displays an error and the checkin fails and refers to 'data problems' 8 - Apply patch 9 - Issue another book to patron 10 - Note warning on the circulation page 11 - Try to check in a book again 12 - Check the new message makes sense 13 - Click the link to 'about.pl' check that errors are displayed 14 - Check the logs 15 - Confirm updated error message makes sense
Testing it. > 2 - Set anonymousborrower to '0' Syspref is 'AnonymousPatron', I will change it on signoff
Created attachment 113300 [details] [review] Bug 26950: Make Anonymous patron warnings 'errors' and refer to the system information tab on about.pl Currently checkins can fail for one of two known reasons: 1 - Duplicate issue ids 2 - Anonymous borrower configuration issues In the first case we refer to the 'data problems' or 'data corrupted' section of the about page. All errors are on the 'System information' tab and this is what we should mention In the second case we refer to the data problems section, but information is in another section on the tab. Additionally, during checkin we issue an 'Error' but on the about page we call it a 'Warning' we should upgrade to error and specify what is broken Additionally this patch fixes the warning that should display while issuing to a patron if anonymous is not set and patron has selected privacy To test: 1 - Enable system preference OPACPrivacy 2 - Set system preference AnonymousPatron to '0' 3 - Log in a a patron on OPAC and set your privacy to never 4 - Issue a book to that patron in the staff client 5 - Note there is no warning 6 - Return the book 7 - Note the circulation page displays an error and the checkin fails and refers to 'data problems' 8 - Apply patch 9 - Issue another book to patron 10 - Note warning on the circulation page 11 - Try to check in a book again 12 - Check the new message makes sense 13 - Click the link to 'about.pl' check that errors are displayed 14 - Check the logs 15 - Confirm updated error message makes sense Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Created attachment 115028 [details] [review] Bug 26950: Make Anonymous patron warnings 'errors' and refer to the system information tab on about.pl Currently checkins can fail for one of two known reasons: 1 - Duplicate issue ids 2 - Anonymous borrower configuration issues In the first case we refer to the 'data problems' or 'data corrupted' section of the about page. All errors are on the 'System information' tab and this is what we should mention In the second case we refer to the data problems section, but information is in another section on the tab. Additionally, during checkin we issue an 'Error' but on the about page we call it a 'Warning' we should upgrade to error and specify what is broken Additionally this patch fixes the warning that should display while issuing to a patron if anonymous is not set and patron has selected privacy To test: 1 - Enable system preference OPACPrivacy 2 - Set system preference AnonymousPatron to '0' 3 - Log in a a patron on OPAC and set your privacy to never 4 - Issue a book to that patron in the staff client 5 - Note there is no warning 6 - Return the book 7 - Note the circulation page displays an error and the checkin fails and refers to 'data problems' 8 - Apply patch 9 - Issue another book to patron 10 - Note warning on the circulation page 11 - Try to check in a book again 12 - Check the new message makes sense 13 - Click the link to 'about.pl' check that errors are displayed 14 - Check the logs 15 - Confirm updated error message makes sense Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Trivial improvement... Passing QA
Pushed to master for 21.05, thanks to everybody involved!
Created attachment 115116 [details] [review] Bug 26950: Fix SIP/Message.t t/db_dependent/SIP/Message.t .. 2/9 # Failed test 'DBIx error on duplicate issue_id' # at t/db_dependent/SIP/Message.t line 643. # found warning: DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::mysql::st execute failed: Duplicate entry '1' for key 'PRIMARY' [for Statement "INSERT INTO `old_issues` ( `auto_renew`, `auto_renew_error`, `borrowernumber`, `branchcode`, `date_due`, `issue_id`, `issuedate`, `issuer_id`, `itemnumber`, `lastreneweddate`, `note`, `notedate`, `noteseen`, `onsite_checkout`, `renewals`, `returndate`, `timestamp`, `unseen_renewals`) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" with ParamValues: 0=0, 1=undef, 2=57, 3='m_HHGh', 4=undef, 5=1, 6=undef, 7=undef, 8=973, 9=undef, 10=undef, 11=undef, 12=undef, 13=0, 14=0, 15='2021-01-14 16:12:47', 16='2021-01-13 16:12:48', 17=0] at /kohadevbox/koha/Koha/Object.pm line 169 # found carped warning: The checkin for the following issue failed, Please go to the about page and check all messages on the 'System information' to see if there are configuration / data issues (Duplicate ID)$VAR1 = { # expected to find warning: (?^u:Duplicate entry) # expected to find warning: (?^u:data corrupted) # Looks like you failed 1 test of 35.
Last patch pushed to master.
Enhancement not pushed to 20.11.x