Modify

Opened 5 years ago

Last modified 8 months ago

#5260 assigned defect

Create example pre-commit hook to stop closing of blocked ticket

Reported by: IBBoard Owned by: rjollos
Priority: normal Component: MasterTicketsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

Once the JS is fixed to disable the "resolve as" button when a ticket is blocked and the blocking tickets are open, the ticket cannot be closed from the Web interface. If Trac is being integrated with SVN using the commit hooks, users can still "closes #XX" the ticket and ignore the blocking tickets.

It would be useful if someone could come up with an example pre-commit hook that does all of the usual stuff for checking for valid tickets, but also makes sure tickets being closed aren't blocked by open tickets when a commit is made.

The odd-ball condition that will also need checking is when the blocking open ticket is also being closed in the same commit (e.g. there is a sub-ticket and a master ticket and the commit "fixes #sub and #master" or "closes #master and #sub"). There are also potential chain sequences where X blocks Y, which blocks Z (and potentially more), all of which are open and all of which are being closed in a single commit.

Attachments (0)

Change History (1)

comment:1 Changed 8 months ago by rjollos

  • Owner changed from coderanger to rjollos
  • Status changed from new to assigned

Add Comment

Modify Ticket

Action
as assigned .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.