From d3bf56fcd9351c4ef45b5527d929228b6663ecaf Mon Sep 17 00:00:00 2001 From: Rogan Hamby Date: Thu, 26 Apr 2018 15:44:32 -0400 Subject: [PATCH] notices reports added to mig-xml --- mig-xml/evergreen_staged_report.xml | 33 +++++++++++++++++++++++++++++++++ 1 files changed, 33 insertions(+), 0 deletions(-) diff --git a/mig-xml/evergreen_staged_report.xml b/mig-xml/evergreen_staged_report.xml index 6d8a6aa..5b1598e 100644 --- a/mig-xml/evergreen_staged_report.xml +++ b/mig-xml/evergreen_staged_report.xml @@ -1083,5 +1083,38 @@ id = ac_sc.owner GROUP BY 2,3 ORDER BY 2,3 + + + + notices_overview + notices + 0 + Overview of Notices for Migration + ID.Active.Owner.Name.Delay.Validator.Reactor + SELECT ed.id, ed.active, aou.shortname, LEFT(ed.name,25) || '...', ed.delay, ed.validator, ed.reactor + FROM action_trigger.event_definition ed + JOIN actor.org_unit aou ON aou.id = ed.owner + WHERE ed.owner IN (SELECT DISTINCT home_ou FROM actor_usr) + OR ed.owner IN (SELECT DISTINCT parent_ou FROM actor.org_unit WHERE id in (SELECT DISTINCT home_ou FROM actor_usr)); + + + + + notices_count + notices + 0 + Count of Notices Run with State + Count of Notices.State.ID.Owner.Name + SELECT COUNT(ate.id), ate.state, ed.id, aou.shortname, LEFT(ed.name,25) || '...' + FROM action_trigger.event_definition ed + JOIN actor.org_unit aou ON aou.id = ed.owner + JOIN action_trigger.event ate ON ate.event_def = ed.id + WHERE ed.owner IN (SELECT DISTINCT home_ou FROM actor_usr) + OR ed.owner IN (SELECT DISTINCT parent_ou FROM actor.org_unit WHERE id in (SELECT DISTINCT home_ou FROM actor_usr)) + GROUP BY 2,3,4; + + + + -- 1.7.2.5