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.
modules/filter/filter.install:19: update_variables_to_config('filter.settings'
Thanks in advance for helping many hands to make light work!
See #2181257: [meta] Variables to config migration [d7] for instructions
Comment | File | Size | Author |
---|---|---|---|
#38 | 2130277-38.patch | 2.27 KB | jofitz |
#38 | interdiff_35-38.txt | 729 bytes | jofitz |
#20 | 2130277-20.patch | 1.92 KB | phenaproxima |
#18 | 2130277-18.patch | 1.92 KB | phenaproxima |
#17 | 2130277-17.patch | 1.96 KB | phenaproxima |
Comments
Comment #1
fastangel CreditAttribution: fastangel commentedworking on this.
Comment #2
fastangel CreditAttribution: fastangel commentedAttach the patch. I only found a one variable to map. The problem is that drupal 6 has two default format and d8 not.
Comment #3
chx CreditAttribution: chx commentedAs discussed on IRC: this is D7.
Comment #4
eliza411 CreditAttribution: eliza411 commentedMoving to the core queue to consolidate issues now that we're doing all the work there.
Comment #5
eliza411 CreditAttribution: eliza411 commentedComment #6
David Hernández CreditAttribution: David Hernández commentedWorking on this
Comment #7
David Hernández CreditAttribution: David Hernández commentedFirst try for filter settings on D7. The filter.settings.yml has a second variable (always_show_fallback_choice) but I think it doesn't have a mapping from D7, so I haven't included it.
Comment #8
michaellenahan CreditAttribution: michaellenahan commentedI have tried rerolling this. Patch attached.
The tests aren't working on my local, output attached. Want to see if it's just me.
The output complains when this gets called.
Drupal\migrate\Entity\Migration->getProcessNormalized('fallback_format:filter_fallback_format')
it says
Argument 1 passed to Drupal\migrate\Entity\Migration::getProcessNormalized()
must be of the type array, string given
but I can't work out where I have gone wrong.
EDIT: a reinstall fixed it. The value fallback_format:filter_fallback_format was being cached.
In d7_filter_settings.yml a space is needed after the colon in "d7_filter_settings.yml"
Comment #9
michaellenahan CreditAttribution: michaellenahan commentedHere's the patch with the missing space after the colon added.
Comment #10
David Hernández CreditAttribution: David Hernández commentedShouldn't this be Drupal\migrate_drupal\Tests\d7\MigrateFilterFormatsTest ?
The rest of the patch looks correct and the tests are passing.
Comment #11
David Hernández CreditAttribution: David Hernández commentedComment #12
michaellenahan CreditAttribution: michaellenahan commentedThanks David. Sorry for not getting to this. Confirming the fix to the comment.
Comment #13
jcost CreditAttribution: jcost commentedWill need to be submitted again to Core since moving from sandbox.
Comment #14
phenaproximaThis patch should be updated for HEAD and merged into the parent issue.
Comment #15
phenaproximaComment #16
phenaproximaZero-byte patch?!?
Comment #17
phenaproximaComment #18
phenaproximaRe-rolled.
Comment #20
phenaproximaChanged test group.
Comment #21
phenaproximaRe-rollin'.
Comment #22
phenaproximaFilter settings are soon to be container parameters (#2529514: Replace system.filter::protocols with container parameters), so this needs to be rewritten for that.
Comment #23
phenaproximaComment #24
quietone CreditAttribution: quietone as a volunteer commentedComment #25
alvar0hurtad0Here's the reroll
Comment #27
quietone CreditAttribution: quietone as a volunteer commented@alvar0hurtad0, thx for the reroll. The migrations have moved to the individual modules. So this goes to the filter module. There is an existing migration there, d7_filter_format, that can be used for reference.
Can be removed. The test fixture is loaded in the parent.
This shouldn't be needed either.
Comment #30
iMiksuComments given in #27 sounds novice.
Comment #31
hardikpandya CreditAttribution: hardikpandya at Iksula commentedComment #32
hardikpandya CreditAttribution: hardikpandya at Iksula commentedAdding patch.
Comment #34
iMiksuWe'll today check why tests are failing.
Comment #35
jofitz CreditAttribution: jofitz at ComputerMinds commentedMove files to correct locations.
Comment #36
phenaproximaSelf-assigning for review.
Comment #37
mikeryanThis should use $this->config() rather than \Drupal::config().
Otherwise, looks good.
Comment #38
jofitz CreditAttribution: jofitz at ComputerMinds commentedUse $this->config() rather than \Drupal::config().
Comment #39
mikeryanLooks good, thanks!
Comment #41
catchCommitted/pushed to 8.3.x and cherry-picked to 8.2.x. Thanks!