Alignment of calendar events with new timetable

Bug #137557 reported by Tom Hoffman
2
Affects Status Importance Assigned to Milestone
SchoolTool
Triaged
High
Douglas Cerna

Bug Description

Create sample data. Then make a new, wacky timetable schema that won't line up with the existing timetable (make periods early in the morning, for example. Make that the default timetable for calendar views. Existing events won't line up with the new grid.

Tags: calendar
Changed in schooltool:
importance: Undecided → Low
Changed in schooltool:
assignee: nobody → ignas
Revision history for this message
Ignas Mikalajūnas (ignas) wrote :

Can't really imagine a possible fix. We could disable the default grid setting and try to do some fancy heuristics to pick the right one for the day you are looking at. We already do some period shifting that works if schemas are simmilar. But still - events on the same day can be from timetables using different schemas and making that line up is something that would take a lot of time to implement, while would only help a very small subset of users.

tags: added: calendar ui
Changed in schooltool:
assignee: Ignas Mikalajūnas (ignas) → Justas Sadzevičius (justas-pov)
Revision history for this message
caveman (caveman-poid) wrote :

This still seems to be a problem!

We have a weekly schedule that starts at 7:40 each day of the week (except for saturdays). This means that each overlay calendar is off (earlier in the day) by 20 minutes except for Saturday. I take it the regular grid expects an 8:00 start so anything different then this causes grief.

Do you know any way of getting around this?

Revision history for this message
Tom Hoffman (tom-hoffman) wrote :

Hi caveman,

Would you mind posting a screenshot?

Revision history for this message
caveman (caveman-poid) wrote :

Here are two pictures, side by side. The first one is the offset schedule when our current day starts at 7:40. Then, after putting in a calender entry at 7:40 the system automatically bumps the calendar back to start at 7:00 and overlay now works.

When the start is at 7:40 and I put in a calendar entry for the first period (starting at 8:00) it shows up right at the top of the calendar so in essence is earlier than expected by 20 minutes.

I also put in an entry for 6:30 which bumped the calendar start time to 6:00 and the overlay lined up again.

Revision history for this message
caveman (caveman-poid) wrote :

I have done a bit more experimenting and found that there is a problem even though the scheduled day starts at 7:00.

In the following picture you will find that both days have the same schedule, starting at 7:00 but the first one has all of it's calendar entries offset earlier by 1 hour (the width of the assembly). However, when I add a calendar entry to the assembly, all the rest of the schedule lines up appropriately.

Hope this helps.

Revision history for this message
caveman (caveman-poid) wrote :

In case you are wondering, I am just using calendar entries as they are the easiest to create and remove. However, the same pattern is seen when I have tested entries created by sections.

I am not sure if it has to do with the fact that I have small gaps in my schedule or not. Eg, notice the gap between 7:30 and 7:40 and also between 12:00 and 12:10 in the following schedule

Friday schedule as seen in the last post is as follows:
07:00-07:30
07:40-08:40
08:40-09:20
09:20-10:00
10:00-10:30
10:30-11:15
11:15-12:00
12:10-12:40
12:40-13:30
13:30-14:15
14:15-15:00
15:00-15:30
15:30-16:00
16:00-17:30
17:30-18:00

Changed in schooltool:
importance: Low → High
assignee: Justas Sadzevičius (justas-pov) → Douglas Cerna (replaceafill)
milestone: none → 2.7.0
status: New → Triaged
tags: removed: ui
Changed in schooltool:
milestone: 2.7.0 → 2.8.0
Changed in schooltool:
milestone: 2.8.2 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.