Edgewall Software
Modify

Opened 15 years ago

Closed 15 years ago

#7949 closed enhancement (fixed)

Link milestone column in query results to milestone page

Reported by: JoshuaH@… Owned by: Remy Blank
Priority: normal Milestone: 0.11.3
Component: report system Version: 0.11.1
Severity: normal Keywords: review
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

It would be nice if the milestone column on a query page linked to the appropriate milestone page. Patch against 0.11.1 attached.

Attachments (2)

milestone-link.diff (1.1 KB ) - added by JoshuaH@… 15 years ago.
Suggested patch against 0.11.1
7949-milestone-link-r7782.patch (1.5 KB ) - added by Remy Blank 15 years ago.
Patch against 0.11-stable adding links to milestones in ticket report and query

Download all attachments as: .zip

Change History (6)

by JoshuaH@…, 15 years ago

Attachment: milestone-link.diff added

Suggested patch against 0.11.1

comment:1 by Remy Blank, 15 years ago

Milestone: 0.11.3
Owner: set to Remy Blank

Sounds like a good idea. I'll put it on my to-do list.

by Remy Blank, 15 years ago

Patch against 0.11-stable adding links to milestones in ticket report and query

comment:2 by Remy Blank, 15 years ago

Keywords: review added

The patch above adds links to milestones in ticket reports and queries, using a slightly simpler approach for getting the links (using href.milestone instead of a Resource object; in the original patch that resource was constructed with resource.child(), which is incorrect, as milestones are not children of tickets).

This works well, but has the disadvantage that the link rendering for milestones is hardcoded, instead of going through the milestone IResourceManager. So for example, closed milestones are not displayed with a strikeout style. IMO, this looks nicer anyway.

The major advantage is speed: going through the IResourceManager would require a DB query per ticket in the result set. Not acceptable IMO.

Opinions?

in reply to:  2 comment:3 by JoshuaH@…, 15 years ago

Replying to rblank:

Opinions?

Your patch works fine for me. As far as correctness goes, I was just trying to find a way to accomplish the task; documentation about what the various macros available to templates actually mean seems to be scarce in the version of Trac I have. Perhaps it's improved since then (or is available on the website, I didn't look in depth).

comment:4 by Remy Blank, 15 years ago

Resolution: fixed
Status: newclosed

Patch applied in [7808].

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Remy Blank.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Remy Blank 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.