-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Open
Labels
1. to developAccepted and waiting to be taken care ofAccepted and waiting to be taken care of27-feedbackbugfeature: caldavRelated to CalDAV internalsRelated to CalDAV internals
Description
Bug description
The Talk team reached out because they were missing events in our search responses. The issue is also reproducible with the calendar widget.
The query to find events is ordered by the id column. Without an ORDER BY clause, the same query may return different results depending on how the SQL server works. To ensure more reproducible results, an ORDER BY clause was added some time ago.
Steps to reproduce
- Create event "1" tomorrow at 12:00
- Create event "2" tomorrow at 12:30
- Create event "3" tomorrow at 13:00
- Create event "4" tomorrow at 13:30
- Create event "5" tomorrow at 14:00
- Create event "6" tomorrow at 14:30
- Create event "7" tomorrow at 15:00
- Create event "8" tomorrow at 11:00
Expected Order:
8-1-2-3-4-5-6-7
Actual Order:
1-2-3-4-5-6-7-8
Additional info
- Affected versions: 27 upwards.
- We encountered issues with the sorting of events in CalDAV fix search with limit and time range #45222.
- Removing the ORDER BY "id" clause does not resolve the problem because the order is then still up to the SQL server and only by chance in the correct order.
- Using firstoccurrence to order works, but we should add an index on it.
Possible bug reports
Metadata
Metadata
Assignees
Labels
1. to developAccepted and waiting to be taken care ofAccepted and waiting to be taken care of27-feedbackbugfeature: caldavRelated to CalDAV internalsRelated to CalDAV internals
Type
Projects
Status
🧭 Planning evaluation