Commit Graph

110 Commits

Author SHA1 Message Date
David Greaves
5c2e6377a2 Don't limit expansion range using EXDATE
Any EXDATE values specify single instances that must be removed from
the expanded set of DTSTART values

Signed-off-by: David Greaves <david@dgreaves.com>
2025-07-06 15:16:32 +01:00
David Greaves
ec3366496e fixes tests where range starts inside an event
test_report_with_expand_property_start_inside
test_report_with_expand_property_just_inside

Signed-off-by: David Greaves <david@dgreaves.com>
2025-07-06 15:16:32 +01:00
David Greaves
056954387d fixes test_report_with_expand_property_all_day_event
Signed-off-by: David Greaves <david@dgreaves.com>
2025-07-06 15:16:31 +01:00
David Greaves
feb3daf251 Find events which are in progress at the start of an expand range
Signed-off-by: David Greaves <david@dgreaves.com>
2025-07-06 15:16:31 +01:00
David Greaves
24b91e9569 Remove the Filtering non-recurring events by time-range logic
The tests pass 100% without this code and attempting to pre-filter
these events here is quite complex and throws up test failures in
multiple locations.

Signed-off-by: David Greaves <david@dgreaves.com>
2025-07-06 15:16:31 +01:00
David Greaves
3afdc73bc6 The item's rrule and time_range are in the vobject_item
Signed-off-by: David Greaves <david@dgreaves.com>
2025-07-06 15:16:31 +01:00
Georgiy
371d5057de (#1812) Filtering events with a full set of filters if there is no
expand property. If there is an expand, then apply "filter (except time
range) -> expand -> filter (only time range)" approach
2025-07-06 15:16:31 +01:00
Georgiy
26215dbdbc (#1812) Fix typos 2025-07-06 15:16:31 +01:00
Georgiy
097360139a (#1812) Refactored _expand function to process overridden VEVENTs and
support EXDATE for recurrence filtering. Added temporary workaround to
return base vevent_recurrence when filtered_vevents is empty to avoid
'list index out of range' error
2025-07-06 15:16:31 +01:00
Georgiy
9d591bd514 (#1812) Work on expand events time-range filter processing 2025-07-06 15:16:31 +01:00
Peter Bieringer
d1098c3e22 flake8 regression E261 2025-05-16 07:28:50 +02:00
Peter Bieringer
f41533cca7 fix for https://github.com/Kozea/Radicale/issues/1515 2025-03-29 08:38:16 +01:00
Peter Bieringer
393a26814b extend copyright 2025-03-29 08:37:57 +01:00
Pieter Hijma
cfc1e94ad8 Expand taking timezone into account 2024-11-08 15:59:34 +01:00
Pieter Hijma
2d5dc5186b Expand overridden recurring events 2024-11-07 21:01:11 +01:00
Pieter Hijma
74f4412761 Honor start and end times expand 2024-11-07 15:36:16 +01:00
Peter Bieringer
59c638461b Fix: only expand VEVENT on REPORT request 2024-10-12 07:25:29 +02:00
Ray
408a03a3c0 Better freebusy occurrence limit handling and added documentation 2024-08-16 14:57:30 -06:00
ray-react0r
3cba4b32a3 Merge branch 'master' into react0r 2024-08-15 15:07:49 -06:00
Ray
d6c0a05771 Style fixes for tox linting 2024-08-14 11:15:30 -06:00
Ray
29b7cd8d54 Fix for free-busy fbtype statuses 2024-08-14 05:43:53 -06:00
Ray
b0f131cac2 Improve free-busy report 2024-08-14 05:43:53 -06:00
Ray
4c1d295e81 Fix bug in free busy report serializing a datetime tzinfo 2024-08-14 05:43:53 -06:00
Ray
7b0d88ff0d Add basic free-busy report 2024-08-14 05:43:53 -06:00
Mathieu Dupuy
47bc966a13 fix misspellings 2024-07-24 12:29:13 +02:00
Georgiy
63db0483d0 (#1485) If an event comes with a dtstart specified as a date then in the response we return the date 2024-06-02 10:40:35 +03:00
Georgiy
7d39354c37 mypy check fix 2024-05-29 16:42:49 +03:00
Georgiy
acf65e9d6a (#1485) Fix processing all day expanded events 2024-05-29 16:33:54 +03:00
Georgiy
f0e21b14c2 validation fixes 2024-04-06 11:02:40 +03:00
Peter Bieringer
06a95d7597 fix according to isort report 2024-04-06 07:30:07 +02:00
Georgiy
4e4af2aca5 pep8 fix 2024-04-05 11:35:53 +03:00
Georgiy
d1da63569b Fix setting recurrence-id for expanded items. test for report with expand
finished
2024-04-01 19:54:25 +03:00
Georgiy
513415d201 start creating test for rrule expand property, fix expand processing 2024-04-01 19:27:59 +03:00
Georgiy
513e04e636 all expanded components has the same view 2023-03-31 12:00:59 +03:00
Georgiy
72103c30c2 recurring events brought to rfc4791 2023-03-30 23:13:00 +03:00
Georgiy
a07813ecc9 fix variables naming, fix recurrence element duplication 2023-03-30 19:43:15 +03:00
Georgiy
ae731290c1 processing expand property for REPORT 2023-03-30 19:30:59 +03:00
Unrud
bbaf0ebd8c Change name in file header 2021-12-09 16:55:46 +01:00
Unrud
cecb17df03 More type hints 2021-09-26 22:24:45 +02:00
Unrud
0b3e4204a5 Cosmetics 2020-10-04 10:14:57 +02:00
Unrud
d48bacc8e3 Improve log messages
Log failed login attempts with remote host as warning (closes #1104)
Add component UID to log message about invalid recurrence rules (reference #602)
Use "forwarded for" instead of "forwarded by" for remote host
2020-09-26 22:08:23 +02:00
Unrud
7642d72919 Improve variable names 2020-09-26 22:08:21 +02:00
Unrud
0ce90d6b34 Extract read*_request_body methods 2020-09-14 21:19:48 +02:00
Unrud
42ad18bc84 Rename _write_xml_content to _xml_response 2020-09-14 21:17:18 +02:00
Unrud
7ed5122636 Use 403 response for supported-report and valid-sync-token errors
Some clients don't handle 409
2020-05-24 13:32:24 +02:00
Unrud
aef58bd55c Minimize accesses to rights backend 2020-04-22 19:20:07 +02:00
Unrud
d3776e55fb Rework XML helpers functions
- Merge make_tag, tag_from_clark and tag_from_human into make_clark and make_human
- Don't use RegEx for parsing
2020-01-19 21:07:54 +01:00
Unrud
e07df9fd1d Prefix internal attributes with underscore 2020-01-19 21:07:54 +01:00
Unrud
0fb02cd026 Cosmetic changes (pylint) 2020-01-17 12:59:14 +01:00
Unrud
1453c0b72c Mark attributes for internal use with underscore 2020-01-14 06:19:11 +01:00