[Trac] Re: How to transfer tickets from one environment to another

2010-04-28 Thread BasHopman
Hi Mark,

I posted a similar question recently here
http://groups.google.com/group/trac-users/browse_thread/thread/389a0a9040dcbae3#
Since I did not receive any response, I developed a solution myself.

As I do not have very much in-debt knowledge about TRAC, I started
using ticket_clone.py (http://trac.edgewall.org/wiki/TicketClone) and
modified it.

It comes down to this:
- I modified ticket_clone.py such that it posts to a ticket_clone.php
on the same server
- ticket_clone.php offers a list of environments to which a ticket can
be cloned (including the original environment where the ticket comes
from)
- after selecting the target environment en confirming,
ticket_clone.php then uses XML-RPC calls to inject the ticket into the
target environment, in the description a link is added to the original
ticket
- additionally, ticket_clone.php uses a XML-RPC call to update the
original ticket with comment containing a reference to the newly
created ticket

I would have preferred implementing it fully within the TRAC
environment, but as stated earlier, I do not have the knowledge
needed, so this is second best...

Please let me know what you think about this solution.

Bas

On Apr 29, 5:32 am, mark ardiente  wrote:
> Hi,
>
> It would be great if someone could help me transfer tickets from a previous 
> trac environment to another trac environment.
> My problem is the ticket id wouldn't be unique anymore and reference to it 
> would be broken once it tickets are transferred.
>
> Thanks,
> Mark
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Trac Users" group.
> To post to this group, send email to trac-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> trac-users+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/trac-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



Re: [Trac] How to transfer tickets from one environment to another

2010-04-28 Thread You Li

Hi Mark,
 My suggestion is to find the latest ticket id from the new trac 
environment. And update the old database wherever the ticket id is 
stored with "old_ticket_id"+"latest_ticket_id" from new environment.

 This shouldn't be hard and maybe less than hundred line of SQL will do it.
mark ardiente wrote:

Hi,

It would be great if someone could help me transfer tickets from a 
previous trac environment to another trac environment.
My problem is the ticket id wouldn't be unique anymore and reference 
to it would be broken once it tickets are transferred.
 


Thanks,
Mark



--
You received this message because you are subscribed to the Google 
Groups "Trac Users" group.

To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



--
You(Ricky) Li
Rensselaer Polytechnic Institute

--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



[Trac] How to transfer tickets from one environment to another

2010-04-28 Thread mark ardiente
Hi,

It would be great if someone could help me transfer tickets from a previous 
trac environment to another trac environment.
My problem is the ticket id wouldn't be unique anymore and reference to it 
would be broken once it tickets are transferred.

 

Thanks,
Mark

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



RE: [Trac] Howto add maintainer(s) to CC:

2010-04-28 Thread Noah Kantrowitz
Yes, that will have to be a plugin. You could set something up as an
ITicketListener easily enough (depends on how smart you want it to be re:
"reassigning" from one port to another).

--Noah

> -Original Message-
> From: trac-users@googlegroups.com [mailto:trac-us...@googlegroups.com]
> On Behalf Of Marko Käning
> Sent: Wednesday, April 28, 2010 3:03 PM
> To: trac-users@googlegroups.com
> Subject: Re: [Trac] Howto add maintainer(s) to CC:
> 
> Hi Olemis,
> 
> On Apr 27, 2010, at 6:32 PM, Olemis Lang wrote:
> 
> >> Well, but what if you have to issue some external command to extract
> the email addresses to be inserted into the CC-field?
> >
> > If we are talking about maintainer e-mail : Why would you use a
> script ?
> 
> Well, the maintainer is actually not known to trac, as far as I
> understand. The one submits a ticket would be the ticket owner. The
> CC:-list should be filled with email addresses of port maintainers.
> 
> Example:
> 
> 1) There is a ticket to be filed for port "kmymoney". User fills out
> all required fields in ticket submission.
> 
> 2) 'port info kmymoney' returns something like this:
> ---
> kmymoney @1.0.4, Revision 6 (kde, finance)
> ...
> Maintainers:  mk-macpo...@techno.ms, b...@pixilla.com
> ---
> 
> 3) These maintainers would have to be extracted from the previous "port
> info" command output and added to the CC:-list.
> 
> ***
> 
> How to accomplish something like this? I guess it's not possible to
> reflect a workflow like this with a trac.ini-configuration, right?
> I am afraid one would have to hack a little plugin for this task...
> 
> Hope this makes clearer what I would like to have.
> 
> (Sorry, have never configured a trac server, which is why I might ask
> something silly.)
> 
> Greets,
> Marko
> 
> --
> You received this message because you are subscribed to the Google
> Groups "Trac Users" group.
> To post to this group, send email to trac-us...@googlegroups.com.
> To unsubscribe from this group, send email to trac-
> users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/trac-users?hl=en.


-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



Re: [Trac] Howto add maintainer(s) to CC:

2010-04-28 Thread Marko Käning
Hi Olemis,

On Apr 27, 2010, at 6:32 PM, Olemis Lang wrote:

>> Well, but what if you have to issue some external command to extract the 
>> email addresses to be inserted into the CC-field?
> 
> If we are talking about maintainer e-mail : Why would you use a script ?

Well, the maintainer is actually not known to trac, as far as I understand. The 
one submits a ticket would be the ticket owner. The CC:-list should be filled 
with email addresses of port maintainers.

Example:

1) There is a ticket to be filed for port "kmymoney". User fills out all 
required fields in ticket submission.

2) 'port info kmymoney' returns something like this:
---
kmymoney @1.0.4, Revision 6 (kde, finance)
...
Maintainers:  mk-macpo...@techno.ms, b...@pixilla.com
---

3) These maintainers would have to be extracted from the previous "port info" 
command output and added to the CC:-list.

***

How to accomplish something like this? I guess it's not possible to reflect a 
workflow like this with a trac.ini-configuration, right?
I am afraid one would have to hack a little plugin for this task...

Hope this makes clearer what I would like to have.

(Sorry, have never configured a trac server, which is why I might ask something 
silly.)

Greets,
Marko

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



[Trac] Re: Can create permissions group gPigs but not assign users

2010-04-28 Thread Hal
On Apr 26, 10:57 am, Remy Blank  wrote:
> I can confirm this behavior on current trunk. Permissions must be
> all-uppercase and groups all-lowercase. The code checks for either
> .isupper() or .islower() to be true for all arguments to "permission add".
>
> The admin panel only checks that neither users nor groups are
> all-uppercase. No other checks are done.
>
> I guess the inconsistency counts as a bug, so you may want to open a
> ticket for that (make sure you search for duplicates first). I don't
> know which behavior is correct, though.

The "principle of least surprise" suggests the admin panel behavior is
correct, and the bug is in trac-admin.

If the admin panel is changed, many existing installations will break
(it's a restriction of rules). If trac-admin is changed, no existing
installations break (it's a relaxation of rules).

--Hal

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.