Needs review
Project:
Domain Context
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Apr 2012 at 14:47 UTC
Updated:
23 Sep 2014 at 21:51 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
bforchhammer commentedHere's a patch which replaces numeric domain ids with machine names. Patch requires the 3.x of the domain module, and it includes an update function which updates all existing contexts...
Comment #2
bforchhammer commentedComment #3
bforchhammer commentedFixed a misspelled variable name. Tested and this one works ;-)
Comment #4
xjmThis sounds like a good feature. I'd like to see some other folks' results of testing it on actual sites with content, since I don't use this module in D7 and it doesn't have a test suite. Thanks!
Also, minor issue; the patch is missing a newline at the end of the
.installfile.Comment #5
bforchhammer commentedThanks for your comment! I have fixed the newline...
Comment #6
chromix commentedJust wanted to confirm that patch #5 worked beautifully. Thanks!
Comment #7
bforchhammer commented@chromix: Did you test the update function on a site with existing contexts? If yes, you can probably set the status to RTBC :) thanks!
Comment #8
mstef commentedLooks good to me
Comment #9
jsacksick commentedI just tested the patch #5 and the update didn't work for me (for some reasons, I had a values array containing FALSE)
I slightly modified the update hook to make it work and now only the modified contexts are saved.
Comment #10
thebravecowboy commentedPatch #5 works cleanly for me. I used the update hook on a site with multiple domain contexts built out. It replaced the ids cleanly and exported cleanly in my features.
Can we get this merged into the main module code? Using db ids totally subverts any real devops/development workflows.