Provide migrate support to upgrade from Date module on D7

Created on 6 June 2019, over 5 years ago
Updated 22 April 2024, 7 months ago

It would be useful to provide a migrate process plugin that allows migrating data from the Date module on D7.

✨ Feature request
Status

Needs review

Version

4.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States jeffschuler Boulder, Colorado

    Using the patch in #38 the "limit" end date of a recurrence is being specified with time in the string, and therefore not showing up in the UI – where only a date is allowed.

    It looks, from smart date data that's been input manually (non-migrated), like the rule DB column does include HHMMSS ('\THis') in the UNTIL string but the limit column does not.

    i.e.

    Should be:
    rule: RRULE:FREQ=DAILY;INTERVAL=1;UNTIL=2017-01-08T235900
    limit: UNTIL=2017-01-08

    But actually is migrated as:
    rule: RRULE:FREQ=DAILY;INTERVAL=1;UNTIL=2017-01-08T235900
    limit: UNTIL=2017-01-08T235900

    Here's an update of the patch in #38.

    Looks like @nightlife2008 had this issue too, with a similar solution in #32.

  • πŸ‡ΊπŸ‡ΈUnited States jeffschuler Boulder, Colorado

    Missed the one that matters most. Fix and simplification.

  • πŸ‡ΊπŸ‡ΈUnited States jeffschuler Boulder, Colorado

    One more try. Sorry for the spam.

  • πŸ‡ΊπŸ‡ΈUnited States jeffschuler Boulder, Colorado

    There's another issue in ParseDates with the break; after generating new repeat values. It breaks out of the loop completely, meaning that additional values don't get processed at all.

    This for me resulted in a bunch of " [warning] A non-numeric value encountered ParseDates.php:341" errors.

    Updated patch to fix this.

  • πŸ‡«πŸ‡·France tostinni

    Can anyone share an updated YAML to migrate a CT using this patch ?
    Thank you very much.

Production build 0.71.5 2024