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
MigrateCckFieldInterface is deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.x.
Proposed resolution
Use \Drupal\migrate_drupal\Annotation\MigrateField instead.
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#21 | 2969902-21.patch | 2.62 KB | jofitz |
#21 | interdiff-19-21.txt | 849 bytes | jofitz |
#19 | 2969902-19.patch | 2.18 KB | jofitz |
| |||
#19 | interdiff-17-19.txt | 542 bytes | jofitz |
#17 | 2969902-17.patch | 1.65 KB | jofitz |
Comments
Comment #2
mihai11 CreditAttribution: mihai11 commentedComment #4
mihai11 CreditAttribution: mihai11 commentedUpdate after test fail.
Comment #6
amateescu CreditAttribution: amateescu for Pfizer, Inc. commentedThis part of the interdiff is not correct, we shouldn't add back the deprecation message to the trait :)
Comment #7
amateescu CreditAttribution: amateescu for Pfizer, Inc. commentedCleaning up tags.
Comment #8
mihai11 CreditAttribution: mihai11 commentedRemoved the deprecation message from the trait.
Comment #10
mihai11 CreditAttribution: mihai11 commentedRerolled the patch.
Comment #11
amateescu CreditAttribution: amateescu for Pfizer, Inc. commentedLooks great :)
Comment #12
borisson_I was just reviewing this issue as well, I came to the same conclusion as @amateescu! RTBC++ :)
Comment #13
alexpottIt's super strange to be removing an @expectedDeprecation.
This class is deprecated too. It's okay for deprecated code to use deprecated code :)
Can we get a patch that just removes the deprecation?
Comment #14
amateescu CreditAttribution: amateescu for Pfizer, Inc. commented@alexpott, I also saw this comment in another issue, so I'm wondering: when a patch makes a test method not trigger a deprecation message anymore, shouldn't that patch also remove the
@expectedDeprecation
annotation?Comment #15
alexpottNot if the test is a legacy test. legacy tests are there to test deprecated code and will be removed at the same time as deprecated code.
Comment #16
amateescu CreditAttribution: amateescu for Pfizer, Inc. commentedRight, that makes sense!
Comment #17
jofitz CreditAttribution: jofitz at ComputerMinds commentedCreating the patch requested by @alexpott in #13.
Comment #19
jofitz CreditAttribution: jofitz at ComputerMinds commentedSet CckFieldBackwardsCompatibilityTest as a legacy test.
Comment #20
alexpott@Jo Fitzgerald can you add
@expectedDeprecation
too?Comment #21
jofitz CreditAttribution: jofitz at ComputerMinds commentedAdded @expectedDeprecation.
Comment #22
davemckain CreditAttribution: davemckain at The University of Edinburgh commentedI have reviewed this patch and it looks good to me :-)
Comment #24
MixologicTestbot Snafu.
Comment #25
alexpottCommitted and pushed beae7599dc to 8.6.x and 71ae9121fc to 8.5.x. Thanks!
Credited @amateescu and myself for reviews that materially affected the patch. Thanks @davemckain and @borisson_ also for the reviews.