Lp 1835035: Refactor auto_renewal back end code
authorJason Stephenson <jason@sigio.com>
Fri, 30 Aug 2019 15:37:24 +0000 (11:37 -0400)
committerJason Stephenson <jason@sigio.com>
Wed, 11 Sep 2019 14:47:43 +0000 (10:47 -0400)
commit7c32697d313ae75c0759ba343b6bc42088057f7d
tree7da2f70b92e6fdc3026aafb855ddce07aedad140
parent10e77568568baef8b09cab6bce6b799d8211be31
Lp 1835035: Refactor auto_renewal back end code

Refactor the auto_renewal feature so that it works like other renewal
types: opac_renewal, sip_renewal, etc.  This refactor prevents
desk_renewal from being set when auto_renewal is set.

Deprecate the newly added open-ils.circ.renew.auto API and ensure that
it still works as intended.  Add release note indicating the
deprecation of this API and intent to remove it in Evergreen 3.5.

Modify the AutoRenew action trigger reactor to use the plain
open-ils.circ.renew API with the auto_renewal option set to 1.

Add database update script to cleanup (i.e. set to FALSE) the
desk_renewal field on action.circulation and action.aged_circulation
tables where auto_renewal is TRUE.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor/Circ/AutoRenew.pm
Open-ILS/src/sql/Pg/upgrade/XXXX.data.auto_renewal-not-desk_renewal.sql [new file with mode: 0644]
docs/RELEASE_NOTES_NEXT/Circulation/auto-renew-api-deprecation.adoc [new file with mode: 0644]