Closed (duplicate)
Project:
Drupal core
Version:
8.0.x-dev
Component:
migration system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Jan 2015 at 03:57 UTC
Updated:
15 Oct 2015 at 22:28 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ishanmahajan commentedComment #2
svendecabooterComment #3
svendecabooterFirst iteration of a patch that fixes this issue is attached.
Still needs tests written.
Comment #4
svendecabooterPatch attached including tests.
What it does:
* Add a special case for migrating text field with widget optionwidgets_onoff, so it converts the D6 off/on data to a boolean field in D8.
* Updated the D6 migration database so it uses textual allowed values (for testing purposes).
* Added a test case that verifies the textual allowed values are being converted to a boolean value upon migration.
Let me know if I'm missing something.
Also: not sure if the d6.gz database diff should be included in the patch. If not, I can reattach the patch without it.
Comment #5
ultimikeSven,
Regarding the d6.gz diff, as of this moment, yes, it should be included, but #2469623: Process for creating migration source DBs for automated tests will change that.
I have a couple of similar patches in the same situation - I'm hopeful that #2469623: Process for creating migration source DBs for automated tests will be resolved soon enough so I'm waiting to re-roll.
For now, will you attached a patch (call it "2405017-migrate-boolean-fields-type-text-x-do-not-test.patch") without the d6.gz for easier review?
thanks,
-mike
Comment #6
svendecabooterThanks for the clarification Mike.
Attached a patch without the d6.gz, as requested.
Comment #7
benjy commentedThanks for working on this. In general the code looks good but I'd like to have a closer look once it's ready. For now, a few small comment/coding standard nitpicks.
Comment needs to be 80chars and end in a full stop.
Need some proper function docs here.
Would be good to explain a little bit about what this function does, what values it's expecting/returning etc.
Comment too long.
Comment #8
anavarrePer #7
Comment #9
neclimdulSorry I didn't see this but #2588827: CCK migrations seem to have trouble with some checkbox types probably duplicates it and is about wrapped up.
Comment #10
benjy commentedYeah lets close this as a duplicate, i'll comment over there asking for the people here to be credited on that issue.
Comment #11
benjy commented