A very useful feature would be the ability to only import current and future events instead of all events. The project I am working on currently creates around 550 nodes on each import. Of the 550, only about 20 are upcoming events (which is what the client wants to display). This is easily accomplished with Views, however that leaves a bunch of data I don't need or want in the database and the processing takes much longer than needed when importing. So it would be great to have a setting where I could specify what I wanted to do with past events:

Import past events up to:

1 month ago
6 months ago
1 year ago
2 years ago
All Time
Do not import past events

I actually managed to accomplish this by using one of the hook_alters. However, I am sure there are other people out there who would like to have faster imports and less data in their database but maybe do not have the expertise to come up with their own solutions.

Thanks for your time guys!

Comments

coredumperror’s picture

Could you please attach your alter hook implementation code? I'd be happy to add this as a feature.

tim_ftw’s picture

My implementation was just to create a small module that implemented the hook. It wasn't actually a patch or a change to your code. I have never done a patch before but I will research it and see if I can figure out how to do it.

coredumperror’s picture

If you just attach the hook code you wrote, I'll be able to work your idea into Date iCal manually.

coredumperror’s picture

Version: 7.x-3.0 » 7.x-3.x-dev
Assigned: Unassigned » coredumperror
Status: Active » Needs review

I apologize for the extreme delay on this, but this feature is finally implemented! If you go to the "iCal parser" settings page, you'll be able to set an integer number of days. Events which ended longer ago than that will not be imported.

This feature is available in the newest dev release of Date iCal. Please let me know if it works for you!

  • Commit 9351180 on 7.x-3.x by coredumperror:
    Issue #2179435: You can now skip importing events more than X days old...
coredumperror’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.