Autorenewal sets both desk_renewal and auto_renewal to TRUE for new circ

Bug #1835085 reported by Michele Morgan
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Medium
Unassigned
3.2
Fix Released
Medium
Unassigned
3.3
Fix Released
Medium
Unassigned

Bug Description

Evergreen 3.2.4

When a circulation is renewed by the auto renewal action trigger, the new row created in action.circulation has desk_renewal and auto_renewal both set to TRUE.

Only the auto_renewal field should be set to TRUE, desk_renewal should be FALSE

Changed in evergreen:
status: New → Confirmed
Revision history for this message
John Amundson (jamundson) wrote :

Related bug: bug #1839002

Revision history for this message
Jason Stephenson (jstephenson) wrote :

I see two obvious ways to fix this:

One is to add auto_renewal as a field in the Circ::Circulater::Circulator class and pass auto_renewal => 1 as an argument when doing the renewals via the auto-renewal trigger. Then, modifying the Circulator object's constructor to not set desk_renewal if auto_renewal is true.

The second way is to modify the Circulator's build_checkout_object method to set desk_renewal to false when it detects that an auto-renewal is being done.

The second method touches less code, but the first seems to fit in better with the way that Evergreen already processes renewals, and it looks like the second method will need to be done in both cases if the open-ils.circ.renew.auto method is retained because someone may call it in custom code without the auto_renewal argument.

Changed in evergreen:
milestone: none → 3.4-beta1
assignee: nobody → Jason Stephenson (jstephenson)
Changed in evergreen:
status: Confirmed → In Progress
Changed in evergreen:
importance: Undecided → Medium
Revision history for this message
Jason Stephenson (jstephenson) wrote :

Working branch: user/dyrcona/lp1835085-auto_renewal-not-desk_renewal

https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/dyrcona/lp1835085-auto_renewal-not-desk_renewal

We've tested this rather thoroughly on our training server and plan to implement it next month in production when we update to Evergreen 3.2.8.

tags: added: pullrequest
Changed in evergreen:
status: In Progress → Confirmed
assignee: Jason Stephenson (jstephenson) → nobody
Galen Charlton (gmc)
Changed in evergreen:
milestone: 3.4-beta1 → 3.4-beta2
Revision history for this message
Jason Stephenson (jstephenson) wrote :

I forgot to mention that this branch requires the fix for bug 1835577 installed to work properly. The web client fixes specifically need the IDL changes in the top commit on that branch.

Revision history for this message
Galen Charlton (gmc) wrote :

Pushed to master, rel_3_3, and rel_3_2. Thanks, Jason!

Changed in evergreen:
status: Confirmed → Fix Committed
Galen Charlton (gmc)
Changed in evergreen:
status: Fix Committed → Fix Released
milestone: 3.4-beta2 → 3.4-rc
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.