Closed (fixed)
Project:
Drupal core
Version:
8.2.x-dev
Component:
migration system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
7 Nov 2013 at 19:24 UTC
Updated:
23 Dec 2016 at 11:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
fastangel commentedworking on this.
Comment #2
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 commentedAs discussed on IRC: this is D7.
Comment #4
eliza411 commentedMoving to the core queue to consolidate issues now that we're doing all the work there.
Comment #5
eliza411 commentedComment #6
David Hernández commentedWorking on this
Comment #7
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 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 commentedHere's the patch with the missing space after the colon added.
Comment #10
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 commentedComment #12
michaellenahan commentedThanks David. Sorry for not getting to this. Confirming the fix to the comment.
Comment #13
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 commentedComment #25
alvar0hurtad0Here's the reroll
Comment #27
quietone 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 commentedComment #32
hardikpandya commentedAdding patch.
Comment #34
imiksuWe'll today check why tests are failing.
Comment #35
jofitzMove 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
jofitzUse $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!