[rt-users] RT-Extention-QueueDeactivatedScrips

David Moreau Simard dmsimard at iweb.com
Wed Dec 28 14:17:09 EST 2011


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*


On 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*



More information about the rt-users mailing list