Modify

Opened 5 years ago

Closed 5 years ago

Last modified 23 months 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: XayOn
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@… 5 years ago.
The "patch" to the TicketBackLinksMacro (macro.py)
TracDbBackendPatch.tar.gz (186 bytes) - added by carstenklein@… 5 years ago.
The "patch" to the trac DB backends for reference
TracDbBackendPatch.tar.2.gz (5.3 KB) - added by carstenklein@… 5 years ago.
The "patch" to the trac DB backends for reference CORRECTED
TicketBackLinksMacroPatch.tar.2.gz (1.7 KB) - added by carstenklein@… 5 years ago.
The "patch" to the TicketBackLinksMacro (macro.py) CORRECTED
TracDBBackendRegexp.patch (2.9 KB) - added by carstenklein@… 5 years ago.
corrected version of the patch to the database backends for reference
TicketBackLinksMacro.patch.tar.gz (1.2 KB) - added by carstenklein@… 5 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 follow-up: Changed 5 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 5 years ago by carstenklein@…

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

Changed 5 years ago by carstenklein@…

The "patch" to the trac DB backends for reference

Changed 5 years ago by carstenklein@…

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

comment:2 Changed 5 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 5 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 5 years ago by carstenklein@…

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

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

comment:5 Changed 5 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 5 years ago by carstenklein@…

corrected version of the patch to the database backends for reference

Changed 5 years ago by carstenklein@…

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

comment:6 Changed 5 years ago by anonymous

  • Resolution set to wontfix
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.