CONTRIB: MyQueues

Howdy!

In line with the MyTickets and MyRequests portions of WebRT, here’s a
MyQueues module which displays the 25 highest priority unclaimed (e.g.
owned by Nobody) tickets in all queues that the current user is a
watcher on.

To use this module:

  • Copy it into your RT dir under WebRT/html/Elements/MyQueues.pm

  • Add it to your WebRT/html/index.html:

    <& /Elements/CustomHomepageHeader, %ARGS &> <& /Elements/MyTickets &>
    • <& /Elements/MyQueues &>

    • <& /Elements/MyRequests &>

    And it should just work. =]

    Enjoy!

    –j
    Jim Meyer, Geek At Large purp@wildbrain.com

Works better if I attach the file, doesn’t it? ;]

–jOn Thu, 2002-02-07 at 12:29, Jim Meyer wrote:

Howdy!

In line with the MyTickets and MyRequests portions of WebRT, here’s a
MyQueues module which displays the 25 highest priority unclaimed (e.g.
owned by Nobody) tickets in all queues that the current user is a
watcher on.

To use this module:

  • Copy it into your RT dir under WebRT/html/Elements/MyQueues.pm

  • Add it to your WebRT/html/index.html:

    <& /Elements/CustomHomepageHeader, %ARGS &> <& /Elements/MyTickets &>
    • <& /Elements/MyQueues &>

    • <& /Elements/MyRequests &>

    And it should just work. =]

    Enjoy!

    –j

    Jim Meyer, Geek At Large purp@wildbrain.com
    Jim Meyer, Geek At Large purp@wildbrain.com

    MyQueues (1.48 KB)

You are awesome!!! It works great!!! 3 seconds to get it working…
ThanksFrom: Jim Meyer [mailto:purp@wildbrain.com]
Sent: Thursday, February 07, 2002 3:34 PM
To: Jim Meyer
Cc: Request Tracker Users Mailing List
Subject: [rt-users] Re: CONTRIB: MyQueues

Works better if I attach the file, doesn’t it? ;]

–j

This is nifty. Thanks, Jim! I implemented this and changed the Resolve link
to a ‘This is spam’ link that automatically kills tickets to make it easier
for us to clear those out. :slight_smile:

Woohoo!

John DeBerry

Thanks for posting this. I’m just getting started implementing RT2
(moving from RT1) and examples like this really help me out in learning
how to customize it. Your MyQueues contribution adds an excellent feature
to the start page.

Howdy again!

As Ryan Morben was kind enough to point out, MyQueues was showing all
queues to anyone who wasn’t a watcher on any queue. Further poking at it
also taught me that I don’t know as much about how Queue->IsWatcher() as
I thought I did. I didn’t spot this myself as there aren’t any queues
here I don’t watch…more’s the pity.

However, an hour of learning enabled me to figure out a hack to solve
the problem while I go learn more about Queue->IsWatcher(). I’ve tested
this one on a couple of people who watch fewer queues than I do, and
it’s working. Really. =]

It also notes in the title of the box how many queues you’re watching; I
toyed with having it be invisible if you watch no queues, but I decided
that since MyTickets and MyRequests show up even if empty, it made more
sense to follow that behavior.

Anyway, enjoy!

–jOn Thu, 2002-02-07 at 12:29, Jim Meyer wrote:

Howdy!

In line with the MyTickets and MyRequests portions of WebRT, here’s a
MyQueues module which displays the 25 highest priority unclaimed (e.g.
owned by Nobody) tickets in all queues that the current user is a
watcher on.

To use this module:

This is great work and I love the ease of this addon! Now it brings up an
issue we haven’t touched on here. What is the difference between watchcc and
watchasadmincc ? ;)On February 7, 2002 07:17 pm, you wrote:

Howdy again!

As Ryan Morben was kind enough to point out, MyQueues was showing all
queues to anyone who wasn’t a watcher on any queue. Further poking at it
also taught me that I don’t know as much about how Queue->IsWatcher() as
I thought I did. I didn’t spot this myself as there aren’t any queues
here I don’t watch…more’s the pity.

However, an hour of learning enabled me to figure out a hack to solve
the problem while I go learn more about Queue->IsWatcher(). I’ve tested
this one on a couple of people who watch fewer queues than I do, and
it’s working. Really. =]

It also notes in the title of the box how many queues you’re watching; I
toyed with having it be invisible if you watch no queues, but I decided
that since MyTickets and MyRequests show up even if empty, it made more
sense to follow that behavior.

Anyway, enjoy!

–j

On Thu, 2002-02-07 at 12:29, Jim Meyer wrote:

Howdy!

