[Bps-public-commit] rt-extension-tags branch, master, updated. d57f0e0553fc6d90d241ec33e2c1e5e2c11725bb

Jim Brandt jbrandt at bestpractical.com
Wed Jul 13 09:52:29 EDT 2016


The branch, master has been updated
       via  d57f0e0553fc6d90d241ec33e2c1e5e2c11725bb (commit)
       via  6f9d01c175ed2224a49063a9b35c72aac8e6ec3d (commit)
       via  bf9e1e4a03c7918f7bab2b322c5648cee3aa2f45 (commit)
       via  35eb0cb05a70bb84a1a855e321cba65edc06588b (commit)
       via  04d67244a3c1bda7a807a4e03cfb2c27c4b4cfbf (commit)
      from  ee9d3061fa3e603f4276a5ae2c794b9e851a914d (commit)

Summary of changes:
 Changes                                |  8 +++++++-
 MANIFEST                               | 21 +++++++++++++++++++++
 META.yml                               |  2 +-
 README                                 |  9 ++++++++-
 lib/RT/Condition/CustomFieldChanged.pm | 22 ----------------------
 lib/RT/Extension/Tags.pm               | 12 ++++++++++--
 6 files changed, 47 insertions(+), 27 deletions(-)
 create mode 100644 MANIFEST
 delete mode 100644 lib/RT/Condition/CustomFieldChanged.pm

- Log -----------------------------------------------------------------
commit 04d67244a3c1bda7a807a4e03cfb2c27c4b4cfbf
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Mon Jul 11 15:55:43 2016 -0400

    Add initdb details to docs

diff --git a/README b/README
index ffcc6fd..8725bb2 100644
--- a/README
+++ b/README
@@ -13,7 +13,9 @@ DESCRIPTION
 
   Tag Custom Field
     The initdb step installs a Tag custom field by default along with the
-    required condition, action, and scrip.
+    required condition, action, and scrip. The custom field is global as
+    installed, but you can limit it to specific queues by editing the custom
+    field configuration.
 
     If you want to use this functionality with a different custom field,
     create the custom field, then create a new scrip. You can use the
@@ -33,6 +35,11 @@ INSTALLATION
     make install
         May need root permissions
 
+    make initdb
+        Only run this the first time you install the module. Creates a
+        global Tags custom field and adds the necessary scrip, action, and
+        condition.
+
     Edit your /opt/rt4/etc/RT_SiteConfig.pm
         If you are using RT 4.2 or greater, add this line:
 
diff --git a/lib/RT/Extension/Tags.pm b/lib/RT/Extension/Tags.pm
index 988871f..51d36bf 100644
--- a/lib/RT/Extension/Tags.pm
+++ b/lib/RT/Extension/Tags.pm
@@ -23,7 +23,9 @@ with that tag.
 =head2 Tag Custom Field
 
 The initdb step installs a Tag custom field by default along with
-the required condition, action, and scrip.
+the required condition, action, and scrip. The custom field is
+global as installed, but you can limit it to specific queues
+by editing the custom field configuration.
 
 If you want to use this functionality with a different custom field,
 create the custom field, then create a new scrip. You can use
@@ -50,6 +52,12 @@ Works with RT 4.0, 4.2, 4.4
 
 May need root permissions
 
+=item C<make initdb>
+
+Only run this the first time you install the module. Creates a global
+Tags custom field and adds the necessary scrip, action, and
+condition.
+
 =item Edit your F</opt/rt4/etc/RT_SiteConfig.pm>
 
 If you are using RT 4.2 or greater, add this line:

commit 35eb0cb05a70bb84a1a855e321cba65edc06588b
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Mon Jul 11 15:56:01 2016 -0400

    Update changes file for initial release

diff --git a/Changes b/Changes
index 3391e00..c9450a0 100644
--- a/Changes
+++ b/Changes
@@ -1,4 +1,4 @@
 Revision history for RT-Extension-Tags
 
-0.01 [Release Date]
+0.01 2016-07-11
  - Initial version

commit bf9e1e4a03c7918f7bab2b322c5648cee3aa2f45
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Mon Jul 11 15:56:59 2016 -0400

    Add MANIFEST

