Problem/Motivation
As suggested by @heddn in #1835754-46: Add last 'changed' property to user entity, now that D7 has a "changed" property on user entities, D9 should have the ability to include that in migrations from D7.
Steps to reproduce
Do a migration from D7.83 or later.
Proposed resolution
Add the "changed" property to D9's D7 migration code, ensuring that it's optional as older version of D7 will not have it.
Remaining tasks
#2329253: Allow ChangedItem to skip updating the entity's "changed" timestamp when synchronizing
Add the field to \Drupal\user\Plugin\migrate\source\d7\User::fields
Patch, review, commit etc..
User interface changes
?
API changes
n/a
Data model changes
n/a
Release notes snippet
n/a
Issue fork drupal-3252133
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:
- 9.4.x
changes, plain diff MR !1586
- 3252133-add-the-new
changes, plain diff MR !1571
Comments
Comment #2
heddnThis is a novice/trivial change. Tagging Novice for the addition of changed. Not the rest of this issue.
All that needs to be done as a first step is add:
to d7_user.yml
After that, we should adjust tests and even the D7 fixture. But getting that first patch rolled with changed added will give us something for folks to use in a patch file when migrating while we get test coverage up to speed.
Comment #3
mauryarahul11Comment #7
mauryarahul11Comment #8
quietone commented@mauryarahul11, thanks for starting this off.
This will need changes to the test fixture and tests. Adding tags and removing novice tag.
Comment #9
quietone commentedOops, need to set this to NW for the next steps.
Comment #10
mauryarahul11Comment #11
mauryarahul11Comment #13
quietone commentedJust updating tags,
Comment #15
quietone commentedNow that the data is in the D7 fixture I went to write the test. I discovered that changed timestampe saved on the destination is the time of the save, not the date in the source. Does this need #3052115: Mark an entity as 'syncing' during a migration update?
Comment #16
quietone commentedSet to NR for the question in #15
Comment #17
heddnI think we need #2329253: Allow ChangedItem to skip updating the entity's "changed" timestamp when synchronizing
Comment #18
quietone commentedYes, that looks like the right issue. I am postponing this on the issue mentioned in #17.
Comment #20
quietone commentedThe Migrate Drupal Module was approved for removal in #3371229: [Policy] Migrate Drupal and Migrate Drupal UI after Drupal 7 EOL.
This is Postponed. The status is set according to two policies. The Remove a core extension and move it to a contributed project and the Extensions approved for removal policies.
The deprecation work is in #3522602: [meta] Tasks to remove Migrate Drupal module and the removal work in #3522602: [meta] Tasks to remove Migrate Drupal module.
Migrate Drupal will not be moved to a contributed project. It will be removed from core after the Drupal 12.x branch is open.
Comment #22
quietone commentedThe Migrate Drupal Module and Migrate Drupal UI are deprecated and they are not in Drupal 12.0.0.
Issues for these modules should now be on the 11.x branch. And the changes are limited to critical and major bug fixes. Other changes are allowed at the discretion of the core Release Managers in consultation with the Migrate subsystem maintainers.