After migrating webforms, the webform node's "updated" date is set to the date of the migration

Created on 15 August 2023, over 1 year ago
Updated 13 September 2023, about 1 year ago

Problem/Motivation

The "updated" date of the webform nodes are all set to the date/time that the migration took place, not the date/time that the original webform node was last modified.

Steps to reproduce

1. Run: `drush migrate:import d7_node:webform`

The "Updated" dates reflect the date that the original webform nodes were last modified.

2. Run: `drush migrate:import upgrade_d7_webform`

The "Updated" dates are set to now.

Proposed resolution

When re-saving the webform nodes, use `setChangedTime()` to ensure the time is preserved. Note, there seems to be an alternative way to do this πŸ“Œ Allow ChangedItem to skip updating the entity's "changed" timestamp when synchronizing Fixed in process but not yet committed.

πŸ› Bug report
Status

Needs review

Version

1.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jmcclelland

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024