Closed (fixed)
Project:
Drupal core
Version:
8.3.x-dev
Component:
migration system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
10 Jun 2016 at 10:02 UTC
Updated:
23 Sep 2017 at 15:12 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
vasi commentedThis will probably need an extra join against the node table, to find the source translation for each translation.
Comment #3
mikeryanThis needs #2225775: Migrate Drupal 6 core node translation to Drupal 8 to go in first, right?
Comment #4
mikeryanComment #5
gábor hojtsyYay, that went in now :)
Comment #7
maxocub commented@penyaskito: In the issue summary you say:
I tried migrating D6 translated nodes without enabling
content_translationin D8, and only the nodes in the source language got migrated. Also, in the tests included in #2225775: Migrate Drupal 6 core node translation to Drupal 8,content_translationis always enabled, which seems to point to the fact that it is in fact relying on it. Am I missing something here?Comment #8
maxocub commentedOh, and there's also this comment in D6NodeDeriver:
And this one in MigrateNodeDeriverTest:
So I'm a bit confused by the issue summary.
Comment #9
maxocub commentedHere's a first try at it.
Comment #10
gábor hojtsy@maxocub: I think you made the translation migration now depend on content_translation in D8, so that is a recent change :) This issue predates that change.
Comment #11
maxocub commented@Gábor Hojtsy: What we did in #2809115: When migrating a multilingual D6 site, the overview page says that the translation upgrade path is missing did not made the translation migration depend on content_translation. That array is only use to construct the upgrade form and to show what paths are available/missing. There's no dependencies enforcement there. The translation migration worked well before that change (provided we enable content_translation).
Comment #12
penyaskitoAt the moment this issue was created, content_translation was not a requirement for having several translations on D8.
The underlying APIs for translating content are not tied to the content_translation module, so even if I don't think anyone would like to implement an alternative UI soon, enabling content_translation shouldn't be a requirement. This may have changed tho since this issue was created.
Comment #13
gábor hojtsyNo, that did not change. But since the creation of the content translations in Drupal 6 needed the core translation module (alternate implementations were possible but did not emerge at all), it makes sense to tie the migration to the content translation module in Drupal 8 also, otherwise you have no way to manage that data(?) Also what does that mean for this issue, can we translate that to actionable steps? :)
Comment #14
mikeryanWhat's the next actionable step here?
Thanks.
Comment #15
gábor hojtsyThis right in the D6 translation migration does not satisfy the summary that this should be dependent on content_translation module. Otherwise this base field is not there.
It would be nice to test with yet another node that has another source langcode? Do we have that in the dump?
Comment #16
maxocub commented@Gábor Hojtsy: Thanks for the review, I'll make those changes.
Comment #17
maxocub commentedRe: #15:
Comment #19
maxocub commentedComment #20
maxocub commentedHmm, I just saw that moduleExists() is available in DrupalSqlBase, so I removed all the useless things to get access to the module handler.
Comment #22
maxocub commentedI should have read the doc, moduleExists() on DrupalSqlBase is for the source installation.
So this is the same patch form #19.
Comment #23
gábor hojtsyLooks all good to me :)
Comment #26
catchCommitted/pushed to 8.3.x and cherry-picked to 8.2.x. Thanks!
Comment #27
gábor hojtsySuperb, thanks!
Comment #29
maxocub commentedComment #30
maxocub commented