RT-Extention-QueueDeactivatedScrips

Does anyone use this extension and have it working in a production 4.0.2
instance of RT?

I have it installed, but when selecting a queue and then selecting
’scrips > select’ from the menu, I get “could not find component for
path ‘/Admin/Elements/QueueTabs’”

Looking through the doc, the wiki and google, produced nothing.

Thanks,
Randy

Hi,

File that couldn’t be found was deleted between RT3 and RT4. What
means that extension has not been ported over RT4.On Thu, Oct 6, 2011 at 4:45 PM, Randy Black Randy.Black@buckle.com wrote:

Does anyone use this extension and have it working in a production 4.0.2
instance of RT?

I have it installed, but when selecting a queue and then selecting ‘scrips >
select’ from the menu, I get “could not find component for path
‘/Admin/Elements/QueueTabs’”

Looking through the doc, the wiki and google, produced nothing.

Thanks,

Randy


RT Training Sessions (http://bestpractical.com/services/training.html)

  • San Francisco, CA, USA — October 18 & 19, 2011
  • Washington DC, USA — October 31 & November 1, 2011
  • Barcelona, Spain — November 28 & 29, 2011

Best regards, Ruslan.

Hi,

Know of anyone working on the port?

I don’t know. It’s on github and there is no forks of the project.
Torsten packaged the extension, probably newer version depends on
patches people would send and/or on his upgrade schedule.

-----Original Message-----
From: ruslan.zakirov@gmail.com [mailto:ruslan.zakirov@gmail.com] On Behalf Of Ruslan Zakirov
Sent: Thursday, October 06, 2011 12:24 PM
To: Randy Black
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] RT-Extention-QueueDeactivatedScrips

Hi,

File that couldn’t be found was deleted between RT3 and RT4. What
means that extension has not been ported over RT4.

Does anyone use this extension and have it working in a production 4.0.2
instance of RT?

I have it installed, but when selecting a queue and then selecting ‘scrips >
select’ from the menu, I get “could not find component for path
‘/Admin/Elements/QueueTabs’”

Looking through the doc, the wiki and google, produced nothing.

Thanks,

Randy


RT Training Sessions (http://bestpractical.com/services/training.html)

  • San Francisco, CA, USA — October 18 & 19, 2011
  • Washington DC, USA — October 31 & November 1, 2011
  • Barcelona, Spain — November 28 & 29, 2011


Best regards, Ruslan.

Best regards, Ruslan.

Hi guys,

if it’s still interesting, I have done the patch for rt 4.0.2 and it works
fine for me. Only three files need to be modified two html and one lib. If
you want I can send you diffs or the files for rt4.0.2. I dont know if it
will work with 4.0.4.

BR, Ivan2011/10/6 Ruslan Zakirov ruz@bestpractical.com

Hi,

On Thu, Oct 6, 2011 at 7:25 PM, Randy Black Randy.Black@buckle.com wrote:

Know of anyone working on the port?

I don’t know. It’s on github and there is no forks of the project.
Torsten packaged the extension, probably newer version depends on
patches people would send and/or on his upgrade schedule.

-----Original Message-----
From: ruslan.zakirov@gmail.com [mailto:ruslan.zakirov@gmail.com] On
Behalf Of Ruslan Zakirov
Sent: Thursday, October 06, 2011 12:24 PM
To: Randy Black
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] RT-Extention-QueueDeactivatedScrips

Hi,

File that couldn’t be found was deleted between RT3 and RT4. What
means that extension has not been ported over RT4.

On Thu, Oct 6, 2011 at 4:45 PM, Randy Black Randy.Black@buckle.com wrote:

Does anyone use this extension and have it working in a production 4.0.2
instance of RT?

I have it installed, but when selecting a queue and then selecting
‘scrips >
select’ from the menu, I get “could not find component for path
‘/Admin/Elements/QueueTabs’”

Looking through the doc, the wiki and google, produced nothing.

Thanks,

Randy


