[Bps-public-commit] RT-Extension-PreviewInSearch branch, master, updated. 3091b700107a6bab66c1b04cf6ea5803a90ab5ea

Jim Brandt jbrandt at bestpractical.com
Thu Jan 2 15:22:51 EST 2014


The branch, master has been updated
       via  3091b700107a6bab66c1b04cf6ea5803a90ab5ea (commit)
       via  e0c11eed97a3b6b839796b3fa2d64c9b064b7147 (commit)
       via  6561b3ed50379ffcce8b1eaa5efc40a01d1f3cdb (commit)
      from  daf228515f157b698c1d8772da557c8347e2cf55 (commit)

Summary of changes:
 MANIFEST                            |  18 ++++++++++
 META.yml                            |   4 +--
 README                              |  53 +++++++++++++++++++++++++++--
 doc/images/preview-screenshot.png   | Bin 0 -> 151341 bytes
 inc/Module/Install/RTx.pm           |  11 ++++--
 lib/RT/Extension/PreviewInSearch.pm |  65 ++++++++++++++++++++++++++++++++++--
 6 files changed, 143 insertions(+), 8 deletions(-)
 create mode 100644 MANIFEST
 create mode 100644 doc/images/preview-screenshot.png

- Log -----------------------------------------------------------------
commit 6561b3ed50379ffcce8b1eaa5efc40a01d1f3cdb
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Thu Jan 2 15:14:52 2014 -0500

    Update Module::Install

diff --git a/inc/Module/Install/RTx.pm b/inc/Module/Install/RTx.pm
index c9fe996..ac04c79 100644
--- a/inc/Module/Install/RTx.pm
+++ b/inc/Module/Install/RTx.pm
@@ -8,7 +8,7 @@ no warnings 'once';
 
 use Module::Install::Base;
 use base 'Module::Install::Base';
-our $VERSION = '0.31';
+our $VERSION = '0.32';
 
 use FindBin;
 use File::Glob     ();
@@ -136,6 +136,7 @@ install ::
         $has_etc{acl}++;
     }
     if ( -e 'etc/initialdata' ) { $has_etc{initialdata}++; }
+    if ( -d 'etc/upgrade/' )    { $has_etc{upgrade}++; }
 
     $self->postamble("$postamble\n");
     unless ( $subdirs{'lib'} ) {
@@ -164,6 +165,12 @@ install ::
 .
         $self->postamble("initdb ::\n$initdb\n");
         $self->postamble("initialize-database ::\n$initdb\n");
+        if ($has_etc{upgrade}) {
+            print "To upgrade from a previous version of this extension, use 'make upgrade-database'\n";
+            my $upgradedb = qq|\t\$(NOECHO) \$(PERL) -Ilib -I"$local_lib_path" -I"$lib_path" -Minc::Module::Install -e"RTxInitDB(qw(upgrade \$(NAME) \$(VERSION)))"\n|;
+            $self->postamble("upgrade-database ::\n$upgradedb\n");
+            $self->postamble("upgradedb ::\n$upgradedb\n");
+        }
     }
 }
 