In line with the MyTickets and MyRequests portions of WebRT, here’s a
MyQueues module which displays the 25 highest priority unclaimed (e.g.
owned by Nobody) tickets in all queues that the current user is a
watcher on.

To use this module:

Okay that was uncalled for… I did this in reverse order… I posted a reply
before checking the website:

RT lets you set up Cc and Administrative Cc watchers globally and for each
queue. (Note that mail isn’t sent unless you define Scrips to send it).
Generally, Cc watchers are folks who get notifications of ticket updates and
can view the queue (though this, of course, depends on how you configure
things). Administrative Ccs are usually the folks who have rights to modify
tickets. Set up folks you want to get Cc or AdminCc mail as watchers for your
queue in “Configuration”/“Queues”/ / Watchers.

Blah!

Sorry bout that :)On February 8, 2002 09:26 am, you wrote:

This is great work and I love the ease of this addon! Now it brings up an
issue we haven’t touched on here. What is the difference between watchcc
and watchasadmincc ? :wink:

On February 7, 2002 07:17 pm, you wrote:

Howdy again!

As Ryan Morben was kind enough to point out, MyQueues was showing all
queues to anyone who wasn’t a watcher on any queue. Further poking at it
also taught me that I don’t know as much about how Queue->IsWatcher() as
I thought I did. I didn’t spot this myself as there aren’t any queues
here I don’t watch…more’s the pity.

However, an hour of learning enabled me to figure out a hack to solve
the problem while I go learn more about Queue->IsWatcher(). I’ve tested
this one on a couple of people who watch fewer queues than I do, and
it’s working. Really. =]

It also notes in the title of the box how many queues you’re watching; I
toyed with having it be invisible if you watch no queues, but I decided
that since MyTickets and MyRequests show up even if empty, it made more
sense to follow that behavior.

Anyway, enjoy!

–j

On Thu, 2002-02-07 at 12:29, Jim Meyer wrote:

Howdy!

In line with the MyTickets and MyRequests portions of WebRT, here’s a
MyQueues module which displays the 25 highest priority unclaimed (e.g.
owned by Nobody) tickets in all queues that the current user is a
watcher on.

To use this module:

Hia

Another nice modification to show the ‘Age’ of a ticket in the MyQueues
panel. Your queue watchers will like it. Add the following to
WebRT/html/Elements/MyQueues

Queue Status Age  

<%$Ticket->QueueObj->Name%>

<%$Ticket->Status%> <%$Ticket->CreatedObj->AgeAsString%> ...

-andreas

Hia

Another nice modification to show the ‘Age’ of a ticket in the MyQueues
panel. Your queue watchers will like it. Add the following to
WebRT/html/Elements/MyQueues

Queue Status Age  

<%$Ticket->QueueObj->Name%>

<%$Ticket->Status%> <%$Ticket->CreatedObj->AgeAsString%> ...

-andreas

Hello Andreas,

Is this also applicable to the latest version? I did not find MyQueues in there :wink:
Well, I am thouroughly an RT newbie!!

[root@ns2]#pwd
/opt/rt2/WebRT/html/Elements
[root@ns2]#ls -al My*
-rwxr-xr-x 1 root bin 1104 Nov 7 02:06 MyRequests
-rwxr-xr-x 1 root bin 1030 Nov 7 02:06 MyTickets
[root@ns2]#

thanks

-Wash

Odhiambo Washington wash@wananchi.com "The box said 'Requires
Wananchi Online Ltd. www.wananchi.com Windows 95, NT, or better,'
Tel: 254 2 313985-9 Fax: 254 2 313922 so I installed FreeBSD."
GSM: 254 72 743 223 GSM: 254 733 744 121 This sig is McQ! :slight_smile:

President Reagan has noted that there are too many economic pundits and
forecasters and has decided on an excess prophets tax.

Odhiambo

Search the archives, it was hacked by Jim Meyer, February:
http://lists.fsck.com/pipermail/rt-users/2002-February/006571.html
Perhaps Jesse can put it to the contributed stuff…

-andreas

Hello!On Wed, 2002-03-20 at 07:20, Andreas Kruthoff wrote:

Search the archives, it was hacked by Jim Meyer, February:
http://lists.fsck.com/pipermail/rt-users/2002-February/006571.html
Perhaps Jesse can put it to the contributed stuff…

That’s my bad, actually. I need to bundle it into a tarball with a
README and forward it to Jesse. It’s on my list of things to do, but I’m
swamped at present and haven’t made time for it.

Hopefully I can nail it down this week or next.

Cheers!

–j
Jim Meyer, Geek At Large purp@wildbrain.com

will that stuff work also if u run rt with fastcgi ? mod_perl does not
really work with our ibm httpdserver but the httpdserver is much faaster
than stock apache …On Wed, 2002-03-20 at 16:10, Jim Meyer wrote:

