Problem / motivation
Drupal 7 has a contributed module Entity Translation which allows to have field level translations on fieldable entities. This capability has moved to core in Drupal 8.
The scope of this issue is
- Migrate the actual translated data of the comment fields.
Remaining tasks
- Write the patch
- Review
- Commit
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | 2981000-12.patch | 25.39 KB | maxocub |
| #12 | interdiff-2981000-8-12.txt | 1.22 KB | maxocub |
Comments
Comment #2
maxocub commentedPostponed on #2975666: Migrate Drupal 7 node entity translations data to Drupal 8 & #2979916: D7 comment field values are not migrated.
Comment #3
maxocub commentedAdding relation to meta.
Comment #4
masipila commentedComment #6
maxocub commentedWaiting for #2975666: Migrate Drupal 7 node entity translations data to Drupal 8 to land, here's a starter.
Comment #7
masipila commentedUnpostponed as #2980996: Migrate Drupal 7 taxonomy term entity translations data to Drupal 8 and #2981392: Comment migration corrupts data with multilingual sites landed.
Comment #8
maxocub commentedNew patch. No interdiff because it needed a re-roll and a lot have changed since the last patch.
Comment #9
masipila commentedI'll do a proper review and manual test tomorrow morning my time, but spotted one nit at the first glance.
My default nit on API doc standards. Third person verb, please :)
Markus
Comment #10
masipila commentedAnd some more.
Is this needed?
2. Typo
Comment #11
masipila commentedComment #12
maxocub commentedRe #9: Done.
Re #10:
d7_entity_translation_settingsmigration, which adds the translation metadata columns to the entity tables, we need to install the taxonomy term schema.Comment #13
masipila commentedI spent the morning on testing and reviewing patch #12. My manual tests were quite extensive with inspections in both UI and database. My test site had English and Finnish enabled.
A. On one content type the comments had Entity Translation enabled together with Title, with additional language neutral and translatable fields.
B. I also manually tested that we are not causing regression (not that I would not trust our test coverage, but wanted to check this manually as well)
About the patch itself:
Conclusion of the review and test: RTBC.
Great work @maxocub! These Entity Translation migrations are conceptually among the most complex ones we have but you mastered them perfectly. Woop, woop!
Cheers,
Markus
Comment #14
masipila commentedActually, let's run the testbot still for PostgreSQL and SQLite just to be sure.
Comment #15
masipila commentedTests are green also on PostgreSQL and SQLite. Back to RTBC.
Comment #17
catchCommitted and pushed e0ab51cf25 to 8.7.x and 4e430e94e5 to 8.6.x. Thanks!
Comment #20
wim leersDiscovered a bug in this: #3178966: Fatal error in CommentEntityTranslation @MigrationSource when source site does not have comment or node module installed.