Edgewall Software
Modify

Opened 17 years ago

Closed 14 years ago

#6289 closed defect (fixed)

[PATCH] Incorrect priorities in iCal roadmap format

Reported by: Trevor MacPhail <trevor@…> Owned by: osimons
Priority: normal Milestone: 0.12.2
Component: roadmap Version: 0.10-stable
Severity: minor Keywords: patch
Cc: lists@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Priorities in an iCal file are supposed to range from 1(highest) to 9(lowest). The current output of an iCal roadmap only generates this range if there are exactly 9 priorities.

If there are, for example, 3 priorities, the possible output values are 3,6, and 9. This means that priority 2(presumably 'normal' priority) in trac will output and display as 6(slightly lower than normal). And if there are more than 9, then one or more of the highest priorities gets output as 0.

I've attached a patch which causes the range to always be from 1 to 9 and the median priority will always output 5. If there is an even number of priorities, then there is no median, but the closest value under the median should get truncated to 5 after division if there are enough priorities.

Attachments (2)

ics_roadmap_priority_fix.diff (529 bytes ) - added by Trevor MacPhail <trevor@…> 17 years ago.
ics_roadmap_priority_fix-2.diff (567 bytes ) - added by Thijs Triemstra <lists@…> 14 years ago.
updated patch against stable-0.12 r10174

Download all attachments as: .zip

Change History (8)

by Trevor MacPhail <trevor@…>, 17 years ago

comment:1 by Christian Boos, 17 years ago

Milestone: 0.11.1
Severity: normalminor

Thanks for the patch.

comment:2 by osimons, 16 years ago

Keywords: patch added
Owner: changed from Christopher Lenz to osimons

I'll put it on my todo.

by Thijs Triemstra <lists@…>, 14 years ago

updated patch against stable-0.12 r10174

comment:3 by Thijs Triemstra <lists@…>, 14 years ago

Cc: lists@… added
Keywords: review added
Milestone: next-minor-0.12.x0.12.2
Summary: [patch] Incorrect priorities in iCal roadmap format[PATCH] Incorrect priorities in iCal roadmap format

I attached an updated patch, tested with ical on osx 10.6 and the priorities are now fixed (with a vanilla trac installation). Moving it to 0.12.2 cause this looks like a minor ticket and it's way overdue:)

comment:4 by Christian Boos, 14 years ago

Simon, do you still want to take care of this one?

comment:5 by osimons, 14 years ago

Sure, thanks for the reminder. Patch looks good, so I'll test and commit.

comment:6 by osimons, 14 years ago

Keywords: review removed
Resolution: fixed
Status: newclosed

Committed in [10245:10246] for 0.12 and trunk. Thanks for your patience ;-)

Modify Ticket

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