Needs review
Project:
Color backport
Version:
1.0.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
8 Dec 2020 at 19:35 UTC
Updated:
21 Sep 2022 at 06:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
huzookaComment #3
huzookaComment #4
wim leersThis is a follow-up to #2500495: Upgrade path for Color 7.x, which is the commit/issue that introduced the
d7_colormigration. Not a single commit has touched it since!Test failures analysis
This seems like a new regression. Reproduced.
This is caused by a
SchemaIncompleteExceptionwith the messageSchema errors for color.theme.bartik with the following errors: color.theme.bartik: missing schemabeing thrown by\Drupal\Core\Config\Development\ConfigSchemaCheckerbecause all Kernel tests have$strictConfigSchema = TRUE:And further debugging shows very clearly what the bug is:
element_nameis simply missing from the process pipeline, which causes@MigrateDestination=colorto attempt to executewhile the first parameter of the

::set()call will beNULL, which in turn will trigger the config schema error:Arguably
\Drupal\Core\Config\Config::set()should fail hard on::set(NULL, …). That would have made this problem evident immediately. Created task + patch: #3187720: Config::set($key, …) requires $key to be a string, but does not typehint nor check this.This too.Caused by the previous problem.[…]
Failed asserting that actual size 0 matches expected size 6.
This too.Also caused by the first problem.Review
Dependent on the solution to the problems above.
Comment #5
huzookaWell, I've deleted too much from the migration plugin definition.
The
element_namedestination property and its processes should be restored.Comment #6
wim leersDone.
Comment #7
wim leersAnd now update
ColorTestas needed.Comment #9
wim leersComment #10
quietone commented@Wim Leers, thanks for improving the color migration.
This is putting back a change that was removed while working on the original issue that added the color migration, around this comment.. Generally, the practice we follow is to get all the data from the source and then use the process pipeline to filter. That way one only has to look at the migration yml to know what is going on. I know that this is not a hard and fast rule but I would prefer to reduce the scope of this to the improvement of handling theme names with underscores. And if we not skipping rows here then this can be a lot simpler, I think.
The test failure in #4 is not fun at all. One such error was fixed in #3189064: Migration sql source plugins can not be serialised because of reference to the database connection and I've started added other ones to #3192893: [META] Serialization issues in Migration tests.
Comment #14
quietone commentedColor is deprecated in 9.5 and removed in Drupal 10, moving to the contrib project.
Comment #15
quietone commentedWrong project, try again.
Comment #16
narendra.rajwar27Adding re-rolled patch.
Comment #18
narendra.rajwar27Patch updated by fixing failed test case.