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:23:02 +0000 (17:23 -0400)
commita69ac979dbf9b2dcdde579aea0b6ab72ccdc5f5d
tree787c4c5820cbea9e0d2ec5e406b4b4f0e8f06a22
parent2db572dcc89f201e9384b781e630b05e80405702
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]