Modify

Opened 15 years ago

Closed 15 years ago

Last modified 12 years ago

#6383 closed enhancement (wontfix)

Small patch to also include a listing of the tickets that refer to the specified ticket from either description or comment

Reported by: carstenklein@… Owned by: David Francos Cuartero
Priority: normal Component: TicketBackLinksMacro
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

In TicketBackLinksMacro insert the attached code snipped right before the return statement in the expand_macro method.

It will give you a list of all tickets referring to the specified ticket thispage.

Attachments (6)

TicketBackLinksMacroPatch.tar.gz (1.6 KB) - added by carstenklein@… 15 years ago.
The "patch" to the TicketBackLinksMacro (macro.py)
TracDbBackendPatch.tar.gz (186 bytes) - added by carstenklein@… 15 years ago.
The "patch" to the trac DB backends for reference
TracDbBackendPatch.tar.2.gz (5.3 KB) - added by carstenklein@… 15 years ago.
The "patch" to the trac DB backends for reference CORRECTED
TicketBackLinksMacroPatch.tar.2.gz (1.7 KB) - added by carstenklein@… 15 years ago.
The "patch" to the TicketBackLinksMacro (macro.py) CORRECTED
TracDBBackendRegexp.patch (2.9 KB) - added by carstenklein@… 15 years ago.
corrected version of the patch to the database backends for reference
TicketBackLinksMacro.patch.tar.gz (1.2 KB) - added by carstenklein@… 15 years ago.
corrected version of the patch, the former did not match all occurrences in the ticket_change table

Download all attachments as: .zip

Change History (12)

comment:1 Changed 15 years ago by carstenklein@…

I have updated the patch with a corrected version and finally managed to upload it as an attachment as well ;)

Please note that this version requires changes to the database backends included with trac. I have included those changes in the second attachment for reference. I will try to have these changes merged into the mainline of trac so that they can be included with the next minor release.

Changed 15 years ago by carstenklein@…

The "patch" to the TicketBackLinksMacro (macro.py)

Changed 15 years ago by carstenklein@…

Attachment: TracDbBackendPatch.tar.gz added

The "patch" to the trac DB backends for reference

Changed 15 years ago by carstenklein@…

Attachment: TracDbBackendPatch.tar.2.gz added

The "patch" to the trac DB backends for reference CORRECTED

comment:2 Changed 15 years ago by carstenklein@…

somehow I managed to only package the symbolic links to the trac db backends, see the second attachment for the actual files.

comment:3 Changed 15 years ago by carstenklein@…

There is a new version of the macro patch. This version fixes the issue that the original description in the table ticket was not queried.

See TicketBackLinksMacroPatch.tar.2.gz

Changed 15 years ago by carstenklein@…

The "patch" to the TicketBackLinksMacro (macro.py) CORRECTED

comment:4 in reply to:  1 Changed 15 years ago by anonymous

comment:5 Changed 15 years ago by carstenklein@…

Updated the patch to macro.py and made it a unified patch.

Updated also the patch to the current trunk of trac and made it a unified patch, also. Included it here for reference.

Changed 15 years ago by carstenklein@…

Attachment: TracDBBackendRegexp.patch added

corrected version of the patch to the database backends for reference

Changed 15 years ago by carstenklein@…

corrected version of the patch, the former did not match all occurrences in the ticket_change table

comment:6 Changed 15 years ago by anonymous

Resolution: wontfix
Status: newclosed

Sorry, not going to apply that patches, having upstream to need to update trac is just not something i'm gonna do.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain David Francos Cuartero.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.