]> git.evergreen-ils.org Git - working/Evergreen.git/commit
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:18 +0000 (17:25 -0400)
commit1bd222955189359100d779ad236bc8b28ee483e3
treebfa64c207658761aa064aa98a428c645e3a49704
parent55ff53e23f49dd34970cfc0f4af2a522d4df541f
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]