|Version 3 (modified by kirean@…, 6 years ago) (diff)|
Add support for ticket dependencies to Trac
NOTE: The 0.10 version of this plugin suffers from many systemic design flaws. The 0.11 version has been re-written from the ground up to avoid these, however I do not currently have the time to invest in a backport. Please do not file tickets against the 0.10 version, as I will close all of them as wontfix. Instructions to install the 0.11 version will follow shortly.
NOTE 2 Trac 0.11 revision 5945 currently brakes Trac together with this plugin.
Traceback (most recent call last): File "/misc/svkcheckout/trac/branches/cap-hacks/trac/web/api.py", line 342, in send_error 'text/html') File "/misc/svkcheckout/trac/branches/cap-hacks/trac/web/chrome.py", line 577, in render_template stream |= self._filter_stream(req, method, filename, stream, data) File "/usr/lib/python2.4/site-packages/Genshi-0.5dev_r630-py2.4.egg/genshi/core.py", line 122, in __or__ return Stream(_ensure(function(self))) File "/misc/svkcheckout/trac/branches/cap-hacks/trac/web/chrome.py", line 641, in inner data) File "/usr/lib/python2.4/site-packages/TracMasterTickets-2.0-py2.4.egg/mastertickets/web_ui.py", line 50, in filter_stream for field, value in data['mastertickets']['field_values'].iteritems(): KeyError: 'mastertickets'
Just put the ticket numbers that a given ticket is blocking in the Blocking field. Enter just the number, no leading #. Separate multiple numbers with commas.
Make sure you add the custom field below.
If you have any issues, create a new ticket.
Download the zipped source from here.
[components] mastertickets.* = enabled [ticket-custom] blocking = text blocking.label = Blocking
-  by rjollos on 2013-07-02 20:37:23
Import any from trac.util.compat for Python 2.4 compatibility.
-  by rjollos on 2013-04-04 10:00:08
Refs #10194: Implemented a fix for the IntegrityError when importing tickets with the TicketImportPlugin and not defining a changetime in the dataset (or in some cases of using the same changetime for multiple tickets).
The ticket id, time and field columns must be unique in the ticket_change table. Importing a set of tickets that are all assigned a changetime of "now" will result in an IntegrityError whenever two or more ticket share a relation with a single other ticket.
This feels like more of a workaround than a solution, but it will hopefully do for now.
-  by rjollos on 2013-04-04 09:59:49
Added unit test framework with no tests.