Support import Recurring event with feeds

Created on 27 June 2024, 6 months ago
Updated 28 June 2024, 6 months ago

For example i need to import event, that runs from 18:00 to 21:00 every Saturday and Sunday from July 4 to October 6

So in my sourse:

DTSTART:20240804T180000
DTEND:20240804T210000
RRULE:FREQ=WEEKLY;UNTIL=20241006T210000Z;INTERVAL=1;WKST=MO;BYDAY=SA,SU

Feed mapping

Start date and End date imorted without problems, but RRULE - no.
After importing it write:

The content NODE_NAME (ID) failed to validate with the following errors:
field_smart_date.0.rrule: This value should be of the correct primitive type.
✨ Feature request
Status

Active

Version

4.1

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine vasyok

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @vasyok
  • πŸ‡ΊπŸ‡¦Ukraine vasyok
  • πŸ‡¨πŸ‡¦Canada mandclu

    Unfortunately, the short answer is that the support for importing recurring dates using Feeds doesn't yet exist. Smart Date currently includes a Feeds plugin for mapping incoming data to Smart Date fields, but there isn't yet a plugin to allow mapping data to Smart Date Rule entities.

    The Smart Date Recur submodule does make use of the Recurr library, which in theory should be able to parse the incoming RRULE value and export out the individual parts needed to create the Rule object that should be referenced for each of the individual values. I'll point out that there is a long-standing issue on Feeds ( ✨ Add a mapping target to media field Needs review ) to allow it to create Media entities and the code changes seem almost entirely focused on creating the Feeds target class. So hopefully there wouldn't be a lot more needed in Smart Date than the new Rule target class, but I'm sure there will need to be some testing to validate that assumption.

Production build 0.71.5 2024