LP#1708291: add API for safe deleting various serial records
authorJason Etheridge <jason@equinoxinitiative.org>
Mon, 22 May 2017 21:28:17 +0000 (17:28 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Tue, 29 Aug 2017 19:27:06 +0000 (15:27 -0400)
commitf64e2dc0dcf1cc0df3dc30c9e14c560f5b4ff61d
tree0e0ff1bed492a4f971fdaddf25dbcbac07c80295
parent9b31c8d1742e584583ff9005d161abc63c2c270b
LP#1708291: add API for safe deleting various serial records

This adds routines for safely deleting subscriptions,
distributions and streams.

open-ils.serial.subscription.safe_delete
open-ils.serial.distribution.safe_delete
open-ils.serial.stream.safe_delete
open-ils.serial.subscription.safe_delete.dry_run
open-ils.serial.distribution.safe_delete.dry_run
open-ils.serial.stream.safe_delete.dry_run

Won't delete if there are attached serial.item records with a status other
than Expected, or if there are any attached non-deleted serial.unit
records.

The dry_run variants behave exactly the same except they don't actually
delete anything.

Signed-off-by: Jason Etheridge <jason@equinoxinitiative.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/extras/ils_events.xml
Open-ILS/src/perlmods/lib/OpenILS/Application/Serial.pm