Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
While writing tests for the Drupal 7-to-8 migration path, I've run into a lot of config schema exceptions due to migrations defining source constants. Turns out that migrate's data_types.schema.yml doesn't define the constants mapping as part of the migrate_source data type; adding it solves this problem.
This is a major issue because it blocks almost all child issues of #2456259: [META] Drupal 7 to Drupal 8 Migration path.
Proposed Resolution
Add the constants mapping as an ignored property of the migrate_source data type.
Remaining Tasks
Patch, review, commit.
API/UI Changes
Nil.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2495851-2.patch | 597 bytes | phenaproxima |
Comments
Comment #1
phenaproximaComment #2
phenaproximaComment #3
YesCT CreditAttribution: YesCT commentedComment #4
benjy CreditAttribution: benjy at CodeDrop commentedSources need to define their constants in the schema using migrate_entity_constant.
Comment #5
phenaproxima@benjy explained the issue, and its real fix, to me on IRC. This patch is the sledgehammer approach.