Opened 17 years ago
Closed 14 years ago
#6289 closed defect (fixed)
[PATCH] Incorrect priorities in iCal roadmap format
Reported by: | 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)
Change History (8)
by , 17 years ago
Attachment: | ics_roadmap_priority_fix.diff added |
---|
comment:1 by , 17 years ago
Milestone: | → 0.11.1 |
---|---|
Severity: | normal → minor |
by , 14 years ago
Attachment: | ics_roadmap_priority_fix-2.diff added |
---|
updated patch against stable-0.12 r10174
comment:3 by , 14 years ago
Cc: | added |
---|---|
Keywords: | review added |
Milestone: | next-minor-0.12.x → 0.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:5 by , 14 years ago
Sure, thanks for the reminder. Patch looks good, so I'll test and commit.
comment:6 by , 14 years ago
Keywords: | review removed |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Committed in [10245:10246] for 0.12 and trunk. Thanks for your patience ;-)
Thanks for the patch.