Issue Details (XML | Word | Printable)

Key: CAL-236
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Jonathan Nolen
Reporter: John Martin
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Confluence Calendar Plugin

{calendar-events} Multiple sub-calendars with large numbers of events will prevent proper listing

Created: 19/Feb/08 11:18 AM   Updated: 24/Feb/08 11:11 AM
Component/s: {calendar}
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. Text File cal-236.patch (2 kB)


Labels:


 Description  « Hide
Multiple sub-calendars with more than the maximum count of events (default is 20), will override reports from subsequent sub-calendars in the {calendar-events} macro.

To reproduce, create a calendar with two sub-calendars, A and B. Add an event per day for the next 20 days for calendar A. Do the same on the same days for calendar B. Create a {calendar-events} macro, and only the 20 events from A will appear, one per day, even though it should report two events per day for ten days.

Well, sometimes only the 20 events from A will appear, but other times I've found that 20 events will be shown that are a mixture of random events from the two calendars, but rarely will it show two events per day for ten days.



 All   Comments   Work Log   Change History   FishEye   Crucible   Builds      Sort Order: Ascending order - Click to sort in descending order
John Martin added a comment - 24/Feb/08 11:08 AM
Added slight extra observed behaviour.

John Martin added a comment - 24/Feb/08 11:11 AM
Here is a quick patch that solves the visible behaviour by moving the event results size limiter after the sorting. This does the trick, but I imagine that huge calendars will show a performance hit on this approach because instead of sorting twenty of the events, it's sorting all the events and then picking the first 20.