[Bps-public-commit] rt-extension-sla-utils branch, master, updated. 923f00d5e2e3d301e3134abd1df5edd3424b1da1
Jim Brandt
jbrandt at bestpractical.com
Mon Apr 10 11:18:57 EDT 2017
The branch, master has been updated
via 923f00d5e2e3d301e3134abd1df5edd3424b1da1 (commit)
via 4bdce9535fbc2f38da306239ced8621437309cc0 (commit)
via 36a74a44845fb51a5f4cf45023aa9df15cd90c39 (commit)
from ca65ff17f148669ed8b54dfe51aec5ff4141fbc9 (commit)
Summary of changes:
.gitignore | 1 +
META.yml | 29 +++++++++++++++++++++++++++++
README | 10 +++++-----
lib/RT/Condition/SLACustomFieldChanged.pm | 7 -------
4 files changed, 35 insertions(+), 12 deletions(-)
create mode 100644 META.yml
- Log -----------------------------------------------------------------
commit 36a74a44845fb51a5f4cf45023aa9df15cd90c39
Author: Jim Brandt <jbrandt at bestpractical.com>
Date: Mon Apr 10 11:16:56 2017 -0400
Remove debug statements
diff --git a/lib/RT/Condition/SLACustomFieldChanged.pm b/lib/RT/Condition/SLACustomFieldChanged.pm
index c7856e6..636bf85 100644
--- a/lib/RT/Condition/SLACustomFieldChanged.pm
+++ b/lib/RT/Condition/SLACustomFieldChanged.pm
@@ -70,8 +70,6 @@ Then whenever this field is changed, this condition will be met.
=cut
-use Data::Dumper;
-
sub IsApplicable {
my $self = shift;
my $txn = $self->TransactionObj;
@@ -81,11 +79,6 @@ sub IsApplicable {
my $cf = RT::CustomField->new(RT->SystemUser);
my ($ret, $msg) = $cf->Load($txn->Field);
-
- RT::Logger->debug(Dumper $txn);
- RT::Logger->debug($ret);
- RT::Logger->debug($msg);
-
RT::Logger->error("Unable to load CF for id: "
. $txn->Field . " Error: $msg" ) unless $ret;
commit 4bdce9535fbc2f38da306239ced8621437309cc0
Author: Jim Brandt <jbrandt at bestpractical.com>
Date: Mon Apr 10 11:17:52 2017 -0400
Don't track the generated Test.pm file
diff --git a/.gitignore b/.gitignore
index adf6ee0..6aede3d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,3 +12,4 @@ pod2htm*.tmp
/MYMETA.*
/t/tmp
/xt/tmp
+Test.pm
commit 923f00d5e2e3d301e3134abd1df5edd3424b1da1
Author: Jim Brandt <jbrandt at bestpractical.com>
Date: Mon Apr 10 11:18:47 2017 -0400
Update META and README
diff --git a/META.yml b/META.yml
new file mode 100644
index 0000000..23fe85d
--- /dev/null
+++ b/META.yml
@@ -0,0 +1,29 @@
+---
+abstract: 'RT-Extension-SLA-Utils Extension'
+author:
+ - 'Best Practical Solutions, LLC <modules at bestpractical.com>'
+build_requires:
+ ExtUtils::MakeMaker: 6.59
+configure_requires:
+ ExtUtils::MakeMaker: 6.59
+distribution_type: module
+dynamic_config: 1
+generated_by: 'Module::Install version 1.17'
+license: gplv2
+meta-spec:
+ url: http://module-build.sourceforge.net/META-spec-v1.4.html
+ version: 1.4
+name: RT-Extension-SLA-Utils
+no_index:
+ directory:
+ - etc
+ - inc
+ - xt
+requires:
+ perl: 5.8.3
+resources:
+ license: http://opensource.org/licenses/gpl-license.php
+ repository: https://github.com/bestpractical/rt-extension-sla-utils
+version: '0.01'
+x_module_install_rtx_version: '0.38'
+x_requires_rt: 4.0.0
diff --git a/README b/README
index 000a445..fae2d87 100644
--- a/README
+++ b/README
@@ -53,13 +53,13 @@ CONFIGURATION
configuration like:
Set(%SLA_CF_Mapping,
- '48-hour' => 'Low',
- '24-hour' => 'Medium',
- '8-hour' => 'High',
+ 'Low' => '48-hour',
+ 'Medium' => '24-hour',
+ 'High' => '8-hour',
);
- where the first value is a configured SLA and the second is a valid
- value for the configured custom field.
+ where the first value is a configured custom field value, and the second
+ is the desired corresponding SLA.
Setup rt-crontool to Run Overdue Checks
To have the SLA Overdue field set automatically, you can have
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list