Problem/Motivation

I have a google calendar feed and there are too many events from last 10 years. I want to make sure that I can only import the events from last 2 years. But there is no option for me to import event only from last two years.

Issue fork feeds_ical-3323737

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

someshver created an issue. See original summary.

ben.hamelin’s picture

@someshver I think we can handle this with the $filterDaysBefore argument. This will require a new Parser form for config.

ben.hamelin’s picture

Assigned: Unassigned » ben.hamelin
Status: Active » Needs review

@someshver opened merge request for this work. Adds a new parser config form and updates parser logic to exclude any event older than "day before" setting. Leave blank or enter 0 to process entire feed as before.

Hoping this is still useful for folks!

someshver’s picture

Thank you @ben.hamelin

das.gautam made their first commit to this issue’s fork.

das.gautam’s picture

@ben.hamelin

I was encountering this error after saving the feed type. I have made some changes in the above PR—please review and let me know your feedback.

Drupal\Core\Config\UnsupportedDataTypeConfigException: Invalid data type for config element feeds.feed_type.feeds_ical_check:parser_configuration.feed_type in Drupal\Core\Config\StorableConfigBase->validateValue() (line 201 of /Applications/MAMP/htdocs/d10/web/core/lib/Drupal/Core/Config/StorableConfigBase.php).

https://git.drupalcode.org/project/feeds_ical/-/merge_requests/14/diffs?...

ben.hamelin’s picture

Status: Needs review » Reviewed & tested by the community

Thanks @das.gautam and @someshver
Going to release this shortly

  • ben.hamelin committed 0e0f5bc2 on 2.x-dev
    Issue #3323737 by ben.hamelin, das.gautam, someshver: Feeds Ical module...
ben.hamelin’s picture

Version: 2.0.3 » 2.3.2
Status: Reviewed & tested by the community » Fixed

Released in 2.3.2

Status: Fixed » Closed (fixed)

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