]> source.dussan.org Git - nextcloud-server.git/commit
feat(caldav): order the calendar objects by start date for search 45222/head
authorDaniel Kesselberg <mail@danielkesselberg.de>
Wed, 15 May 2024 10:55:40 +0000 (12:55 +0200)
committerDaniel <mail@danielkesselberg.de>
Tue, 28 May 2024 17:56:36 +0000 (19:56 +0200)
commitb769dc4304862af35946386a235d5e6fdb658ce9
treea04fa7f4cff8117ee0895ada2332c366acd4c9bd
parent4718a7e4e0c2b738e1076979dbdc08661bd5f305
feat(caldav): order the calendar objects by start date for search

Sorting the events by the start date leads to more predictable results for the search API consumers.

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
apps/dav/lib/CalDAV/CalDavBackend.php
apps/dav/tests/misc/caldav-search-missing-start-1.ics [new file with mode: 0644]
apps/dav/tests/misc/caldav-search-missing-start-2.ics [new file with mode: 0644]
apps/dav/tests/unit/CalDAV/CalDavBackendTest.php
lib/public/Calendar/ICalendar.php