@@ -209,4 +216,4 @@ sub requires_rt {
 
 __END__
 
-#line 329
+#line 336

commit e0c11eed97a3b6b839796b3fa2d64c9b064b7147
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Thu Jan 2 15:17:04 2014 -0500

    Update and add docs

diff --git a/META.yml b/META.yml
index ff3f7a0..0b36813 100644
--- a/META.yml
+++ b/META.yml
@@ -9,7 +9,7 @@ configure_requires:
 distribution_type: module
 dynamic_config: 1
 generated_by: 'Module::Install version 1.06'
-license: perl
+license: gpl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
   version: 1.4
@@ -21,5 +21,5 @@ no_index:
 requires:
   perl: 5.10.0
 resources:
-  license: http://dev.perl.org/licenses/
+  license: http://opensource.org/licenses/gpl-license.php
 version: 0.01
diff --git a/README b/README
index 24044bc..5c8555a 100644
--- a/README
+++ b/README
@@ -3,9 +3,58 @@ NAME
     results page
 
 DESCRIPTION
+    RT's query builder (the ticket search interface) allows you to customize
+    all of the columns that show up in search results, so you can usually
+    customize a search and get all of the ticket metadata you need displayed
+    on the search results page (e.g., current status, queue, owner, etc.).
+    But sometimes you also need to see something from the history when you
+    are looking for a ticket. This extension allows you to view the history
+    of tickets at the bottom of the search results page without clicking
+    over to the full display ticket page.
+
+    With the extension installed, perform your search, then click anywhere
+    in the ticket row in the search results. The history for that ticket
+    will be displayed at the bottom of the page.
+
+RT VERSIONS
+    Works with RT 4.2.
+
+INSTALLATION
+    "perl Makefile.PL"
+    "make"
+    "make install"
+        May need root permissions
+
+    Edit your /opt/rt4/etc/RT_SiteConfig.pm
+        Add this line:
+
+            Set(@Plugins, qw(RT::Extension::PreviewInSearch));
+
+        or add "RT::Extension::PreviewInSearch" to your existing @Plugins
+        line. Starting with RT 4.2 you can also use:
+
+            Plugin( "RT::Extension::PreviewInSearch" );
+
+    Clear your mason cache
+            rm -rf /opt/rt4/var/mason_data/obj
+
+    Restart your webserver
+
 AUTHOR
     Ruslan Zakirov <ruz at bestpractical.com>
 
-LICENSE
-    Under the same terms as perl itself.
+BUGS
+    All bugs should be reported via email to
+    bug-RT-Extension-PreviewInSearch at rt.cpan.org
+    <mailto:bug-RT-Extension-PreviewInSearch at rt.cpan.org> or via the web at
+    rt.cpan.org
+    <http://rt.cpan.org/Public/Dist/Display.html?Name=RT-Extension-PreviewIn
+    Search>.
+
+LICENSE AND COPYRIGHT
+    This software is Copyright 2014 Best Practical Solutions, LLC.
+
+    This is free software, licensed under:
+
+      The GNU General Public License, Version 2, June 1991
 
diff --git a/doc/images/preview-screenshot.png b/doc/images/preview-screenshot.png
new file mode 100644
index 0000000..212f486
Binary files /dev/null and b/doc/images/preview-screenshot.png differ
diff --git a/lib/RT/Extension/PreviewInSearch.pm b/lib/RT/Extension/PreviewInSearch.pm
index 0e771d6..6e80bd1 100644
--- a/lib/RT/Extension/PreviewInSearch.pm
+++ b/lib/RT/Extension/PreviewInSearch.pm
@@ -12,15 +12,76 @@ RT::Extension::PreviewInSearch - preview tickets right from search results page
 
 =head1 DESCRIPTION
 
+RT's query builder (the ticket search interface) allows you to customize
+all of the columns that show up in search results, so you can usually
+customize a search and get all of the ticket metadata you need displayed
+on the search results page (e.g., current status, queue, owner, etc.). But
+sometimes you also need to see something from the history when you are looking
+for a ticket. This extension allows you to view the history of tickets at the
+bottom of the search results page without clicking over to the full display
+ticket page.
+
+With the extension installed, perform your search, then click anywhere in the
+ticket row in the search results. The history for that ticket will be displayed
+at the bottom of the page.
+
+=for html <p><img src="https://raw.github.com/bestpractical/rt-extension-previewinsearch/master/doc/images/preview-screenshot.png" alt="History Preview in Search Results" /></p>
+
+=head1 RT VERSIONS
+
+Works with RT 4.2.
+
+=head1 INSTALLATION
+
+=over
+
+=item C<perl Makefile.PL>
+
+=item C<make>
+
+=item C<make install>
+
+May need root permissions
+
+=item Edit your F</opt/rt4/etc/RT_SiteConfig.pm>
+
+Add this line:
+
+    Set(@Plugins, qw(RT::Extension::PreviewInSearch));
+
+or add C<RT::Extension::PreviewInSearch> to your existing C<@Plugins> line.
+Starting with RT 4.2 you can also use:
+
+    Plugin( "RT::Extension::PreviewInSearch" );
+
+=item Clear your mason cache
+
+    rm -rf /opt/rt4/var/mason_data/obj
+
+=item Restart your webserver
+
+=back
+
 =cut
 
 =head1 AUTHOR
 
 Ruslan Zakirov E<lt>ruz at bestpractical.comE<gt>
 
-=head1 LICENSE
+=head1 BUGS
+
+All bugs should be reported via email to
+L<bug-RT-Extension-PreviewInSearch at rt.cpan.org|mailto:bug-RT-Extension-PreviewInSearch at rt.cpan.org>
+or via the web at
+L<rt.cpan.org|http://rt.cpan.org/Public/Dist/Display.html?Name=RT-Extension-PreviewInSearch>.
+
+=head1 LICENSE AND COPYRIGHT
+
+This software is Copyright 2014 Best Practical Solutions, LLC.
+
+This is free software, licensed under:
 
-Under the same terms as perl itself.
+  The GNU General Public License, Version 2, June 1991
 
 =cut
 

commit 3091b700107a6bab66c1b04cf6ea5803a90ab5ea
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Thu Jan 2 15:17:58 2014 -0500

    Add MANIFEST

diff --git a/MANIFEST b/MANIFEST
new file mode 100644
index 0000000..40e3b92
--- /dev/null
+++ b/MANIFEST
@@ -0,0 +1,18 @@
+doc/images/preview-screenshot.png
+html/Callbacks/RT-Extension-PreviewInSearch/Search/Results.html/AfterResults
+html/Helpers/TicketPreview
+inc/Module/Install.pm
+inc/Module/Install/Base.pm
+inc/Module/Install/Can.pm
+inc/Module/Install/Fetch.pm
+inc/Module/Install/Makefile.pm
+inc/Module/Install/Metadata.pm
+inc/Module/Install/ReadmeFromPod.pm
+inc/Module/Install/RTx.pm
+inc/Module/Install/Win32.pm
+inc/Module/Install/WriteAll.pm
+lib/RT/Extension/PreviewInSearch.pm
+Makefile.PL
+MANIFEST			This list of files
+META.yml
+README

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



More information about the Bps-public-commit mailing list