Edgewall Software

Ticket #2325 (new enhancement)

Opened 3 years ago

Last modified 4 months ago

make trac-post-commit-hook also set the owner to the commiter

Reported by: Pedro Algarvio <ufs@…> Owned by: jonas
Priority: normal Milestone: 0.11-retriage
Component: general Version: 0.9
Severity: trivial Keywords:
Cc: ufs@…

Description

trac-post-commit-hook could also set the owner of the ticket prior to closing it to the user commiting.

  • ./trac-post-commit-hook

    old new  
    151151        for tkt_id in tickets: 
    152152            try: 
    153153                ticket = Ticket(self.env, tkt_id) 
     154               ticket['owner'] = self.author   # Set ticket ownership to commiter 
    154155                ticket['status'] = 'closed' 
    155156                ticket['resolution'] = 'fixed' 
    156157                ticket.save_changes(self.author, self.msg, self.now) 

Attachments

Change History

  Changed 3 years ago by Pedro Algarvio <ufs@…>

  • type changed from defect to enhancement

  Changed 3 years ago by Pedro Algarvio <ufs@…>

  • cc ufs@… added

  Changed 2 years ago by Pedro Algarvio, aka, s0undt3ch <ufs@…>

  • milestone set to 0.11

in reply to: ↑ description   Changed 10 months ago by osimons

Replying to Pedro Algarvio <ufs@ufsoft.org>:

trac-post-commit-hook could also set the owner of the ticket prior to closing it to the user commiting.

It could, but should it? A nice clean-cut decision ticket, finally :-) Line into the script or not?

As this has stayed open with no registered duplicates or other known demands for this feature, I suppose someone has to speak up in favour of it, or else we might as well close it as 'wontfix'.

Cast your votes, people!

follow-up: ↓ 6   Changed 6 months ago by Kamil Kisiel <kamil@…>

This patch makes no sense. IMO the "owner" of a ticket is the person responsible for overseeing its progress, and not necessarily the person who is doing commits that reference it.

Imagine if you have 4 or 5 people making commits that reference the same ticket, the owner field would be jumping all over the place.

in reply to: ↑ 5   Changed 4 months ago by Mike Stoddart <stodge@…>

Replying to Kamil Kisiel <kamil@…>:

This patch makes no sense. IMO the "owner" of a ticket is the person responsible for overseeing its progress, and not necessarily the person who is doing commits that reference it. Imagine if you have 4 or 5 people making commits that reference the same ticket, the owner field would be jumping all over the place.

I agree, it makes no sense. Ownership should not be related to who commits a change. In our environment, I expect only one person to commit changes for each ticket. A ticket's ownership should only change via the browser interface.

  Changed 4 months ago by palgarvio

My initial idea was if the ticket had no owner.

Add/Change #2325 (make trac-post-commit-hook also set the owner to the commiter)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change from jonas. Next status will be 'new'
The owner will change from jonas to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.