Completed the move of dashboards from separate definition files (e.g. overview.xml) into data model files (8 dashboards were concerned on the model 2.x, 6 for the model 1.x)

SVN:trunk[2786]
This commit is contained in:
Romain Quetiez
2013-07-02 09:18:40 +00:00
parent 24ab96769a
commit f0a5a0a948
30 changed files with 706 additions and 735 deletions

View File

@@ -1956,7 +1956,67 @@
<menu id="Incident:Overview" xsi:type="DashboardMenuNode" _delta="define">
<rank>0</rank>
<parent>IncidentManagement</parent>
<definition_file>overview.xml</definition_file>
<definition>
<layout>DashboardLayoutTwoCols</layout>
<title>UI:IncidentMgmtMenuOverview:Title</title>
<cells>
<cell id="0">
<rank>0</rank>
<dashlets>
<dashlet id="1" xsi:type="DashletGroupByPie">
<title>UI-IncidentManagementOverview-IncidentByPriority-last-14-days</title>
<query>SELECT Incident WHERE DATE_SUB(NOW(), INTERVAL 14 DAY) &lt; start_date</query>
<group_by>priority</group_by>
<style>pie</style>
</dashlet>
</dashlets>
</cell>
<cell id="1">
<rank>1</rank>
<dashlets>
<dashlet id="2" xsi:type="DashletGroupByBars">
<title>UI-IncidentManagementOverview-Last-14-days</title>
<query>SELECT Incident WHERE DATE_SUB(NOW(), INTERVAL 14 DAY) &lt; start_date</query>
<group_by>start_date:day_of_month</group_by>
<style>bars</style>
</dashlet>
</dashlets>
</cell>
<cell id="2">
<rank>2</rank>
<dashlets>
<dashlet id="3" xsi:type="DashletGroupByTable">
<title>UI-IncidentManagementOverview-OpenIncidentByStatus</title>
<query>SELECT Incident WHERE status NOT IN ('closed','rejected')</query>
<group_by>status</group_by>
<style>table</style>
</dashlet>
</dashlets>
</cell>
<cell id="3">
<rank>3</rank>
<dashlets>
<dashlet id="4" xsi:type="DashletGroupByTable">
<title>UI-IncidentManagementOverview-OpenIncidentByAgent</title>
<query>SELECT Incident WHERE status NOT IN ('closed','rejected')</query>
<group_by>agent_id</group_by>
<style>table</style>
</dashlet>
</dashlets>
</cell>
<cell id="4">
<rank>4</rank>
<dashlets>
<dashlet id="5" xsi:type="DashletGroupByTable">
<title>UI-IncidentManagementOverview-OpenIncidentByCustomer</title>
<query>SELECT Incident WHERE status NOT IN ('closed','rejected')</query>
<group_by>org_id</group_by>
<style>table</style>
</dashlet>
</dashlets>
</cell>
</cells>
</definition>
</menu>
<menu id="NewIncident" xsi:type="NewObjectMenuNode" _delta="define">
<rank>1</rank>

View File

@@ -1,64 +0,0 @@
<?xml version="1.0"?>
<dashboard xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<layout>DashboardLayoutTwoCols</layout>
<title>UI:IncidentMgmtMenuOverview:Title</title>
<cells>
<cell id="0">
<rank>0</rank>
<dashlets>
<dashlet id="1" xsi:type="DashletGroupByPie">
<title>UI-IncidentManagementOverview-IncidentByPriority-last-14-days</title>
<query>SELECT Incident WHERE DATE_SUB(NOW(), INTERVAL 14 DAY) &lt; start_date</query>
<group_by>priority</group_by>
<style>pie</style>
</dashlet>
</dashlets>
</cell>
<cell id="1">
<rank>1</rank>
<dashlets>
<dashlet id="2" xsi:type="DashletGroupByBars">
<title>UI-IncidentManagementOverview-Last-14-days</title>
<query>SELECT Incident WHERE DATE_SUB(NOW(), INTERVAL 14 DAY) &lt; start_date</query>
<group_by>start_date:day_of_month</group_by>
<style>bars</style>
</dashlet>
</dashlets>
</cell>
<cell id="2">
<rank>2</rank>
<dashlets>
<dashlet id="3" xsi:type="DashletGroupByTable">
<title>UI-IncidentManagementOverview-OpenIncidentByStatus</title>
<query>SELECT Incident WHERE status NOT IN
('closed','rejected')</query>
<group_by>status</group_by>
<style>table</style>
</dashlet>
</dashlets>
</cell>
<cell id="3">
<rank>3</rank>
<dashlets>
<dashlet id="4" xsi:type="DashletGroupByTable">
<title>UI-IncidentManagementOverview-OpenIncidentByAgent</title>
<query>SELECT Incident WHERE status NOT IN
('closed','rejected')</query>
<group_by>agent_id</group_by>
<style>table</style>
</dashlet>
</dashlets>
</cell>
<cell id="4">
<rank>4</rank>
<dashlets>
<dashlet id="5" xsi:type="DashletGroupByTable">
<title>UI-IncidentManagementOverview-OpenIncidentByCustomer</title>
<query>SELECT Incident WHERE status NOT IN ('closed','rejected')</query>
<group_by>org_id</group_by>
<style>table</style>
</dashlet>
</dashlets>
</cell>
</cells>
</dashboard>