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>
Fri, 4 Aug 2017 17:10:20 +0000 (13:10 -0400)
commit6a51d0da782698f3655dc809563a9d5b701762fb
treeaedc67ec50406dd15743be9ab0b57ed0867c406f
parent8699a4c9af8a46dd267e7e153ab2a71a3bba89a0
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