JBAS-905 Reduce copy status checkout alerts
authorBill Erickson <berickxx@gmail.com>
Wed, 25 May 2016 14:16:54 +0000 (10:16 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Avoid copy status checkout alerts for these:

4    -- Missing
104  -- Evaluations
107  -- Display
112  -- Cleared
114  -- Workroom
115  -- For Opening
103  -- Story Time

Signed-off-by: Bill Erickson <berickxx@gmail.com>
KCLS/sql/schema/deploy/copy-status-alerts.sql [new file with mode: 0644]
KCLS/sql/schema/revert/copy-status-alerts.sql [new file with mode: 0644]
KCLS/sql/schema/sqitch.plan
KCLS/sql/schema/verify/copy-status-alerts.sql [new file with mode: 0644]

diff --git a/KCLS/sql/schema/deploy/copy-status-alerts.sql b/KCLS/sql/schema/deploy/copy-status-alerts.sql
new file mode 100644 (file)
index 0000000..6ddd649
--- /dev/null
@@ -0,0 +1,17 @@
+-- Deploy kcls-evergreen:copy-status-alerts to pg
+-- requires: purge-user-activity
+
+BEGIN;
+
+UPDATE config.copy_status SET checkout_ok = TRUE 
+WHERE id in (
+    4,   -- Missing
+    104, -- Evaluations
+    107, -- Display
+    112, -- Cleared
+    114, -- Workroom
+    115, -- For Opening
+    103  -- Story Time
+);
+
+COMMIT;
diff --git a/KCLS/sql/schema/revert/copy-status-alerts.sql b/KCLS/sql/schema/revert/copy-status-alerts.sql
new file mode 100644 (file)
index 0000000..89ac6d3
--- /dev/null
@@ -0,0 +1,17 @@
+-- Revert kcls-evergreen:copy-status-alerts from pg
+
+BEGIN;
+
+UPDATE config.copy_status SET checkout_ok = FALSE
+WHERE id in (
+    4,   -- Missing
+    104, -- Evaluations
+    107, -- Display
+    112, -- Cleared
+    114, -- Workroom
+    115, -- For Opening
+    103  -- Story Time
+);
+
+
+COMMIT;
index 8ba5423..fdb2e1b 100644 (file)
@@ -33,3 +33,4 @@ audit-table-maint [payflow-hosted-org-settings] 2016-07-22T14:49:08Z Bill Ericks
 payflow-hosted-static-silent-post-url [payflow-hosted-org-settings] 2016-08-17T13:14:48Z Bill Erickson <berickxx@gmail.com> # Fall back to PP silent post URL
 teacher-group [student-groups] 2016-09-16T17:43:41Z Bill Erickson <berickxx@gmail.com> # Teach ecard group and policy configs
 new-headings-report [po-print-li-count-and-date] 2016-01-28T22:23:12Z Bill Erickson <berickxx@gmail.com> # Support for reporting on new browse headings
+copy-status-alerts [purge-user-activity] 2016-05-25T14:10:24Z Bill Erickson <berickxx@gmail.com> # Reduce copy checkin alerts by status
diff --git a/KCLS/sql/schema/verify/copy-status-alerts.sql b/KCLS/sql/schema/verify/copy-status-alerts.sql
new file mode 100644 (file)
index 0000000..dc0421f
--- /dev/null
@@ -0,0 +1,7 @@
+-- Verify kcls-evergreen:copy-status-alerts on pg
+
+BEGIN;
+
+-- XXX Add verifications here.
+
+ROLLBACK;