https://bugs.kde.org/show_bug.cgi?id=528230
Allen Winter <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Latest Commit|https://invent.kde.org/pim/ |https://invent.kde.org/pim/ |kdepim-runtime/-/commit/0f8 |kdepim-runtime/-/commit/102 |e4057ecb04eed1833090ca1503d |38ba76158a1d1aa6c683fb81a7d |be3c2cef2c |7587f97cba --- Comment #3 from Allen Winter <[email protected]> --- Git commit 10238ba76158a1d1aa6c683fb81a7d7587f97cba by Allen Winter, on behalf of Sergey Kostyuchenko. Committed on 12/11/2026 at 11:59. Pushed by winterz into branch 'release/26.12'. Exclude cancelled occurrences from an EWS calendar series A recurring meeting keeps its original slot drawn and, when one of its occurrences is cancelled or moved, shows no occurrence at all: the series is expanded from its RRULE and nothing hides the slots the server no longer has. Only a cancelled occurrence is excluded, through an EXDATE on the master. A moved one is delivered as an item of its own whose RECURRENCE-ID is substituted at the slot generated by the rule of the master - EventViews skips incidences that carry a RECURRENCE-ID and fills that slot from the item of the occurrence, so an EXDATE there deletes the only place where the occurrence could still be drawn. Leaving moved ones alone is also the safer failure: when their item does not arrive, the slot stays drawn instead of vanishing. The rest of the change: - `EwsOccurrence` wrote the OriginalStart of an occurrence into its Start and validated Start twice, so `originalStart()` was always empty; End is validated as End now too, and an element the parser does not know is skipped instead of invalidating the whole occurrence list. - Both occurrence lists are read unconditionally - before, only when the calendar data of the master happened to hold more than one VEVENT - and the moved occurrences of a master are handed to the follow-up GetItem request that fetches them as their own items. - The master is the VEVENT without a RECURRENCE-ID, and a response is paired with the requested item by its id instead of by position, which shifted every following payload when the server failed one item of a batch. A failed response is reported with the code and message of the server, as it carries no item to name. - The item of a moved occurrence is the VEVENT whose RECURRENCE-ID is the OriginalStart it was requested for; the last event is only a fallback when that start is unknown, and a foreign UID is reported. The stored item of a moved occurrence keeps its RECURRENCE-ID and loses the rule of the series: the RECURRENCE-ID is what the viewer substitutes at the slot of the master, while a rule would make the occurrence a second, endless series. Built and run here against the Qt6 packages this machine has (KPim 6.8.2, Qt 6.12, KF 6.31): the version requirement in `CMakeLists.txt` was lowered to 6.8.2 in a scratch copy of the tree, never in the change itself. The new `ewsoccurrenceexclusions_ut` passes: ``` Totals: 14 passed, 0 failed, 0 skipped, 0 blacklisted ``` It covers the parser on both occurrence shapes, cancelled occurrences becoming exclusions while moved ones do not, the moved occurrences handed to the exception fetch, the picking of master versus a lone occurrence, the occurrence losing the rule of the series while keeping its RECURRENCE-ID, and a KCalendarCore series that stops generating the excluded moments while its neighbours stay. The pre-commit hooks pass over the changed files (clang-format with `.clang-format-pre-commit`, gersemi, codespell, trailing-whitespace, end-of-file-fixer). - The EWS test directory was switched off when Qt6 removed XmlPatterns, so the test above would not be built at all: the change also enables it. Only the unit tests are built - the fake EWS server, the DBus interfaces and the isolated tests that drive them are left out of the build, because the server needs `QXmlQuery`, which Qt6 removed - and the tests that do not work under Qt6 yet are not built either: the request tests, whose `KIO::http_post` stub no longer intercepts since `EwsRequest` sends its own requests, the OAuth mock, which still uses `Q_ENUMS`, and the four attachment cases that carry an embedded item. These hunks are the same as in the other merge request (!381), which enables the tests on its own; whichever of the two lands first makes the other's copy a no-op, and neither has to wait for the other. - Both merge requests touch `resources/ews/test/unittests/CMakeLists.txt`. The new target is added at the end of that file on purpose, away from the lines the other change rewrites, so the two apply without a conflict in either order. - Please review commit by commit; there is one commit here and nothing to squash. - This change was prepared with the help of an AI assistant; the testing and the review are on a human. (cherry picked from commit 0f8e4057ecb04eed1833090ca1503dbe3c2cef2c) M +95 -55 resources/ews/calendar/ewsfetchcalendardetailjob.cpp M +13 -0 resources/ews/calendar/ewsfetchcalendardetailjob.h M +2 -0 resources/ews/ewsclient/CMakeLists.txt M +4 -4 resources/ews/ewsclient/ewsoccurrence.cpp A +105 -0 resources/ews/ewsclient/ewsoccurrenceexclusions.cpp [License: LGPL(v2.0+)] A +79 -0 resources/ews/ewsclient/ewsoccurrenceexclusions.h [License: LGPL(v2.0+)] M +5 -0 resources/ews/test/unittests/CMakeLists.txt A +408 -0 resources/ews/test/unittests/ewsoccurrenceexclusions_ut.cpp [License: LGPL(v2.0+)] https://invent.kde.org/pim/kdepim-runtime/-/commit/10238ba76158a1d1aa6c683fb81a7d7587f97cba -- You are receiving this mail because: You are watching all bug changes.
