Lp 1835035: Refactor auto_renewal back end code
authorJason Stephenson <jason@sigio.com>
Fri, 30 Aug 2019 15:37:24 +0000 (11:37 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Tue, 1 Oct 2019 21:25:39 +0000 (17:25 -0400)
commitf2788c10fff31808d262ec5d25e7e0f216ab7423
tree958299e84974029f2646fb4ced480aabe60b6927
parent666e3c5587f4847126c914cdb6aa8b91b8f37234
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>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
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]