Opened 9 years ago

Last modified 9 years ago

#11244 new enhancement

Don't create trackbacks in select instances

Reported by: Ben Allen Owned by: ejucovy
Priority: normal Component: TracBacksPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.0


The TracBacksPlugin is an extremely useful tool for automatic cross-referencing, but some other plugins handle cross-referencing on their own. This does not play well with this plugin, and can result in tickets being littered by automatically generated content.

As an example, I also have the MasterTicketsPlugin installed. This allows tickets to have parent/child relationships. When I modify (for instance) ticket #10 to indicate that it is a child of ticket #5, a comment will be added to ticket #10 indicating Parent Tickets set to 5. The MasterTicketsPlugin will then post a comment on ticket #5 to say Add a subticket #10. Since this includes a ticket number, this triggers the TracBacksPlugin to add a comment on ticket #10 to indicate that it was mentioned in another ticket. This sequence results in a redundant post to ticket #10 that says the same thing as the previous post.

This is only one example. Many plugins handle their own cross-references, and I expect that this problem would be seen for those plugins as well.

To resolve this, I recommend adding a configuration option that allows a user to specify a regular expression (or list of regular expressions) to ignore. If a comment that would normally trigger the creation of a tracback matches that regular expression, then the TracBacksPlugin would not create a trackback.

Attachments (0)

Change History (1)

comment:1 Changed 9 years ago by Ben Allen

I don't seem to be able to edit the ticket description, so I'll just leave a note here:

In my original description, I mentioned the MasterTicketsPlugin. This was incorrect. I should have said SubticketsPlugin instead.

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain ejucovy.

Add Comment

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

Note: See TracTickets for help on using tickets.