Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#4322 closed defect (fixed)

Ticket History Issues

Reported by: Tim Hatch <trac@…> Owned by: Christian Boos
Priority: high Milestone: 0.11
Component: ticket system Version: devel
Severity: normal Keywords: history diff
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Apologies in advance for this megaticket. I thought it might be good to have them all in one place since they're all related to the solution for #2945. Issues exist as of r4391.

  • timeline/ticket_history.html:
    • $item.ipnr is always empty for me.
  • timeline/ticket_view.html:
    • attachments don't show up when explicitly viewing current version (by design? what if I want an old attachment, are they still around?)
    • viewing explicit version always uses newest's description
  • timeline/ticket_diff.html:
    • Doesn't include diff.js so the unified-vs-tabular links aren't there

Attachments (0)

Change History (6)

in reply to:  description ; comment:1 by Christian Boos, 18 years ago

Keywords: history diff added
Milestone: 0.11
Owner: changed from Jonas Borgström to Christian Boos
Priority: normalhigh

Replying to Tim Hatch <trac@timhatch.com>:

Apologies in advance for this megaticket.

No problem, this kind of check pointing is well appreciated.

I thought it might be good to have them all in one place since they're all related to the solution for #2945. Issues exist as of r4391.

Well, not really, some have always been there. Let's go through.

  • timeline/ticket_history.html:
    • $item.ipnr is always empty for me.

ipnr was never recorded for the ticket subsystem, see #1890 and the TracDev/Proposals/Journaling.

  • timeline/ticket_view.html:
    • attachments don't show up when explicitly viewing current version (by design? what if I want an old attachment, are they still around?)

Attachment history is currently parallel to normal ticket history, and also a bit "volatile": when an attachment is deleted or replaced the old attachment is deleted/replaced and the original attachment event simply disappears. Whether this is a good thing or not can be discussed, of course, as well as what would be a better approach, but this behavior was there since the beginning.

A short term "fix" would be to nevertheless display the attachments when we can do so, in viewing a specific ticket version (currently those events are simply skipped, because I felt they're not really part of the history because of the limitations described above).

  • viewing explicit version always uses newest's description

That's defective, yes.

  • timeline/ticket_diff.html:
    • Doesn't include diff.js so the unified-vs-tabular links aren't there

Ok, that's another defect.

comment:2 by Christian Boos, 18 years ago

Main issue fixed in r4401.

From #4326, I gather that you're working on the diff.js issue, so I'll leave the issue open.

comment:3 by Tim Hatch <trac@…>, 18 years ago

Here's the fix:

  • trac/ticket/web_ui.py

     
    3535from trac.util.text import CRLF, shorten_line
    3636from trac.versioncontrol.diff import get_diff_options, diff_blocks
    3737from trac.web import IRequestHandler
    38 from trac.web.chrome import add_link, add_stylesheet, INavigationContributor, \
    39                             Chrome
     38from trac.web.chrome import add_link, add_script, add_stylesheet, \
     39                            INavigationContributor, Chrome
    4040
    4141
    4242class InvalidTicket(TracError):
     
    411411                     'Version %d' % next_version)
    412412
    413413        add_stylesheet(req, 'common/css/diff.css')
     414        add_script(req, 'common/js/diff.js')
    414415
    415416        data.update({
    416417            'title': 'Ticket Diff',

comment:4 by Christian Boos, 18 years ago

Resolution: fixed
Status: newclosed

Ok, applied in r4403.

OTOH, I wonder if the unified diff view is really useful in these situations… So I did it for the sake of consistency, but I wouldn't have a problem if that was later reverted ;)

in reply to:  1 comment:5 by Christopher Lenz, 18 years ago

Replying to cboos:

Replying to Tim Hatch <trac@timhatch.com>:

  • timeline/ticket_history.html:
    • $item.ipnr is always empty for me.

ipnr was never recorded for the ticket subsystem, see #1890 and the TracDev/Proposals/Journaling.

So then, why is the template trying to display the IP address? That should be removed until it's actually backed by functionality, in the meantime all it does is cause confusion.

comment:6 by Christian Boos, 18 years ago

Well, I removed it from the display in r4406, but I kept it in the template, as I'd like to ultimately converge to some generic _history or _diff templates.

There are currently only a few differences:

It would be better to have a common template and then be able to "inject" some additional elements to differentiate them where needed (e.g. add the delete version form in wiki diff).

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.