diff --git a/MANIFEST b/MANIFEST
new file mode 100644
index 0000000..710e62e
--- /dev/null
+++ b/MANIFEST
@@ -0,0 +1,22 @@
+Changes
+etc/initialdata
+inc/Module/Install.pm
+inc/Module/Install/Base.pm
+inc/Module/Install/Can.pm
+inc/Module/Install/Fetch.pm
+inc/Module/Install/Include.pm
+inc/Module/Install/Makefile.pm
+inc/Module/Install/Metadata.pm
+inc/Module/Install/ReadmeFromPod.pm
+inc/Module/Install/RTx.pm
+inc/Module/Install/RTx/Runtime.pm
+inc/Module/Install/Win32.pm
+inc/Module/Install/WriteAll.pm
+inc/YAML/Tiny.pm
+lib/RT/Action/AddNewCFValue.pm
+lib/RT/Condition/CustomFieldChanged.pm
+lib/RT/Extension/Tags.pm
+Makefile.PL
+MANIFEST			This list of files
+META.yml
+README

commit 6f9d01c175ed2224a49063a9b35c72aac8e6ec3d
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Wed Jul 13 09:42:19 2016 -0400

    Prep for 0.02 release

diff --git a/Changes b/Changes
index c9450a0..d0b0682 100644
--- a/Changes
+++ b/Changes
@@ -1,4 +1,10 @@
 Revision history for RT-Extension-Tags
 
+0.02 2016-07-13
+
+ - Contributions from Alex Vandiver to remove the custom condition,
+   remove an incorrect error check, refactor the tag search query
+   generation, and various other clean-ups.
+
 0.01 2016-07-11
  - Initial version
diff --git a/META.yml b/META.yml
index d39f459..df0bad6 100644
--- a/META.yml
+++ b/META.yml
@@ -23,7 +23,7 @@ requires:
 resources:
   license: http://opensource.org/licenses/gpl-license.php
   repository: https://github.com/bestpractical/rt-extension-tags
-version: '0.01'
+version: '0.02'
 x_module_install_rtx_version: '0.37'
 x_requires_rt: 4.0.0
 x_rt_too_new: 4.6.0
diff --git a/lib/RT/Extension/Tags.pm b/lib/RT/Extension/Tags.pm
index 51d36bf..fc7e847 100644
--- a/lib/RT/Extension/Tags.pm
+++ b/lib/RT/Extension/Tags.pm
@@ -2,7 +2,7 @@ use strict;
 use warnings;
 package RT::Extension::Tags;
 
-our $VERSION = '0.01';
+our $VERSION = '0.02';
 
 =head1 NAME
 

commit d57f0e0553fc6d90d241ec33e2c1e5e2c11725bb
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Wed Jul 13 09:44:29 2016 -0400

    Remove the now unused custom condition

diff --git a/MANIFEST b/MANIFEST
index 710e62e..f6875cd 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -14,7 +14,6 @@ inc/Module/Install/Win32.pm
 inc/Module/Install/WriteAll.pm
 inc/YAML/Tiny.pm
 lib/RT/Action/AddNewCFValue.pm
-lib/RT/Condition/CustomFieldChanged.pm
 lib/RT/Extension/Tags.pm
 Makefile.PL
 MANIFEST			This list of files
diff --git a/lib/RT/Condition/CustomFieldChanged.pm b/lib/RT/Condition/CustomFieldChanged.pm
deleted file mode 100644
index 1a317f2..0000000
--- a/lib/RT/Condition/CustomFieldChanged.pm
+++ /dev/null
@@ -1,22 +0,0 @@
-package RT::Condition::CustomFieldChanged;
-
-use strict;
-use warnings;
-use base qw(RT::Condition);
-
-=head2 Custom Field Changed
-
-Is a custom field being changed with this transaction?
-
-=cut
-
-sub IsApplicable {
-    my $self = shift;
-
-    # Should be installed with ApplicableTransTypes of Create,CustomField,
-    # so return true for those types.
-
-    return 1;
-}
-
-1;

-----------------------------------------------------------------------


More information about the Bps-public-commit mailing list