Edgewall Software

Changes between Version 27 and Version 28 of TracTicketsCustomTimeFields


Ignore:
Timestamp:
Apr 23, 2010, 1:56:16 AM (14 years ago)
Author:
hoff.st@…
Comment:

updated information according to latest development

Legend:

Unmodified
Added
Removed
Modified
  • TracTicketsCustomTimeFields

    v27 v28  
    66 * add 'time' to available types, inheriting most of the definition from 'text', a simple (one line) text field[[BR]]
    77
    8 At that point TracQuery already works as intended by providing from..to
    9 input fields on selection of custom time fields for query.
    10 Praise to the flexible, modularized software design of Trac developers!
     8At that point TracQuery already shows from..to input fields on selection of custom time fields for query as desired.
     9Praise to the flexible, modularized software design of Trac developers! Making it actually work and display results in pretty date/time format is a different thing.
    1110
    12 But now at least basic knowledge on how ticket data is handled inside Trac is needed.[[BR]]
     11But now more than basic knowledge on how ticket data is handled inside Trac is needed.[[BR]]
    1312(I found not much hints so had to study the code and initially did most things wrong. A multiple dozen not working or buggy local code revisions later, after discussion in #python, etc. I decided on the implementation detailed below. Please discuss, if you know better, I'm still a Python beginner.)
    1413
     
    2827   * patched version of [th:wiki:AnnouncerPlugin AnnouncerPlugin] for now
    2928   * still unsure on patching Trac Ticket Notifications itself, since it looks like almost dead code (sorry, but Announcer is years ahead) and Announcer is already officially attempting to replace Trac Ticket Notifications (see below)
     29 * extend ''ticket.query'' and ''ticket/templates/query_results.html'' to
     30  * convert custom time strings with POSIX microsecond time stamps from ticket_custom db table to datetime.datetime values
     31  * format custom time values for display differently than standard time values
    3032
    3133=== Status of Development ===
     
    5557==== Known Bugs ====
    5658Problems (with priority) occurring arround ticket changes
    57  * (A) {{{TypeError: unsupported type for timedelta microseconds component: unicode}}} on CustomQuery
    5859 * (B) [TracNotification Trac Notification] system unpatched, need to test and investigate, if necessary at all
    5960fixed:
    60  * preview custom time stamp changes is throwing an exception on internal formatting: fixed after realising, that we deal with different formats in _render_property_diff()
     61 * {{{TypeError: unsupported type for timedelta microseconds component: unicode}}} on TracQuery: simply needed to take care for conversation of variable type 'string' to a number and handle custom time values in trac/ticket/templates/query_results.html separately from standard time fields
     62 * preview custom time stamp changes is throwing an exception on internal formatting: resolved after realising, that we deal with different formats in _render_property_diff()
    6163  a. string with POSIX microsecond time stamp from db, directed to ticket changes list
    6264  b. datetime.datetime values from user input for change-in-progress, directed to preview current custom time field changes