You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
IDs for calendar events are based on event start timestamp randomized by up to 15 days in either direction.
Calendar events longer than 15 days are considered "long" events and are loaded differently.
When we load "short" events for a given month we load with IDs that are based on start/end of the month +/- 15 days out into previous/next month, to include events with randomized IDs.
CalendarFacade#updateEventMap will only put events on days in the target month, no matter when events start or end. That is, if we are calling updateEventMap() for November it will only add November days to the map, even for events that start e.g. in October.
That means that in some cases events that overflow into the next month will be displayed. However, if the randomized ID is based on timestamp that is older than "15th of the previous month" then it will not be included and won't be displayed.
To Reproduce
Steps to reproduce the behavior:
Go to calendar
Create an event in the second half of the month that ends in the next month. It must be shorter than 15 days.
Get (un)lucky with ID assignment so that randomized ID will use the timestamp in the first half of the month. You can modify generateEventElementId() to make it deterministic.
Log out/in again to reload the calendar.
Check events in the next month. If you've been (un)lucky the event won't be there. Expected behavior
Events that end in the next month are always displayed in the latter month.
Sample data
Unlucky event id ["LoCcwbJ--7-1","MTcyODc5MDc3ODIzNA"]
Month start 1730415600000Fri Nov 01 00:00:00 CET 2024
Month end 1733007600000Sun Dec 01 00:00:00 CET 2024
Start id for loading month's events: MTcyOTAzMzIwMDAwMA1729033200000Wed Oct 16 01:00:00 CEST 2024
End id for loading month's events: MTczNDM5MDAwMDAwMA1734390000000Tue Dec 17 00:00:00 CET 2024
Notes
The event will only be cut if it ends after the first week of the month.
The text was updated successfully, but these errors were encountered:
Describe the bug
IDs for calendar events are based on event start timestamp randomized by up to 15 days in either direction.
Calendar events longer than 15 days are considered "long" events and are loaded differently.
When we load "short" events for a given month we load with IDs that are based on start/end of the month +/- 15 days out into previous/next month, to include events with randomized IDs.
CalendarFacade#updateEventMap
will only put events on days in the target month, no matter when events start or end. That is, if we are callingupdateEventMap()
for November it will only add November days to the map, even for events that start e.g. in October.That means that in some cases events that overflow into the next month will be displayed. However, if the randomized ID is based on timestamp that is older than "15th of the previous month" then it will not be included and won't be displayed.
To Reproduce
Steps to reproduce the behavior:
generateEventElementId()
to make it deterministic.Expected behavior
Events that end in the next month are always displayed in the latter month.
Sample data
Unlucky event id
["LoCcwbJ--7-1","MTcyODc5MDc3ODIzNA"]
Month start
1730415600000
Fri Nov 01 00:00:00 CET 2024
Month end
1733007600000
Sun Dec 01 00:00:00 CET 2024
Start id for loading month's events:
MTcyOTAzMzIwMDAwMA
1729033200000
Wed Oct 16 01:00:00 CEST 2024
End id for loading month's events:
MTczNDM5MDAwMDAwMA
1734390000000
Tue Dec 17 00:00:00 CET 2024
Notes
The text was updated successfully, but these errors were encountered: