Closed (duplicate)
Project:
Drupal core
Version:
8.0.x-dev
Component:
migration system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
9 Nov 2013 at 16:12 UTC
Updated:
30 Jun 2015 at 15:45 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
fastangel commentedworking on this.
Comment #2
fastangel commentedTracker in D8 has cron_index_limit but in D6 doesn't have any variable. That should we do here?
Comment #3
chx commentedA quick grep verifies, yes, there is no variable_get in tracker.
One would wonder why are we going by the update_variables_to_config() calls, then? We do not have anything to better to go by and most variables didn't change.
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
eliza411 commentedComment #7
eliza411 commentedComment #8
joshtaylor commentedWorking on this.
Comment #9
joshtaylor commentedComment #10
joshtaylor commentedFirst Drupal.org patch, after reading through the Patch Guide I believe this is the correct format.
One question I had, should I use:
OR
To serialize? Looking at the D6 migration values they use option 2, looking at the D7 migration values they use serialize().
Comment #11
chx commentedIt's really a mix of the two -- if youd dump with a script you get serialized data but we convert more complex data structures back to serialized arrays for the sake of readibility. So for a simple integer, just i: is fine.
Comment #12
benjy commentedIndentation needs to be 2 space.
This should be the same as the class name.
I think MigrateTrackerConfigTest reads better?
Above are just small doc changes, great job for your first patch.
Side note, It's strange that we're using d6_variable as our source? I know they're functionally equivalent but we should probably look at creating a base class with d6/7 sub classes.
Comment #13
joshtaylor commentedThanks chx, I've changed the code not to use serialize.
benjy - thanks for the review.
If we want to change file from "MigrateTrackerConfigTest.php", the parent issue (https://drupal.org/node/2181257) will need to be updated to change point 4.
Comment #14
joshtaylor commentedPatch fixes variable indents and uses 'config' instead of d8_config
Comment #15
benjy commentedWe need an empty line at the end of the file.
Replace
new MigrateMessage()with$thisbecause the migration implementsMigrateMessageInterfaceComment #16
joshtaylor commentedFixed newline and MigrateMessage
Comment #17
joshtaylor commentedComment #18
joshtaylor commentedignore
Comment #19
benjy commentedCommitted to 8.x j9689f36
Comment #21
jcost commentedWill need to be submitted again to Core since moving from sandbox.
Comment #22
phenaproximaNeeds to be merged into the parent issue.
Comment #23
phenaproximaDuplicate of #2353777: Migrate Tracker module variables in D7. I'll give @joshtaylor credit in that issue.