RT Training Sessions (http://bestpractical.com/services/training.html)

  • San Francisco, CA, USA — October 18 & 19, 2011
  • Washington DC, USA — October 31 & November 1, 2011
  • Barcelona, Spain — November 28 & 29, 2011


Best regards, Ruslan.


Best regards, Ruslan.

RT Training Sessions (http://bestpractical.com/services/training.html)

  • San Francisco, CA, USA October 18 & 19, 2011
  • Washington DC, USA October 31 & November 1, 2011
  • Barcelona, Spain November 28 & 29, 2011

I, for one, would be highly interested in trying the patch out.

I have a 4.0.4 development environment on which I could test it on -
I would report back with compatibility details.


- DavidOn 11-12-02 9:10 AM, Givano wrote:

Hi guys,

if it’s still interesting, I have done the patch for rt 4.0.2
and it works fine for me. Only three files need to be modified
two html and one lib. If you want I can send you diffs or the
files for rt4.0.2. I dont know if it will work with 4.0.4.

BR, Ivan

2011/10/6 Ruslan Zakirov <ruz@bestpractical.com>

Hi,
        On Thu, Oct 6, 2011 at 7:25 PM, Randy Black &lt;<a moz-do-not-send="true" href="mailto:Randy.Black@buckle.com">Randy.Black@buckle.com</a>&gt; wrote:


        &gt; Know of anyone working on the port?






        I don't know. It's on github and there is no forks of the
        project.


        Torsten packaged the extension, probably newer version
        depends on


        patches people would send and/or on his upgrade schedule.






            &gt; -----Original Message-----


            &gt; From: <a moz-do-not-send="true" href="mailto:ruslan.zakirov@gmail.com">ruslan.zakirov@gmail.com</a>
            [mailto:<a moz-do-not-send="true" href="mailto:ruslan.zakirov@gmail.com">ruslan.zakirov@gmail.com</a>]
            On Behalf Of Ruslan Zakirov


            &gt; Sent: Thursday, October 06, 2011 12:24 PM


            &gt; To: Randy Black


            &gt; Cc: <a moz-do-not-send="true" href="mailto:rt-users@lists.bestpractical.com">rt-users@lists.bestpractical.com</a>


            &gt; Subject: Re: [rt-users]
            RT-Extention-QueueDeactivatedScrips


            &gt;


            &gt; Hi,


            &gt;


            &gt; File that couldn't be found was deleted between RT3
            and RT4. What


            &gt; means that extension has not been ported over RT4.


            &gt;


            &gt; On Thu, Oct 6, 2011 at 4:45 PM, Randy Black &lt;<a moz-do-not-send="true" href="mailto:Randy.Black@buckle.com">Randy.Black@buckle.com</a>&gt;
            wrote:


            &gt;&gt; Does anyone use this extension and have it
            working in a production 4.0.2


            &gt;&gt; instance of RT?


            &gt;&gt;


            &gt;&gt; I have it installed, but when selecting a queue
            and then selecting ‘scrips &gt;


            &gt;&gt; select’ from the menu, I get “could not find
            component for path


            &gt;&gt; ‘/Admin/Elements/QueueTabs’”


            &gt;&gt;


            &gt;&gt; Looking through the doc, the wiki and google,
            produced nothing.


            &gt;&gt;


            &gt;&gt; Thanks,


            &gt;&gt;


            &gt;&gt; Randy


            &gt;&gt;


            &gt;&gt; --------


            &gt;&gt; RT Training Sessions (<a moz-do-not-send="true" href="http://bestpractical.com/services/training.html" target="_blank">http://bestpractical.com/services/training.html</a>)


            &gt;&gt; *  San Francisco, CA, USA — October 18 &amp;
            19, 2011


            &gt;&gt; *  Washington DC, USA — October 31 &amp;
            November 1, 2011


            &gt;&gt; *  Barcelona, Spain — November 28 &amp; 29,
            2011


            &gt;&gt;


            &gt;


            &gt;


            &gt;


            &gt; --


            &gt; Best regards, Ruslan.


            &gt;










            Best regards, Ruslan.




            RT Training Sessions (<a moz-do-not-send="true" href="http://bestpractical.com/services/training.html" target="_blank">http://bestpractical.com/services/training.html</a>)


            *  San Francisco, CA, USA  October 18 &amp; 19, 2011


            *  Washington DC, USA  October 31 &amp; November 1, 2011


            *  Barcelona, Spain  November 28 &amp; 29, 2011</blockquote>
--------
RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston — March 5 & 6, 2012

Hi,

here is the diff patch and full files of the extension for RT4.0.2. For SQL
table use the SQL scripts from Thorstens extension on the github
GitHub - tbrumm/RT-Extension-QueueDeactivatedScrips: Deactivate global Scrips on Queue Level. This
modifications are fully based on Thorstens extension for RT3.8.

If you need some help in setting up the extension for your RT please ask.

BR, Ivan

PS: @David: would be really interesting to hear if it also works with 4.0.4.2011/12/2 David Moreau Simard dmsimard@iweb.com

I, for one, would be highly interested in trying the patch out.

I have a 4.0.4 development environment on which I could test it on - I
would report back with compatibility details.

  • David

On 11-12-02 9:10 AM, Givano wrote:

Hi guys,

if it’s still interesting, I have done the patch for rt 4.0.2 and it
works fine for me. Only three files need to be modified two html and one
lib. If you want I can send you diffs or the files for rt4.0.2. I dont know
if it will work with 4.0.4.

BR, Ivan

2011/10/6 Ruslan Zakirov ruz@bestpractical.com

Hi,

On Thu, Oct 6, 2011 at 7:25 PM, Randy Black Randy.Black@buckle.com wrote:

Know of anyone working on the port?

I don’t know. It’s on github and there is no forks of the project.
Torsten packaged the extension, probably newer version depends on
patches people would send and/or on his upgrade schedule.

-----Original Message-----
From: ruslan.zakirov@gmail.com [mailto:ruslan.zakirov@gmail.com] On
Behalf Of Ruslan Zakirov
Sent: Thursday, October 06, 2011 12:24 PM
To: Randy Black
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] RT-Extention-QueueDeactivatedScrips

Hi,

File that couldn’t be found was deleted between RT3 and RT4. What
means that extension has not been ported over RT4.

On Thu, Oct 6, 2011 at 4:45 PM, Randy Black Randy.Black@buckle.com wrote:

Does anyone use this extension and have it working in a production
4.0.2
instance of RT?

I have it installed, but when selecting a queue and then selecting
‘scrips >
select’ from the menu, I get “could not find component for path
‘/Admin/Elements/QueueTabs’”

Looking through the doc, the wiki and google, produced nothing.

Thanks,

Randy


RT Training Sessions (http://bestpractical.com/services/training.html)

  • San Francisco, CA, USA — October 18 & 19, 2011
  • Washington DC, USA — October 31 & November 1, 2011
  • Barcelona, Spain — November 28 & 29, 2011


Best regards, Ruslan.


Best regards, Ruslan.

RT Training Sessions (http://bestpractical.com/services/training.html)

  • San Francisco, CA, USA October 18 & 19, 2011
  • Washington DC, USA October 31 & November 1, 2011
  • Barcelona, Spain November 28 & 29, 2011

RT Training Sessions (http://bestpractical.com/services/training.html
)

  • Boston — March 5 & 6, 2012

RT Training Sessions (http://bestpractical.com/services/training.html)

  • Boston — March 5 & 6, 2012

deactivate_scrips_rt402.tar (66.5 KB)

Hi there,

So, I’ve finally got the chance to grant some time at trying this out.
Before going ahead, I just wanted to say that I’ve never actually used
this plugin so I am not certain what is the expected behavior.
However, this seems like it would be really useful in reducing the
amount of maintenance involved in working with identical scrips in
different queues.

Here is how I’ve set it up on my 4.0.4 environment:
wget
https://github.com/tbrumm/RT-Extension-QueueDeactivatedScrips/zipball/master
unzip master
cd tbrumm-RT-Extension-QueueDeactivatedScrips-54c7982/
perl Makefile.PL
make
make install
make initdb

rm -rf /opt/rt4/local/plugins/RT-Extension-QueueDeactivatedScrips/lib/
rm -rf /opt/rt4/local/plugins/RT-Extension-QueueDeactivatedScrips/html/

tar -xvf deactivate_scrips_rt402.tar
cd patch/rt_local
mv * /opt/rt4/local/plugins/RT-Extension-QueueDeactivatedScrips/

In RT_SiteConfig.pm: Set(@Plugins,
qw(RT::Extension::QueueDeactivatedScrips));
Restarted Apache.

Now, when looking at Global Scrips, I have this screen. Not sure if this
is where it should be showing - this should be when looking at a queue’s
scrips, no ?


Looking at a Queue’s scrips shows the default version of Scrips.html,
not one I would expect (the version that shows in the global scrips
section).
Therefore, when looking at a Queue, I do not have the ability to
deactivate a global scrip.

I’ve tried clearing mason’s cache and copying the plugin files directly
to the local folder instead of inside the plugin folder. No go.

Am I doing something wrong ?

I’m also thinking it could be nice that, instead of going inside a queue
to deactivate a global scrip, you could go inside a global scrip and see
a list of queues it is enabled on and change activation parameters there.
But, that’s entirely another extension I would think!

David Moreau SimardOn 11-12-05 4:41 AM, Givano wrote:

Hi,

here is the diff patch and full files of the extension for RT4.0.2.
For SQL table use the SQL scripts from Thorstens extension on the
github GitHub - tbrumm/RT-Extension-QueueDeactivatedScrips: Deactivate global Scrips on Queue Level.
This modifications are fully based on Thorstens extension for RT3.8.

If you need some help in setting up the extension for your RT please ask.

BR, Ivan

PS: @David: would be really interesting to hear if it also works with
4.0.4.

2011/12/2 David Moreau Simard <dmsimard@iweb.com
mailto:dmsimard@iweb.com>

I, for one, would be highly interested in trying the patch out.

I have a 4.0.4 development environment on which I could test it on
- I would report back with compatibility details.

- David

On 11-12-02 9:10 AM, Givano wrote:
Hi guys,

if it's still interesting, I have done the patch for rt 4.0.2 and
it works fine for me. Only three files need to be modified two
html and one lib. If you want I can send you diffs or the files
for rt4.0.2. I dont know if it will work with 4.0.4.

BR, Ivan

2011/10/6 Ruslan Zakirov <ruz@bestpractical.com
<mailto:ruz@bestpractical.com>>

    Hi,

    On Thu, Oct 6, 2011 at 7:25 PM, Randy Black <Randy.Black@buckle.com <mailto:Randy.Black@buckle.com>> wrote:
    > Know of anyone working on the port?


    I don't know. It's on github and there is no forks of the
    project.
    Torsten packaged the extension, probably newer version depends on
    patches people would send and/or on his upgrade schedule.


    > -----Original Message-----
    > From: ruslan.zakirov@gmail.com
    <mailto:ruslan.zakirov@gmail.com>
    [mailto:ruslan.zakirov@gmail.com
    <mailto:ruslan.zakirov@gmail.com>] On Behalf Of Ruslan Zakirov
    > Sent: Thursday, October 06, 2011 12:24 PM
    > To: Randy Black
    > Cc: rt-users@lists.bestpractical.com
    <mailto:rt-users@lists.bestpractical.com>
    > Subject: Re: [rt-users] RT-Extention-QueueDeactivatedScrips
    >
    > Hi,
    >
    > File that couldn't be found was deleted between RT3 and
    RT4. What
    > means that extension has not been ported over RT4.
    >
    > On Thu, Oct 6, 2011 at 4:45 PM, Randy Black <Randy.Black@buckle.com <mailto:Randy.Black@buckle.com>> wrote:
    >> Does anyone use this extension and have it working in a
    production 4.0.2
    >> instance of RT?
    >>
    >> I have it installed, but when selecting a queue and then
    selecting �scrips >
    >> select� from the menu, I get �could not find component for
    path
    >> �/Admin/Elements/QueueTabs��
    >>
    >> Looking through the doc, the wiki and google, produced
    nothing.
    >>
    >> Thanks,
    >>
    >> Randy
    >>
    >> --------
    >> RT Training Sessions
    (http://bestpractical.com/services/training.html)
    >> *  San Francisco, CA, USA � October 18 & 19, 2011
    >> *  Washington DC, USA � October 31 & November 1, 2011
    >> *  Barcelona, Spain � November 28 & 29, 2011
    >>
    >
    >
    >
    > --
    > Best regards, Ruslan.
    >



    --
    Best regards, Ruslan.
    --------
    RT Training Sessions
    (http://bestpractical.com/services/training.html)
    *  San Francisco, CA, USA  October 18 & 19, 2011
    *  Washington DC, USA  October 31 & November 1, 2011
    *  Barcelona, Spain  November 28 & 29, 2011




-------- RT Training Sessions
(http://bestpractical.com/services/training.html
)
* Boston � March 5&  6, 2012
--------
RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston � March 5 & 6, 2012

Just tested the same procedure under a fresh 4.0.2 install I’ve made and
it reproduced the same results.

David Moreau SimardOn 11-12-28 12:10 PM, David Moreau Simard wrote:

Hi there,

So, I’ve finally got the chance to grant some time at trying this out.
Before going ahead, I just wanted to say that I’ve never actually used
this plugin so I am not certain what is the expected behavior.
However, this seems like it would be really useful in reducing the
amount of maintenance involved in working with identical scrips in
different queues.

Here is how I’ve set it up on my 4.0.4 environment:

wget
https://github.com/tbrumm/RT-Extension-QueueDeactivatedScrips/zipball/master
unzip master
cd tbrumm-RT-Extension-QueueDeactivatedScrips-54c7982/
perl Makefile.PL
make
make install
make initdb

rm -rf /opt/rt4/local/plugins/RT-Extension-QueueDeactivatedScrips/lib/
rm -rf /opt/rt4/local/plugins/RT-Extension-QueueDeactivatedScrips/html/

tar -xvf deactivate_scrips_rt402.tar
cd patch/rt_local
mv * /opt/rt4/local/plugins/RT-Extension-QueueDeactivatedScrips/

In RT_SiteConfig.pm: Set(@Plugins,
qw(RT::Extension::QueueDeactivatedScrips));
Restarted Apache.

Now, when looking at Global Scrips, I have this screen. Not sure if
this is where it should be showing - this should be when looking at a
queue’s scrips, no ?
http://i.imgur.com/Fp37v.png

Looking at a Queue’s scrips shows the default version of Scrips.html,
not one I would expect (the version that shows in the global scrips
section).
Therefore, when looking at a Queue, I do not have the ability to
deactivate a global scrip.

I’ve tried clearing mason’s cache and copying the plugin files
directly to the local folder instead of inside the plugin folder. No go.

Am I doing something wrong ?

I’m also thinking it could be nice that, instead of going inside a
queue to deactivate a global scrip, you could go inside a global scrip
and see a list of queues it is enabled on and change activation
parameters there.
But, that’s entirely another extension I would think!

David Moreau Simard

On 11-12-05 4:41 AM, Givano wrote:

Hi,

here is the diff patch and full files of the extension for RT4.0.2.
For SQL table use the SQL scripts from Thorstens extension on the
github GitHub - tbrumm/RT-Extension-QueueDeactivatedScrips: Deactivate global Scrips on Queue Level.
This modifications are fully based on Thorstens extension for RT3.8.

If you need some help in setting up the extension for your RT please
ask.

BR, Ivan

PS: @David: would be really interesting to hear if it also works with
4.0.4.

2011/12/2 David Moreau Simard <dmsimard@iweb.com
mailto:dmsimard@iweb.com>

I, for one, would be highly interested in trying the patch out.

I have a 4.0.4 development environment on which I could test it on
- I would report back with compatibility details.

- David

On 11-12-02 9:10 AM, Givano wrote:
Hi guys,

if it's still interesting, I have done the patch for rt 4.0.2 and
it works fine for me. Only three files need to be modified two
html and one lib. If you want I can send you diffs or the files
for rt4.0.2. I dont know if it will work with 4.0.4.

BR, Ivan

2011/10/6 Ruslan Zakirov <ruz@bestpractical.com

mailto:ruz@bestpractical.com>

    Hi,

    On Thu, Oct 6, 2011 at 7:25 PM, Randy Black <Randy.Black@buckle.com <mailto:Randy.Black@buckle.com>> wrote:

Know of anyone working on the port?

    I don't know. It's on github and there is no forks of the
    project.
    Torsten packaged the extension, probably newer version 

depends on
patches people would send and/or on his upgrade schedule.

-----Original Message-----
From: ruslan.zakirov@gmail.com
mailto:ruslan.zakirov@gmail.com
[mailto:ruslan.zakirov@gmail.com
mailto:ruslan.zakirov@gmail.com] On Behalf Of Ruslan Zakirov
Sent: Thursday, October 06, 2011 12:24 PM
To: Randy Black
Cc: rt-users@lists.bestpractical.com
mailto:rt-users@lists.bestpractical.com
Subject: Re: [rt-users] RT-Extention-QueueDeactivatedScrips

Hi,

File that couldn’t be found was deleted between RT3 and
RT4. What
means that extension has not been ported over RT4.

On Thu, Oct 6, 2011 at 4:45 PM, Randy Black <Randy.Black@buckle.com mailto:Randy.Black@buckle.com> wrote:

Does anyone use this extension and have it working in a
production 4.0.2
instance of RT?

I have it installed, but when selecting a queue and then
selecting �scrips >
select� from the menu, I get �could not find component for
path
�/Admin/Elements/QueueTabs��

Looking through the doc, the wiki and google, produced
nothing.

Thanks,

Randy


RT Training Sessions
(http://bestpractical.com/services/training.html)

  • San Francisco, CA, USA � October 18 & 19, 2011
  • Washington DC, USA � October 31 & November 1, 2011
  • Barcelona, Spain � November 28 & 29, 2011


Best regards, Ruslan.

    --
    Best regards, Ruslan.
    --------
    RT Training Sessions
    (http://bestpractical.com/services/training.html)
    *  San Francisco, CA, USA  October 18 & 19, 2011
    *  Washington DC, USA  October 31 & November 1, 2011
    *  Barcelona, Spain  November 28 & 29, 2011




-------- RT Training Sessions
(http://bestpractical.com/services/training.html
)
* Boston � March 5&  6, 2012
--------
RT Training Sessions 

(http://bestpractical.com/services/training.html)
* Boston � March 5 & 6, 2012

Okay, I’ve figured it out what was the issue.
In the patch you provided, the file hierarchy isn’t the same as the one
I have.

If I look at /opt/rt4/share/html, I have the following:
drwxr-xr-x 10 root bin 4096 Dec 28 12:24 Admin
drwxr-xr-x 3 root bin 4096 Dec 28 12:24 Approvals
drwxr-xr-x 4 root bin 4096 Dec 28 12:24 Articles
-rw-r–r-- 1 root bin 2263 Dec 28 12:24 autohandler
drwxr-xr-x 3 root bin 4096 Dec 28 12:24 Dashboards
-rw-r–r-- 1 root bin 2285 Dec 28 12:24 dhandler
drwxr-xr-x 3 root bin 4096 Dec 28 12:24 Download
drwxr-xr-x 15 root bin 4096 Dec 28 12:24 Elements
drwxr-xr-x 4 root bin 4096 Dec 28 12:24 Helpers
-rw-r–r-- 1 root bin 5158 Dec 28 12:24 index.html
drwxr-xr-x 3 root bin 4096 Dec 28 12:24 Install
-rw-r–r-- 1 root bin 2188 Dec 28 12:24 l
drwxr-xr-x 5 root bin 4096 Dec 28 12:24 m
drwxr-xr-x 9 root bin 4096 Dec 28 12:24 NoAuth
drwxr-xr-x 2 root bin 4096 Dec 28 12:24 Prefs
drwxr-xr-x 3 root bin 4096 Dec 28 12:24 REST
drwxr-xr-x 3 root bin 4096 Dec 28 12:24 Search
drwxr-xr-x 5 root bin 4096 Dec 28 12:24 SelfService
drwxr-xr-x 5 root bin 4096 Dec 28 12:24 Ticket
drwxr-xr-x 2 root bin 4096 Dec 28 12:24 Tools
drwxr-xr-x 2 root bin 4096 Dec 28 12:24 User
drwxr-xr-x 3 root bin 4096 Dec 28 12:24 Widgets

Now, in the rt_local folder of the patch, the html folder looks like this:
drwxrwxrwx 3 root root 4096 Dec 5 03:49 Admin
drwxrwxrwx 2 root root 4096 Dec 5 03:50 Queues

Notice the Queues folder ? I moved it inside Admin - just like in the
default hierarchy:

ls -al /opt/rt4/share/html/Admin/

total 48
drwxr-xr-x 10 root bin 4096 Dec 28 12:24 .
drwxr-xr-x 20 root bin 4096 Dec 28 12:24 …
drwxr-xr-x 4 root bin 4096 Dec 28 12:24 Articles
-rw-r–r-- 1 root bin 2213 Dec 28 12:24 autohandler
drwxr-xr-x 2 root bin 4096 Dec 28 12:24 CustomFields
drwxr-xr-x 2 root bin 4096 Dec 28 12:24 Elements
drwxr-xr-x 3 root bin 4096 Dec 28 12:24 Global
drwxr-xr-x 2 root bin 4096 Dec 28 12:24 Groups
-rw-r–r-- 1 root bin 2268 Dec 28 12:24 index.html
drwxr-xr-x 2 root bin 4096 Dec 28 12:24 Queues
drwxr-xr-x 3 root bin 4096 Dec 28 12:24 Tools
drwxr-xr-x 2 root bin 4096 Dec 28 12:24 Users

I now get the global scrip activation toggles inside the queue scrips
configuration.
I’m now testing to see if I am able to get the expected behavior from my
global scrips.

I’ve created a dummy global scrip which re-opens a ticket if the status
is changed. If I change the status to “stalled”, it resets the ticket’s
status to “open”.
Now, I’ve tried deactivating the scrip both through the global section
and the queue section but it keeps going.

Trying to figure out what is the issue and I will report back !

David Moreau SimardOn 11-12-28 12:35 PM, David Moreau Simard wrote:

Just tested the same procedure under a fresh 4.0.2 install I’ve made
and it reproduced the same results.

David Moreau Simard

On 11-12-28 12:10 PM, David Moreau Simard wrote:

Hi there,

So, I’ve finally got the chance to grant some time at trying this
out. Before going ahead, I just wanted to say that I’ve never
actually used this plugin so I am not certain what is the expected
behavior.
However, this seems like it would be really useful in reducing the
amount of maintenance involved in working with identical scrips in
different queues.

Here is how I’ve set it up on my 4.0.4 environment:

wget
https://github.com/tbrumm/RT-Extension-QueueDeactivatedScrips/zipball/master
unzip master
cd tbrumm-RT-Extension-QueueDeactivatedScrips-54c7982/
perl Makefile.PL
make
make install
make initdb

rm -rf /opt/rt4/local/plugins/RT-Extension-QueueDeactivatedScrips/lib/
rm -rf /opt/rt4/local/plugins/RT-Extension-QueueDeactivatedScrips/html/

tar -xvf deactivate_scrips_rt402.tar
cd patch/rt_local
mv * /opt/rt4/local/plugins/RT-Extension-QueueDeactivatedScrips/

In RT_SiteConfig.pm: Set(@Plugins,
qw(RT::Extension::QueueDeactivatedScrips));
Restarted Apache.

Now, when looking at Global Scrips, I have this screen. Not sure if
this is where it should be showing - this should be when looking at a
queue’s scrips, no ?
http://i.imgur.com/Fp37v.png

Looking at a Queue’s scrips shows the default version of Scrips.html,
not one I would expect (the version that shows in the global scrips
section).
Therefore, when looking at a Queue, I do not have the ability to
deactivate a global scrip.

I’ve tried clearing mason’s cache and copying the plugin files
directly to the local folder instead of inside the plugin folder. No go.

Am I doing something wrong ?

I’m also thinking it could be nice that, instead of going inside a
queue to deactivate a global scrip, you could go inside a global
scrip and see a list of queues it is enabled on and change activation
parameters there.
But, that’s entirely another extension I would think!

David Moreau Simard

Okay, I’ve managed to make it work.

In the patch, there is a file Scrip_Overlay.pm - now, I’ve renamed this
file to Scrip.pm since this is the file that it is meant to extend.
After doing some tests, I could not get RT to use the extended Scrip.pm

  • maybe you could provide some insight on that.

However, when I placed the extended Scrip.pm into local/lib/RT, scrip
activation and deactivation worked as expected.

Any ideas ?

David Moreau SimardOn 11-12-28 2:17 PM, David Moreau Simard wrote:

Okay, I’ve figured it out what was the issue.
In the patch you provided, the file hierarchy isn’t the same as the
one I have.

If I look at /opt/rt4/share/html, I have the following:
drwxr-xr-x 10 root bin 4096 Dec 28 12:24 Admin
drwxr-xr-x 3 root bin 4096 Dec 28 12:24 Approvals
drwxr-xr-x 4 root bin 4096 Dec 28 12:24 Articles
-rw-r–r-- 1 root bin 2263 Dec 28 12:24 autohandler
drwxr-xr-x 3 root bin 4096 Dec 28 12:24 Dashboards
-rw-r–r-- 1 root bin 2285 Dec 28 12:24 dhandler
drwxr-xr-x 3 root bin 4096 Dec 28 12:24 Download
drwxr-xr-x 15 root bin 4096 Dec 28 12:24 Elements
drwxr-xr-x 4 root bin 4096 Dec 28 12:24 Helpers
-rw-r–r-- 1 root bin 5158 Dec 28 12:24 index.html
drwxr-xr-x 3 root bin 4096 Dec 28 12:24 Install
-rw-r–r-- 1 root bin 2188 Dec 28 12:24 l
drwxr-xr-x 5 root bin 4096 Dec 28 12:24 m
drwxr-xr-x 9 root bin 4096 Dec 28 12:24 NoAuth
drwxr-xr-x 2 root bin 4096 Dec 28 12:24 Prefs
drwxr-xr-x 3 root bin 4096 Dec 28 12:24 REST
drwxr-xr-x 3 root bin 4096 Dec 28 12:24 Search
drwxr-xr-x 5 root bin 4096 Dec 28 12:24 SelfService
drwxr-xr-x 5 root bin 4096 Dec 28 12:24 Ticket
drwxr-xr-x 2 root bin 4096 Dec 28 12:24 Tools
drwxr-xr-x 2 root bin 4096 Dec 28 12:24 User
drwxr-xr-x 3 root bin 4096 Dec 28 12:24 Widgets

Now, in the rt_local folder of the patch, the html folder looks like
this:
drwxrwxrwx 3 root root 4096 Dec 5 03:49 Admin
drwxrwxrwx 2 root root 4096 Dec 5 03:50 Queues

Notice the Queues folder ? I moved it inside Admin - just like in the
default hierarchy:

ls -al /opt/rt4/share/html/Admin/

total 48
drwxr-xr-x 10 root bin 4096 Dec 28 12:24 .
drwxr-xr-x 20 root bin 4096 Dec 28 12:24 …
drwxr-xr-x 4 root bin 4096 Dec 28 12:24 Articles
-rw-r–r-- 1 root bin 2213 Dec 28 12:24 autohandler
drwxr-xr-x 2 root bin 4096 Dec 28 12:24 CustomFields
drwxr-xr-x 2 root bin 4096 Dec 28 12:24 Elements
drwxr-xr-x 3 root bin 4096 Dec 28 12:24 Global
drwxr-xr-x 2 root bin 4096 Dec 28 12:24 Groups
-rw-r–r-- 1 root bin 2268 Dec 28 12:24 index.html
drwxr-xr-x 2 root bin 4096 Dec 28 12:24 Queues
drwxr-xr-x 3 root bin 4096 Dec 28 12:24 Tools
drwxr-xr-x 2 root bin 4096 Dec 28 12:24 Users

I now get the global scrip activation toggles inside the queue scrips
configuration.
I’m now testing to see if I am able to get the expected behavior from
my global scrips.

I’ve created a dummy global scrip which re-opens a ticket if the
status is changed. If I change the status to “stalled”, it resets the
ticket’s status to “open”.
Now, I’ve tried deactivating the scrip both through the global section
and the queue section but it keeps going.

Trying to figure out what is the issue and I will report back !

David Moreau Simard

I’ve made an updated version available as a forked project on Github:

Feel free to use it, I will surely update it in the near future.

David Moreau SimardOn 11-12-28 4:27 PM, David Moreau Simard wrote:

Okay, I’ve managed to make it work.

In the patch, there is a file Scrip_Overlay.pm - now, I’ve renamed
this file to Scrip.pm since this is the file that it is meant to extend.
After doing some tests, I could not get RT to use the extended
Scrip.pm - maybe you could provide some insight on that.

However, when I placed the extended Scrip.pm into local/lib/RT, scrip
activation and deactivation worked as expected.

Any ideas ?

David Moreau Simard

On 11-12-28 2:17 PM, David Moreau Simard wrote:

Okay, I’ve figured it out what was the issue.
In the patch you provided, the file hierarchy isn’t the same as the
one I have.

If I look at /opt/rt4/share/html, I have the following:
drwxr-xr-x 10 root bin 4096 Dec 28 12:24 Admin
drwxr-xr-x 3 root bin 4096 Dec 28 12:24 Approvals
drwxr-xr-x 4 root bin 4096 Dec 28 12:24 Articles
-rw-r–r-- 1 root bin 2263 Dec 28 12:24 autohandler
drwxr-xr-x 3 root bin 4096 Dec 28 12:24 Dashboards
-rw-r–r-- 1 root bin 2285 Dec 28 12:24 dhandler
drwxr-xr-x 3 root bin 4096 Dec 28 12:24 Download
drwxr-xr-x 15 root bin 4096 Dec 28 12:24 Elements
drwxr-xr-x 4 root bin 4096 Dec 28 12:24 Helpers
-rw-r–r-- 1 root bin 5158 Dec 28 12:24 index.html
drwxr-xr-x 3 root bin 4096 Dec 28 12:24 Install
-rw-r–r-- 1 root bin 2188 Dec 28 12:24 l
drwxr-xr-x 5 root bin 4096 Dec 28 12:24 m
drwxr-xr-x 9 root bin 4096 Dec 28 12:24 NoAuth
drwxr-xr-x 2 root bin 4096 Dec 28 12:24 Prefs
drwxr-xr-x 3 root bin 4096 Dec 28 12:24 REST
drwxr-xr-x 3 root bin 4096 Dec 28 12:24 Search
drwxr-xr-x 5 root bin 4096 Dec 28 12:24 SelfService
drwxr-xr-x 5 root bin 4096 Dec 28 12:24 Ticket
drwxr-xr-x 2 root bin 4096 Dec 28 12:24 Tools
drwxr-xr-x 2 root bin 4096 Dec 28 12:24 User
drwxr-xr-x 3 root bin 4096 Dec 28 12:24 Widgets

Now, in the rt_local folder of the patch, the html folder looks like
this:
drwxrwxrwx 3 root root 4096 Dec 5 03:49 Admin
drwxrwxrwx 2 root root 4096 Dec 5 03:50 Queues

Notice the Queues folder ? I moved it inside Admin - just like in the
default hierarchy:

ls -al /opt/rt4/share/html/Admin/

total 48
drwxr-xr-x 10 root bin 4096 Dec 28 12:24 .
drwxr-xr-x 20 root bin 4096 Dec 28 12:24 …
drwxr-xr-x 4 root bin 4096 Dec 28 12:24 Articles
-rw-r–r-- 1 root bin 2213 Dec 28 12:24 autohandler
drwxr-xr-x 2 root bin 4096 Dec 28 12:24 CustomFields
drwxr-xr-x 2 root bin 4096 Dec 28 12:24 Elements
drwxr-xr-x 3 root bin 4096 Dec 28 12:24 Global
drwxr-xr-x 2 root bin 4096 Dec 28 12:24 Groups
-rw-r–r-- 1 root bin 2268 Dec 28 12:24 index.html
drwxr-xr-x 2 root bin 4096 Dec 28 12:24 Queues
drwxr-xr-x 3 root bin 4096 Dec 28 12:24 Tools
drwxr-xr-x 2 root bin 4096 Dec 28 12:24 Users

I now get the global scrip activation toggles inside the queue scrips
configuration.
I’m now testing to see if I am able to get the expected behavior from
my global scrips.

I’ve created a dummy global scrip which re-opens a ticket if the
status is changed. If I change the status to “stalled”, it resets the
ticket’s status to “open”.
Now, I’ve tried deactivating the scrip both through the global
section and the queue section but it keeps going.

Trying to figure out what is the issue and I will report back !

David Moreau Simard