[rt-users] implementing an almost realtime status box
Ruslan U. Zakirov
Ruslan.Zakirov at acronis.com
Thu Oct 7 10:16:38 EDT 2004
1) You should use multiple fields to order, one field is not enough.
Example: user resolve ticket and add comment: two transactons has same
value of 'Created' in most cases cause datetime field doesn't store
subseconds.
2) it's save to do
while( my $transaction = $Transactions->Next ) {
....
}
instead of if($transaction) { do {} ...
3) Transaction inherit rights from its Ticket mostly then you can do
$Transaction->CurrentUserHasRight('Right') check.
4) Check rights before callback it would be faster.
5) that's all what I see
Best regards. Ruslan.
Kaj J.Niemi wrote:
>>I think you should start not from Tickets, but from Transactions
>>and order them by Created time and id.
>
>
> Yes, this approach was simpler and easier once I figured out how to get
> the list of transactions without going through a specific ticket first.
>
> It's #6169 if you want to take a look at it.
>
>
>
> // kaj
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Be sure to check out the RT wiki at http://wiki.bestpractical.com
More information about the rt-users
mailing list