Closed (fixed)
Project:
Drupal core
Version:
9.5.x-dev
Component:
migration system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
12 Oct 2020 at 12:19 UTC
Updated:
15 Nov 2022 at 15:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
huzookaBefore adding tests or doing anything more, let's see what this patch breaks.
Comment #4
quietone commentedJust some thoughts.
I think that since this is specific to a Drupal database it should be in DrupslSqlBase. I know that this interface also has getSourceModule which is also specific to Drupal database, it shouldn't be here either. I'd rather not compound the error.
It is nice to have the comparison done on integers.
Comment #6
wim leersI didn't even know the migration system supported this! Very good to know 🤓
Comment #7
quietone commentedReroll and remove the source_module declaration from d6_field.yml and let's see what breaks.
Comment #9
quietone commentedAh, those tests are nice proof that this is working as intended.
Do we need the tags since this in the migration system component?
Comment #10
quietone commentedMeant to change the name of the dblog test method. It looked like an old copy/paste error.
Comment #11
quietone commentedComment #12
matroskeenI wanted to review this issue, but I noticed that last patch doesn't match the issue summary.
I don't see these changes in the patch. If the proposed resolution was changed, we should probably reflect this in the issue summary. Or it still needs more work. In any case, I'm moving this to NR.
Comment #16
quietone commentedIS updated and new patch with just comment changes.
Comment #17
wim leersComment #19
wim leers#3283795: ComposerHooksTest is broken on latest DrupalCI PHP container fixed that (unrelated) fail on D10.
Comment #20
alexpottWhy are we removing this? I can't see how this change makes it not necessary more. I checked the issue comments and I couldn't see an explanation. It was added in #2936365-203: Migrate UI - allow modules to declare the state of their migrations maybe the comment #203 on that issue will shed some light as to whether this will break something.
Comment #21
quietone commentedI looked back at the issue that added the 'source_module: phone' and I am convinced it was an error. The correct entry is in core/modules/field/migrations/state/field.migrate_drupal.ymlcheckRequirementscheckRequirements.
Comment #22
benjifisherRegarding #20, #21:
The change is mentioned in #7. You will not see it in the interdiff attached to that comment, maybe because that patch was also a reroll.
Looking at the final patch from #2936365-309: Migrate UI - allow modules to declare the state of their migrations, I see this duplication:
I will mention the disputed change in the issue summary.
I also cannot think of any reason why the
fieldmodule’s plugin, which includes handling for several other modules (nodereference,number_integer,email, …) in theprocesssection, should declare one of them as its source module.I was not sure whether this change was related to this issue or an unrelated fix, like the fix mentioned in #10. I tried restoring the two lines to
d6_field.yml, and several of the kernel tests in thefieldmodule failed. This change is in scope.In short, I do not see any reason to disagree with #21. Of course, @quietone is far more familiar with both issues than I am.
Back to RTBC.
Comment #23
alexpottCommitted and pushed 12df2086f0 to 10.1.x and 397b8d5959 to 10.0.x and 8ca4362795 to 9.5.x. Thanks!
Backported this to 9.5.x since this task is low risk and improves the migration system.