[Bug 36741] New: AUTO_RENEWALS_DGST should skip auto_too_soon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36741 Bug ID: 36741 Summary: AUTO_RENEWALS_DGST should skip auto_too_soon Change sponsored?: --- Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Notices Assignee: koha-bugs@lists.koha-community.org Reporter: dcook@prosentient.com.au QA Contact: testopia@bugs.koha-community.org I think it's debateable that auto_too_soon items should show up in the AUTO_RENEWALS_DGST at all, but I can think of reasons why they would be useful to show (you might want to show which items weren't renewed because it was too soon). But at the moment, the AUTO_RENEWALS_DGST doesn't account for them. It just prints out the title and barcode, which looks ridiculous. We need a default. Either to skip auto_too_soon in that loop, or to say that it's too soon for it to be renewed. I'm in favour of the former. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36741 --- Comment #1 from David Cook <dcook@prosentient.com.au> --- It seems that all we need is the following: [% FOREACH checkout IN checkouts %] [% NEXT IF (checkout.auto_renew_error == 'auto_too_soon') %] That's the default that makes sense to me. People could do something else if they wanted, but we *must* capture this case and do something with it. I'm getting (totally valid) complaints about this at the moment. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36741 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |dcook@prosentient.com.au |ity.org | --- Comment #2 from David Cook <dcook@prosentient.com.au> --- I don't think there's an easy way to update existing AUTO_RENEWALS_DGST notices, but we should update the mandatory sample notices at least. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36741 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36741 --- Comment #3 from David Cook <dcook@prosentient.com.au> --- Created attachment 167054 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=167054&action=edit Bug 36741: Skip auto_too_soon issues in auto renew digest This change adds a line to skip auto_too_soon issues/checkouts in the auto renew digest template. Since auto_too_soon do not trigger notifications and don't require any special action, let's skip them in the breakdown of checkouts in the AUTO_RENEWALS_DGST email. Test plan: 0. Apply the patch 1. reset_all (in koha-testing-docker) 2. Note the following line in the AUTO_RENEWALS_DGST template: [% NEXT IF (checkout.auto_renew_error == 'auto_too_soon') %] -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36741 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36741 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #167054|0 |1 is obsolete| | --- Comment #4 from David Nind <david@davidnind.com> --- Created attachment 167137 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=167137&action=edit Bug 36741: Skip auto_too_soon issues in auto renew digest This change adds a line to skip auto_too_soon issues/checkouts in the auto renew digest template. Since auto_too_soon do not trigger notifications and don't require any special action, let's skip them in the breakdown of checkouts in the AUTO_RENEWALS_DGST email. Test plan: 0. Apply the patch 1. reset_all (in koha-testing-docker) 2. Note the following line in the AUTO_RENEWALS_DGST template: [% NEXT IF (checkout.auto_renew_error == 'auto_too_soon') %] Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36741 Marie <marie.hedbom@musikverket.se> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marie.hedbom@musikverket.se -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36741 Lucas Gass <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lucas@bywatersolutions.com --- Comment #5 from Lucas Gass <lucas@bywatersolutions.com> --- If you use [% NEXT IF (checkout.auto_renew_error == 'auto_too_soon') %] will it not lead to an erroneous count here: "There were [% error %] items that were not renewed." ? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36741 --- Comment #6 from David Cook <dcook@prosentient.com.au> --- (In reply to Lucas Gass from comment #5)
If you use [% NEXT IF (checkout.auto_renew_error == 'auto_too_soon') %] will it not lead to an erroneous count here:
"There were [% error %] items that were not renewed."
?
Nope. auto_too_soon isn't added to the error count, so it would actually be more accurate. $renew_digest->{ $auto_renew->branchcode }->{ $auto_renew->borrowernumber }->{error}++ unless $success || $error eq 'auto_too_soon'; $renew_digest->{ $auto_renew->borrowernumber }->{error}++ unless $success || $error eq 'auto_too_soon'; -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36741 --- Comment #7 from Lucas Gass <lucas@bywatersolutions.com> --- (In reply to David Cook from comment #6)
(In reply to Lucas Gass from comment #5)
If you use [% NEXT IF (checkout.auto_renew_error == 'auto_too_soon') %] will it not lead to an erroneous count here:
"There were [% error %] items that were not renewed."
?
Nope. auto_too_soon isn't added to the error count, so it would actually be more accurate.
$renew_digest->{ $auto_renew->branchcode }->{ $auto_renew->borrowernumber }->{error}++ unless $success || $error eq 'auto_too_soon';
$renew_digest->{ $auto_renew->borrowernumber }->{error}++ unless $success || $error eq 'auto_too_soon';
Ah, great! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36741 Lucas Gass <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Patch complexity|--- |Trivial patch -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36741 Lucas Gass <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|testopia@bugs.koha-communit |lucas@bywatersolutions.com |y.org | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36741 Lucas Gass <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36741 Lucas Gass <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #167137|0 |1 is obsolete| | --- Comment #8 from Lucas Gass <lucas@bywatersolutions.com> --- Created attachment 168140 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=168140&action=edit Bug 36741: Skip auto_too_soon issues in auto renew digest This change adds a line to skip auto_too_soon issues/checkouts in the auto renew digest template. Since auto_too_soon do not trigger notifications and don't require any special action, let's skip them in the breakdown of checkouts in the AUTO_RENEWALS_DGST email. Test plan: 0. Apply the patch 1. reset_all (in koha-testing-docker) 2. Note the following line in the AUTO_RENEWALS_DGST template: [% NEXT IF (checkout.auto_renew_error == 'auto_too_soon') %] Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36741 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Failed QA --- Comment #9 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- I am wondering about this one. Won't this create an empty notice if all items are "auto_too_soon"? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36741 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Passed QA --- Comment #10 from David Cook <dcook@prosentient.com.au> --- (In reply to Katrin Fischer from comment #9)
I am wondering about this one. Won't this create an empty notice if all items are "auto_too_soon"?
No, because notices only go out if the "updated" flag in the $renew_digest hashref is set to 1, and if all items are "auto_too_soon", the "updated" flag won't be set to 1: $renew_digest->{ $auto_renew->branchcode }->{ $auto_renew->borrowernumber }->{updated} = 1 if $updated && (!$error || $error ne 'auto_too_soon'); $renew_digest->{ $auto_renew->borrowernumber }->{updated} = 1 if $updated && (!$error || $error ne 'auto_too_soon'); Resetting to Passed QA. -- I've had this running in production for about 2 months now, and so far so good. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36741 --- Comment #11 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Thx for the reply :) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36741 --- Comment #12 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- I was wondering if we should not "remove" those items from the loop so we can do without additional code in the sample notices. The notices get a bit harder to read/understand for librarians that way, but I think it gives flexibility for those who might want to include a note about these items. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36741 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Pushed to main Version(s)| |24.11.00 released in| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36741 --- Comment #13 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Pushed for 24.11! Well done everyone, thank you! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36741 Lucas Gass <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version(s)|24.11.00 |24.11.00,24.05.02 released in| | Status|Pushed to main |Pushed to stable --- Comment #14 from Lucas Gass <lucas@bywatersolutions.com> --- Backported to 24.05.x for upcoming 24.05.02 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36741 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the| |This fixes the release notes| |AUTO_RENEWALS_DGST notice | |so that items where it is | |too soon to renew aren't | |included in the notice to | |patrons when the automatic | |renewals cron job is run | |(based on the circulation | |rules settings). These | |items were previously | |included in the notice. | | | |NOTE: This notice is only | |updated for new | |installations. Existing | |installations should update | |this notice if they only | |want to show the actual | |items automatically | |renewed. CC| |david@davidnind.com --- Comment #15 from David Nind <david@davidnind.com> --- I'm not sure if I described this correctly in the release notes - please update to correct my mistakes. I've never really got my head around these settings for the circulation rules! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36741 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the|This fixes the |This fixes the default release notes|AUTO_RENEWALS_DGST notice |AUTO_RENEWALS_DGST notice |so that items where it is |so that items where it is |too soon to renew aren't |too soon to renew aren't |included in the notice to |included in the notice |patrons when the automatic |output to patrons when the |renewals cron job is run |automatic renewals cron job |(based on the circulation |is run (based on the |rules settings). These |circulation rules |items were previously |settings). These items were |included in the notice. |previously included in the | |notice. |NOTE: This notice is only | |updated for new |NOTE: This notice |installations. Existing |is only updated for new |installations should update |installations. Existing |this notice if they only |installations should update |want to show the actual |this notice if they only |items automatically |want to show the actual |renewed. |items automatically | |renewed. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36741 Fridolin Somers <fridolin.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version(s)|24.11.00,24.05.02 |24.11.00,24.05.02,23.11.07 released in| | CC| |fridolin.somers@biblibre.co | |m Status|Pushed to stable |Pushed to oldstable --- Comment #16 from Fridolin Somers <fridolin.somers@biblibre.com> --- Pushed to 23.11.x for 23.11.07 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36741 wainuiwitikapark@catalyst.net.nz changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wainuiwitikapark@catalyst.n | |et.nz --- Comment #17 from wainuiwitikapark@catalyst.net.nz --- Not backporting to 23.05.x unless requested -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36741 Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to oldstable |Needs documenting --- Comment #18 from Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz> --- Not backporting to 22.11 unless requested -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36741 Aude Charillon <aude.charillon@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aude.charillon@openfifth.co | |.uk Status|Needs documenting |RESOLVED Resolution|--- |FIXED --- Comment #19 from Aude Charillon <aude.charillon@openfifth.co.uk> --- No updates to the Koha Manual required. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org