[Rt-commit] r4705 - in rtir/branches/1.9-EXPERIMENTAL: .

ruz at bestpractical.com ruz at bestpractical.com
Mon Mar 6 20:10:38 EST 2006


Author: ruz
Date: Mon Mar  6 20:10:38 2006
New Revision: 4705

Added:
   rtir/branches/1.9-EXPERIMENTAL/etc/upgrade/1.9.0/
   rtir/branches/1.9-EXPERIMENTAL/etc/upgrade/1.9.0/content
Modified:
   rtir/branches/1.9-EXPERIMENTAL/   (props changed)

Log:
 r886 at cubic-pc:  cubic | 2006-03-07 04:18:13 +0300
 * upgrade data:
 ** Resolution CF
 ** ACLs on CFs for DutyTeam
 ** Default RTIR home page portlets layout
 * TODO:
 ** CFs.Disable 2 -> 0


Added: rtir/branches/1.9-EXPERIMENTAL/etc/upgrade/1.9.0/content
==============================================================================
--- (empty file)
+++ rtir/branches/1.9-EXPERIMENTAL/etc/upgrade/1.9.0/content	Mon Mar  6 20:10:38 2006
@@ -0,0 +1,120 @@
+ at CustomFields = (
+    {
+        Name        => '_RTIR_Resolution',
+        Type        => 'SelectSingle',
+        Disabled    => 0,
+        Queue       => 'Incidents',
+        Values      => [
+            {   Name => 'successfully resolved',
+                SortOrder => 1,
+            },
+            {   Name => 'no resolution reached',
+                SortOrder => 2,
+            },
+            {   Name => 'no response from customer',
+                SortOrder => 3,
+            },
+            {   Name => 'no response from other ISP',
+                SortOrder => 4,
+            },
+        ],
+    },
+);
+
+# all CustomFields to update ACLs
+my @CustomFieldsList = (
+    {
+        Name        => '_RTIR_State',
+        Queue       => 'Incidents',
+    },
+    {
+        Name        => '_RTIR_Constituency',
+        Queue       => 'Incidents',
+    },
+    {
+        Name        => '_RTIR_State',
+        Queue       => 'Incident Reports',
+    },
+    {
+        Name        => '_RTIR_State',
+        Queue       => 'Investigations',
+    },
+    {
+        Name        => '_RTIR_State',
+        Queue       => 'Blocks',
+    },
+    {
+        Name        => '_RTIR_Description',
+        Queue       => 'Incidents',
+    },
+    {
+        Name        => '_RTIR_Resolution',
+        Queue       => 'Incidents',
+    },
+    {
+        Name        => '_RTIR_SLA',
+        Queue       => 'Incident Reports',
+    },
+    {
+        Name        => '_RTIR_Function',
+        Queue       => 'Incidents',
+    },
+    {
+        Name        => '_RTIR_Classification',
+        Queue       => 'Incidents',
+    },
+    {
+        Name        => '_RTIR_HowReported',
+        Queue       => 'Incident Reports',
+    },
+    {
+        Name        => '_RTIR_ReporterType',
+        Queue       => 'Incident Reports',
+    },
+    {
+        Name        => '_RTIR_IP',
+        Queue       => 'Blocks',
+    },
+    {
+        Name        => '_RTIR_Netmask',
+        Queue       => 'Blocks',
+    },
+    {
+        Name        => '_RTIR_Port',
+        Queue       => 'Blocks',
+    },
+    {
+        Name        => '_RTIR_WhereBlocked',
+        Queue       => 'Blocks',
+    },
+);
+for my $cf (@CustomFieldsList) {
+    push @ACL, (
+        { GroupId => 'DutyTeam',
+          GroupDomain => 'UserDefined',
+          CF => $cf->{Name},
+          Queue => $cf->{Queue},
+          Right => 'SeeCustomField', },
+        { GroupId => 'DutyTeam',
+          GroupDomain => 'UserDefined',
+          CF => $cf->{Name},
+          Queue => $cf->{Queue},
+          Right => 'ModifyCustomField', },
+    );
+}
+
+ at Attributes = ( {
+    Name => 'RTIR_HomepageSettings',
+    Description => 'RTIR homepage settings',
+    Content => {
+        body => [
+            { type => 'component',  name => '/RTIR/Elements/NewReports' },
+            { type => 'component',  name => '/RTIR/Elements/UserDueIncidents' },
+            { type => 'component',  name => '/RTIR/Elements/DueIncidents' },
+        ],
+        summary => [
+            { type => 'component', name => 'RefreshHomepage' },
+        ]
+    },
+} );
+


More information about the Rt-commit mailing list