LP#1856868: Remove deprecated open-ils.circ.renew.auto API
authorJason Stephenson <jason@sigio.com>
Wed, 18 Dec 2019 18:11:55 +0000 (13:11 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Wed, 26 May 2021 20:28:54 +0000 (16:28 -0400)
The deprecated open-ils.circ.renew.auto API was removed.  You will
want to use open-ils.circ.renew with the auto_renewal option set
to 1.  This mainly affects those who have written custom code using
the open-ils.circ backend.

This removal was broadcast in the release notes for Launchpad bug
1835085: https://bugs.launchpad.net/bugs/1835085.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Mike Risher <mrisher@catalyte.io>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>

Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm
docs/RELEASE_NOTES_NEXT/Circulation/renew-auto-removed.adoc [new file with mode: 0644]

index 7ac877b..7a6751d 100644 (file)
@@ -120,16 +120,6 @@ __PACKAGE__->register_method(
 );
 
 __PACKAGE__->register_method(
-    method    => "run_method",
-    api_name  => "open-ils.circ.renew.auto",
-    signature => q/@see open-ils.circ.renew/,
-    notes     => q/
-    The open-ils.circ.renew.auto API is deprecated.  Please use the
-    auto_renew => 1 option to open-ils.circ.renew, instead.
-    /
-);
-
-__PACKAGE__->register_method(
     method  => "run_method",
     api_name    => "open-ils.circ.renew",
     notes       => <<"    NOTES");
@@ -243,7 +233,6 @@ sub run_method {
     }
 
     $circulator->is_renewal(1) if $api =~ /renew/;
-    $circulator->auto_renewal(1) if $api =~ /renew.auto/;
     $circulator->is_checkin(1) if $api =~ /checkin/;
     $circulator->is_checkout(1) if $api =~ /checkout/;
     $circulator->override(1) if $api =~ /override/o;
diff --git a/docs/RELEASE_NOTES_NEXT/Circulation/renew-auto-removed.adoc b/docs/RELEASE_NOTES_NEXT/Circulation/renew-auto-removed.adoc
new file mode 100644 (file)
index 0000000..20b845c
--- /dev/null
@@ -0,0 +1,6 @@
+open-ils.circ.renew.auto Removed
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+The deprecated `open-ils.circ.renew.auto` API was removed.  You will
+want to use `open-ils.circ.renew` with the `auto_renewal` option set
+to 1.  This mainly affects those who have written custom code using
+the open-ils.circ backend.