Closed dartcafe closed 1 year ago
I suppose this is still valid on NC21.0.2?
I guess, yes.
Just tested this. This is still a problem. I am not able to identify recurring events belonging to a certain time span using OCP\Calendar\IManager::search()
and OCP\Calendar\ICalendar
There are still two problems when searching for events:
At the moment, I have to filter out recurrences from the response, to avoid
What would be the perfect solution:
To be respected: There could be more than one recurrences of an event inside the searched sidespan.
Another solution might be to offer a method to resolve the RRULE and get the recurrences' datetimes.
Just for the record, also the implementation of
OCP\Calendar\IManager::newQuery()->setTimerangeStart()->->setTimerangeEnd()
has this issue.
Is there any chance this could get fixed in the near future?
@szaimen Any Chance to get this fixed on in the near future?
Any Chance to get this fixed on in the near future?
Unfortunately, I don't know :/
Hi, please update to 24.0.9 or better 25.0.3 and report back if it fixes the issue. Thank you!
My goal is to add a label like e.g. 25-feedback to this ticket of an up-to-date major Nextcloud version where the bug could be reproduced. However this is not going to work without your help. So thanks for all your effort!
If you don't manage to reproduce the issue in time and the issue gets closed but you can reproduce the issue afterwards, feel free to create a new bug report with up-to-date information by following this link: https://github.com/nextcloud/server/issues/new?assignees=&labels=bug%2C0.+Needs+triage&template=BUG_REPORT.yml&title=%5BBug%5D%3A+
actual behavior
The return is a list of events within this timespan but also a list with all(!) recurring dates, whether they have an event in the timerange or not. I guess, these are events with the first occurrency before the timespan and the last after the timespan. Additionally only the timestamps of the first occurrency is available. Interpreting the recurring rules gets to complex tbh.
One time events get returned correctly.
Expected behavior
more info
Calling OCP\Calendar\IManager::search('', ['SUMMARY'], ['timerange' => ['start' => $from, 'end' => $to]]); where $from and $to are objects of DateTime
Affected code https://github.com/nextcloud/polls/blob/649c90415d3b3007e6576b880d78947f551c4aaa/lib/Service/CalendarService.php#L58-L84
Example:
As a result we get dates outside the defined timerange:
See also https://github.com/nextcloud/polls/issues/1185, where all birthdays were returned.
Complete result: