Closed (fixed)
Project:
Drupal core
Version:
8.3.x-dev
Component:
migration system
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
21 Nov 2015 at 04:38 UTC
Updated:
12 May 2017 at 14:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
quietone commentedThis will migrate the default and admin theme settings. Although posted here, for now, it probably can be included in the patch in the parent issue.
Comment #3
quietone commentedThis patch isn't complete, there aren't any assertions in the migration test. That's because it isn't writing data to the destination configuration due to a 'no schema' error.
/2620364No schema for seven.settings (/opt/sites/md82/core/lib/Drupal/Core/Config/Testing/ConfigSchemaChecker.php:91)It is true that there isn't a schema for seven.settings, but theme settings form writes to a configuration with that name.
And the process plugin is named Explode and not ThemeSettings because it only does an explode and it can also be used in the Color migration. But I left it in the system module since I'm not sure if it should go into migrate or not.
Comment #5
quietone commentedJust needed to install some themes. Added the insertions and some cleanup as well.
Comment #7
quietone commentedModified to use the explode process plugin from #2575101: Add an explode/separator process plugin.
Postponing on that issue.
Comment #8
quietone commented#2575101: Add an explode/separator process plugin is in, so no longer postponed.
Changed to needs review for the testbot.
Comment #10
quietone commentedNow that explode returns multiple true, extract and get try to iterate over an array in Processrow. To avoid that handle_multiples is set to True in each, this may be wrong, but I want to see what errors are found.
Comment #12
quietone commentedBad patch, I got interrupted and messed it up.
Again.
Comment #13
quietone commentedAs advised by chx, created new issues and postponing this.
Postponed on #2675164: Pipeline using explode and concat fails and #2675156: Pipeline using explode and extract fails.
Comment #14
quietone commentedComment #18
mikeryanComment #19
quietone commentedRerolled. Moved source plugin test to MigrateSqlSourceTestBase, made the process of getting the configuration name a two step process, the same as for the color migration.
Comment #20
jofitzTypo? Should this say "to the"?
Otherwise this looks great to me - just one small step away from RTBC.
Comment #21
amoebanath commentedPatch :)
Comment #22
yogeshmpawar@amoebanath - you have added wrong patch, I have added a correct patch :)
Comment #23
jofitzGreat, thanks both.
Comment #25
jofitzRetests passed successfully - back to RTBC.
Comment #27
jofitzTests are green - back to RTBC.
Comment #28
yogeshmpawarAny Updates on this issue ?
Comment #29
catchThis definitely doesn't construct a BlockedIP object. c&p error?
If the expected results are identical to the source data, why not do
$tests['0]['expected_data'] = $tests[0]['source_data']['variable'];instead of duplicating the array manually?Comment #30
jofitzAdjustments suggested in #29.
Comment #32
jofitzAha, apparently the source data and expected results are nearly identical.
Adjusted the code to make the similarities/differences clear (and actually pass the test this time!)
Comment #33
phenaproximaLooks good. Back to RTBC.
Comment #34
gábor hojtsyMostly just found minor things.
Make this a sentence IMHO.
Comment standards need a . at the end IMHO.
I guess we need this for the interface, can we document why we don't implement it?
Hm, if its inheritdoc, why are we defining it again? (If we need to, we need a newline above).
Comment #35
heddnTagging for the response to #34.
Comment #36
bburgComment #37
bburgLooks like the {@inheritdoc} in #3 is referring to the method defined in the MigrateDestinationInterface interface. I'm no idea why the method is just a stub. Is it because we are migrating the equivalent of Drupal variables, and there aren't any fields? Should it return an empty array?
I don't see where $variables in #4 is defined or used. Where did this come from?
Comment #38
bburgPatch for 1 and 2 only for #34.
Comment #39
phenaproximaI looked into #34.3 and #34.4:
Once these two points are done, I think this is RTBC.
Comment #40
bburgphenaproxima's suggestions applied. I used your comment for #34.3 verbatim.
I realized tha I was working off the 8.4.x branch. Everything seemed to apply cleanly though, we'll see if the tests complete.
Comment #41
phenaproximaOne small thing -- the coding standards now require us to use short array syntax in core. So this should be [], not array().
Other than that, this looks perfect.
Comment #42
bburgAh, thanks for the catch. Updated patch included.
Comment #43
bburgComment #44
phenaproximaWerd up. #40 passed Drupal CI, so I am pre-RTBCing #42 since it was just a syntax change. Nice one.
Comment #47
catchCommitted/pushed to 8.4.x and cherry-picked to 8.3.x. Thanks!