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/tracker/tracker.install:129: update_variables_to_config('tracker.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 |
---|---|---|---|
#16 | 2132207-16.patch | 3.36 KB | joshtaylor |
Comments
Comment #1
fastangel CreditAttribution: fastangel commentedworking on this.
Comment #2
fastangel CreditAttribution: fastangel commentedTracker in D8 has cron_index_limit but in D6 doesn't have any variable. That should we do here?
Comment #3
chx CreditAttribution: 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 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
eliza411 CreditAttribution: eliza411 commentedComment #7
eliza411 CreditAttribution: eliza411 commentedComment #8
joshtaylor CreditAttribution: joshtaylor commentedWorking on this.
Comment #9
joshtaylor CreditAttribution: joshtaylor commentedComment #10
joshtaylor CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: joshtaylor commentedPatch fixes variable indents and uses 'config' instead of d8_config
Comment #15
benjy CreditAttribution: benjy commentedWe need an empty line at the end of the file.
Replace
new MigrateMessage()
with$this
because the migration implementsMigrateMessageInterface
Comment #16
joshtaylor CreditAttribution: joshtaylor commentedFixed newline and MigrateMessage
Comment #17
joshtaylor CreditAttribution: joshtaylor commentedComment #18
joshtaylor CreditAttribution: joshtaylor commentedignore
Comment #19
benjy CreditAttribution: benjy commentedCommitted to 8.x j9689f36
Comment #21
jcost CreditAttribution: 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.