Hello!

On Wed, 2002-03-20 at 07:20, Andreas Kruthoff wrote:

Search the archives, it was hacked by Jim Meyer, February:
http://lists.fsck.com/pipermail/rt-users/2002-February/006571.html
Perhaps Jesse can put it to the contributed stuff…

That’s my bad, actually. I need to bundle it into a tarball with a
README and forward it to Jesse. It’s on my list of things to do, but I’m
swamped at present and haven’t made time for it.

Hopefully I can nail it down this week or next.

Cheers!

–j

Jim Meyer, Geek At Large purp@wildbrain.com


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

signature.asc (232 Bytes)

will that stuff work also if u run rt with fastcgi ? mod_perl does not
really work with our ibm httpdserver but the httpdserver is much faaster
than stock apache …

Honestly, I don’t know as I’ve never had IBM’s httpdserver to play with.
The best I can tell you is that if the stock RT start page works, this
should work, too.

Cheers!

–j> On Wed, 2002-03-20 at 16:10, Jim Meyer wrote:

Hello!

On Wed, 2002-03-20 at 07:20, Andreas Kruthoff wrote:

Search the archives, it was hacked by Jim Meyer, February:
http://lists.fsck.com/pipermail/rt-users/2002-February/006571.html
Perhaps Jesse can put it to the contributed stuff…

That’s my bad, actually. I need to bundle it into a tarball with a
README and forward it to Jesse. It’s on my list of things to do, but I’m
swamped at present and haven’t made time for it.

Hopefully I can nail it down this week or next.

Cheers!

–j

Jim Meyer, Geek At Large purp@wildbrain.com


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Jim Meyer, Geek At Large purp@wildbrain.com

It does :slight_smile:
and fast
BTW, to all postgresql users on the list:
use postgresql 7.2
bump up ur shared memory to at least 512MB
run vaccum analyze full every 15 - 20 minutes (sic!)
and you will see an extreme speed increase

btw … fastcgi is faster on my site than modperl by a factor of 3 …On Wed, 2002-03-20 at 17:16, Jim Meyer wrote:

On Wed, 2002-03-20 at 08:56, Michael Bielicki wrote:

will that stuff work also if u run rt with fastcgi ? mod_perl does not
really work with our ibm httpdserver but the httpdserver is much faaster
than stock apache …

Honestly, I don’t know as I’ve never had IBM’s httpdserver to play with.
The best I can tell you is that if the stock RT start page works, this
should work, too.

Cheers!

–j

On Wed, 2002-03-20 at 16:10, Jim Meyer wrote:

Hello!

On Wed, 2002-03-20 at 07:20, Andreas Kruthoff wrote:

Search the archives, it was hacked by Jim Meyer, February:
http://lists.fsck.com/pipermail/rt-users/2002-February/006571.html
Perhaps Jesse can put it to the contributed stuff…

That’s my bad, actually. I need to bundle it into a tarball with a
README and forward it to Jesse. It’s on my list of things to do, but I’m
swamped at present and haven’t made time for it.

Hopefully I can nail it down this week or next.

Cheers!

–j

Jim Meyer, Geek At Large purp@wildbrain.com


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users


Jim Meyer, Geek At Large purp@wildbrain.com

signature.asc (232 Bytes)

“MB” == Michael Bielicki Michael.Blk@freezone.co.uk writes:

MB> BTW, to all postgresql users on the list:
MB> use postgresql 7.2

Definitely.

MB> bump up ur shared memory to at least 512MB

Depends on how much RAM you have. If you’re swapping your SHM
segments, it makes little sense – just let postgres fetch the data
from the disk itself.

If you can, tell your OS to make the SHM segments hard-wired physical
pages to eliminate the virtual memory overhead (FreeBSD can do this).

MB> run vaccum analyze full every 15 - 20 minutes (sic!)

No need for “full” vacuum anymore. RT never deletes rows, so you
don’t need to compact your tables to recover space from the deleted
rows. Any spaces left by updated rows will be reused after a plain
vacuum.

Once your DB is big enough, you don’t even need to run analyze more
than once per day or so. The statistics are just used by the query
planner to decide how to use indexes.

MB> and you will see an extreme speed increase

MB> btw … fastcgi is faster on my site than modperl by a factor of 3 …

Maybe because you’re sucking all of your RAM for your database… or
you’re running too many apps lumped into your apache. I have a
dedicated instance of apache for RT and it is incredibly fast, even
running under SSL.

With FastCGI, you just isolate the memory usage for RT to those
processes anyway, so the effect is the same as a seperate mod_perl-apache
instance.