Re: [rt-users] Fwd: How to list all enabled users in Perl script?

2013-09-11 Thread Ruslan Zakirov
Hi RT users, A new version of MergeUsers extension has been released to the CPAN. On Thu, Sep 5, 2013 at 6:54 PM, Nathan Cutler presnyprek...@gmail.comwrote: Can you test the following patch? I've applied the patch on both our testing and production instances. It seems to work! Will keep

Re: [rt-users] Fwd: How to list all enabled users in Perl script?

2013-09-05 Thread Nathan Cutler
I'm planning to look at it later tonight or tomorrow. Thanks, Ruslan. Guys, please send version of DBIx::SearchBuilder, just in case it's not the latest. I'm running 1.63.

Re: [rt-users] Fwd: How to list all enabled users in Perl script?

2013-09-05 Thread Ruslan Zakirov
Hi guys, Can you test the following patch? On Thu, Sep 5, 2013 at 12:21 PM, Nathan Cutler presnyprek...@gmail.comwrote: I'm planning to look at it later tonight or tomorrow. Thanks, Ruslan. Guys, please send version of DBIx::SearchBuilder, just in case it's not the latest. I'm

Re: [rt-users] Fwd: How to list all enabled users in Perl script?

2013-09-05 Thread Thomas Bätzler
Hello Ruslan, Can you test the following patch? This seems to fix the problem with Nathan's script aswell as mine where my user didn't show up in modify ticket. Thank you for your help! Cheers, Thomas

Re: [rt-users] Fwd: How to list all enabled users in Perl script?

2013-09-05 Thread Nathan Cutler
Can you test the following patch? I've applied the patch on both our testing and production instances. It seems to work! Will keep an eye on it to see if there are any undesired consequences. Thanks alot! Nathan

Re: [rt-users] Fwd: How to list all enabled users in Perl script?

2013-09-04 Thread Thomas Bätzler
Hi, Nathan Cutler wrote: Find `sub Next` in lib/RT/Extension/MergeUsers.pm, put logging or printing debug statements there to check what is going on. OK, I'll try that. I ran some more tests on my testing RT instance. Here's what I just found out: When no users are merged, the script

Re: [rt-users] Fwd: How to list all enabled users in Perl script?

2013-09-04 Thread Ruslan Zakirov
On Wed, Sep 4, 2013 at 2:45 PM, Thomas Bätzler t.baetz...@bringe.comwrote: Hi, Nathan Cutler wrote: Find `sub Next` in lib/RT/Extension/MergeUsers.pm, put logging or printing debug statements there to check what is going on. OK, I'll try that. I ran some more tests on my testing RT

[rt-users] Fwd: How to list all enabled users in Perl script?

2013-09-03 Thread Nathan Cutler
Call `print $RT_enabled_users-BuildSelectQuery, \n;`, check SQL manually and it is correct then move to Next function. Thanks, Ruslan. I tried your suggestion. It outputs the following SELECT statement: SELECT DISTINCT main.* FROM Users main JOIN Principals Principals_1 ON ( Principals_1.id =

Re: [rt-users] Fwd: How to list all enabled users in Perl script?

2013-09-03 Thread Ruslan Zakirov
Find `sub Next` in lib/RT/Extension/MergeUsers.pm, put logging or printing debug statements there to check what is going on. On Tue, Sep 3, 2013 at 2:29 PM, Nathan Cutler presnyprek...@gmail.comwrote: Call `print $RT_enabled_users-BuildSelectQuery, \n;`, check SQL manually and it is

Re: [rt-users] Fwd: How to list all enabled users in Perl script?

2013-09-03 Thread Nathan Cutler
Find `sub Next` in lib/RT/Extension/MergeUsers.pm, put logging or printing debug statements there to check what is going on. OK, I'll try that. I ran some more tests on my testing RT instance. Here's what I just found out: When no users are merged, the script produces the same output (same