-
-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Add possibility to have a eventsShowAmount #206
Comments
Happy to accept a PR. Have you tried the functionality PR #190 added? Although it doesn't allow you to specify exactly 20 events (because without expanding a recurrence rule this might be unknown), it does allow you to define a rough window to evaluate the events of. |
As I understand it, that is not quit what we need. Also if I misunderstood what #190 does I am sorry :) |
It isn't as simple as requesting upfront the first 25 events. The chances are your iCal feed will contain events using This is why I believe @marcelstoer chose the Could you use the functionality in #190 and increase I realise that the first 25 events for one person could occur in the first 3 days of their feed but for another person this might be over multiple years. |
@machfr as I was dragged into the discussion I'll give you my $.02.
You can certainly do that BUT just like For my project I was parsing corporate meeting room calendars. As you can imagine such calendars tend to get huge when exploded i.e. with all their recurrence rules evaluated. Remember, a single event that occurs daily will generate a new event instance for every day when this parser processes the calendar. #190 added the option to drop all events outside a given range very early in the parse process at the cost of some precision (timezone calculations not done at that point). This massively reduces the total time for parsing a calendar. Same goes for memory consumption of course. Precondition is that you know upfront that you don't care about events outside that range. In my case I was only interested in events from yesterday, today and tomorrow. So, I set the fuzzy parse range to +-3d and then use |
Yea that makes sense, didn't think about the recurring rules and all that, I will try and use the stuff you suggested :) And also thank you both of you for taking the time to explain it to me. |
Hello,
You have the possibility to collect iCal events by using one of the following:
eventsFromInterval
,eventsFromRange
orsortEventsWithOrder
.It would be a good feature to have so it is possible to use:
nextEventsFromDate
with the options of setting a start date and how many events to collect.It would then start from 27th of February and give us back the next
20
events in the list.or even better yes have a option where you also set
defaultTimezone
and such calledmaxEvents
which default is0
and then it takes unlimited and if you set it to20
it only give us20
events.Hope this is a feature you will add.
The text was updated successfully, but these errors were encountered: